summaryrefslogtreecommitdiffstats
path: root/docs/README.md
diff options
context:
space:
mode:
authorStephen Dolan <mu@netsoc.tcd.ie>2013-05-09 20:27:12 +0100
committerStephen Dolan <mu@netsoc.tcd.ie>2013-05-09 20:35:19 +0100
commite6494857fc188f50808fcf64e4f43188a455f264 (patch)
tree6e6d3e68569692e5f2a3b225de5d7180a8d93bd3 /docs/README.md
parent12d2d4d1f53f7f1c6d53d0eb82672cdbd75a6df9 (diff)
Add some build instructions for how to install doc dependencies.
jq can now build without Ruby, but you won't get a nice manpage.
Diffstat (limited to 'docs/README.md')
-rw-r--r--docs/README.md25
1 files changed, 25 insertions, 0 deletions
diff --git a/docs/README.md b/docs/README.md
new file mode 100644
index 00000000..58e7dca7
--- /dev/null
+++ b/docs/README.md
@@ -0,0 +1,25 @@
+Documentation
+=============
+
+The jq website, manpages and some of the tests are generated from this
+directory. The directory holds a [Bonsai](http://tinytree.info)
+website, and the manual is a YAML file in `content/3.manual`.
+
+To build the documentation (including building the jq manpage), you'll
+need a working Ruby setup. The easiest way to get one is to install
+RVM and Ruby 1.9.3 like so:
+
+ \curl -L https://get.rvm.io | bash -s stable --ruby=1.9.3
+
+After that finishes installing, you'll need to make sure RVM is on
+your path by doing `source $HOME/.rvm/scripts/rvm`, or just opening a
+new shell. See <http://rvm.io> for more info on RVM.
+
+Once RVM is installed, you can install all the dependencies for jq's
+documentation build by running this from the `docs` directory:
+
+ bundle install
+
+When bundle manages to install the dependencies, rerun `./configure`
+in the jq root directory and then the Makefile will be able to
+generate the jq manpage.