Skip to content

Commit

Permalink
Merge pull request #10 from dglmoore/docs
Browse files Browse the repository at this point in the history
Create documentation
  • Loading branch information
dglmoore authored Oct 25, 2017
2 parents b9682ab + 6baa9b8 commit 84b01d5
Show file tree
Hide file tree
Showing 21 changed files with 1,248 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,4 @@

# Build Directories
build
docs/*.html
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,8 @@ install(DIRECTORY include/ DESTINATION include)

enable_testing()
add_subdirectory(test)

if (EXAMPLES)
message(STATUS "Building Examples")
add_subdirectory(examples)
endif()
57 changes: 57 additions & 0 deletions README.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
= Ginger: A simple library for a more fruitful C
Douglas G. Moore <doug@dglmoore.com>
v0.2.0, October 2017
:source-highlighter: prettify
:stem: latexmath

*Ginger* is a simple library written to make C programmers' lives easier by
augmenting the C standard library with useful utilities that are sorely lacking.

image:https://travis-ci.org/dglmoore/ginger.svg?branch=master[Build Status (Travis CI), link=https://travis-ci.org/dglmoore/ginger]
image:https://ci.appveyor.com/api/projects/status/c7jo983wjih5hahb?svg=true[Build Status (AppVeyor), link=https://ci.appveyor.com/project/dglmoore/ginger]

== Installation
To build *ginger*, you will need to have https://cmake.org/[CMake]. For most
you can use your package manager, e.g. `apt-get`, `pacman` or `yum` on Linux
or `homebrew`, `macports` or `fink` on OS X.

=== Linux, OS X, and Windows (Bash, MinGW and Cygwin)
Once CMake is installed, building, testing and installing the library is a snap
[source,sh]
----
λ cmake . -DCMAKE_BUILD_TYPE=Release
λ make all tests
λ sudo make install
----

=== Windows with MSVC
Building with MSVC is a bit more involved. Open the Visual C++ MSBuild command
prompt (should be in your start menu). You can then run cmake build and test
from the prompt:
[source,sh]
----
λ cmake -DCMAKE_BUILD_TYPE=Release -G"Visual Studio 14 2015"
λ msbuild /p:Configuration=Release ALL_BUILD.vcxproj
λ test\Release\ginger_unittest.exe
----
Installation requires the user to manually copy the headers and libraries to
wherever the user would like.

== Getting Help
*Ginger* is developed to help you write better C code faster, but I can't do it
without your feedback. I host the project's source code and issue tracker on
GitHub. Please create an issue if you find a bug, an error in this
documentation, or have a feature you'd like to request.

Ginger Source Repository::
https://github.com/dglmoore/ginger

Issue tracker::
https://github.com/dglmoore/ginger/issues

== Copyright and Licensing
Copyright © 2016-2017 Douglas G. Moore. Free use of this software is granted
under the terms of the MIT License.

See the https://github.com/dglmoore/ginger/blob/master/LICENSE[LICENSE] file for
details.
1 change: 0 additions & 1 deletion README.md

This file was deleted.

9 changes: 9 additions & 0 deletions docs/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
all: index.html

%.html: %.adoc
asciidoctor -b html5 $<

clean:
rm -rf *.html

.PHONY: clean
47 changes: 47 additions & 0 deletions docs/getting-started.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
= Getting Started

== Installation
To build *ginger*, you will need to have https://cmake.org/[CMake]. For most
you can use your package manager, e.g. `apt-get`, `pacman` or `yum` on Linux
or `homebrew`, `macports` or `fink` on OS X.

=== Linux, OS X, and Windows (Bash, MinGW and Cygwin)
Once CMake is installed, building, testing and installing the library is a snap
[source, sh]
----
λ cmake . -DCMAKE_BUILD_TYPE=Release
λ make all tests
λ sudo make install
----

=== Windows with MSVC
Building with MSVC is a bit more involved. Open the Visual C++ MSBuild command
prompt (should be in your start menu). You can then run cmake build and test
from the prompt:
[source, sh]
----
λ cmake -DCMAKE_BUILD_TYPE=Release -G"Visual Studio 14 2015"
λ msbuild /p:Configuration=Release ALL_BUILD.vcxproj
λ test\Release\ginger_unittest.exe
----
Installation requires the user to manually copy the headers and libraries to
wherever the user would like.

== Getting Help
*Ginger* is developed to help you write better C code faster, but I can't do it
without your feedback. I host the project's source code and issue tracker on
GitHub. Please create an issue if you find a bug, an error in this
documentation, or have a feature you'd like to request.

Ginger Source Repository::
https://github.com/dglmoore/ginger

Issue tracker::
https://github.com/dglmoore/ginger/issues

== Copyright and Licensing
Copyright © 2016-2017 Douglas G. Moore. Free use of this software is granted
under the terms of the MIT License.

See the https://github.com/dglmoore/ginger/blob/master/LICENSE[LICENSE] file for
details.
21 changes: 21 additions & 0 deletions docs/index.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
= Ginger: A simple library for a more fruitful C
Douglas G. Moore <doug@dglmoore.com>
v0.2.0, October 2017
:toc2:
:toclevels: 3
:source-highlighter: prettify
:stem: latexmath

*Ginger* is a simple library written to make C programmers' lives easier by
augmenting the C standard library with useful utilities that are sorely lacking.

image:https://travis-ci.org/dglmoore/ginger.svg?branch=master[Build Status (Travis CI), link=https://travis-ci.org/dglmoore/ginger]
image:https://ci.appveyor.com/api/projects/status/c7jo983wjih5hahb?svg=true[Build Status (AppVeyor), link=https://ci.appveyor.com/project/dglmoore/ginger]

:leveloffset: 1

include::getting-started.adoc[]

include::vector.adoc[]

include::unit.adoc[]
Loading

0 comments on commit 84b01d5

Please sign in to comment.