This repository contains the markdown sources for the documentation for Atomist. You can find the current version of the Atomist documentation at http://docs.atomist.com/.
Much of the documentation is hand-generated, so you can feel free to
edit. The exception is the documentation for
the Rug core types. Other than the
index, it is generated every time tests are run in
the Rug repository. When the tests are complete, all of the
type docs will be in a single file named target/RugTypes.md
. You
can use the following commands to split file files up by type:
$ cd target
$ perl -lane 'if (/^## Type: /) { $t = $F[2]; $t =~ s/\`//g; $t =~ s/([A-Z])/-\L$1/g; $out = "rug-extension$t.md"; open FH, ">$out" } if (FH) { print FH }' RugTypes.md
You can then copy the files under docs/reference-docs/rug/types
,
omitting the files that document test types (Replacer*
), internal
(Pair
, Service
), base JavaClassOrInterfaceView
, and base
(Mutable*
) types.
When a push is made to this repository, the entire documentation is built again via a Travis job and published to http://atomist.github.io/end-user-documentation/ . The documentation is generated from markdown using mkdocs.
If the build is triggered by a tag of the form M.N.P
, the site will
be pushed to the Atomist GitHub Pages repository and served
by GitHub at http://atomisthq.github.io and https://docs.atomist.com .
Generally speaking, you probably do not need to do anything with this repository aside from pushing markdown content.
However, if you want to make a change to the HTML template or serve the doc locally before a push, you should follow the next steps to gear up properly your environment.
First install Python
$ brew install python3
or
$ sudo apt-get install python3
$ curl -O https://bootstrap.pypa.io/get-pip.py
$ sudo python3.5 get-pip.py
Then create a virtual environment to host the dependencies:
$ pip3 install virtualenv
$ mkdir ~/.venvs
$ echo "export PIP_REQUIRE_VIRTUALENV=true" >> ~/.bashrc
$ source ~/.bashrc
$ virtualenv -p `which python3` ~/.venvs/userdocs
Every time you want to work on this repository, you shall activate that virtualenv in your terminal:
$ source ~/.venvs/userdocs/bin/activate
Now that the virtual environment is created, we can install the dependencies into it:
$ pip3 install -r requirements.txt
$ cd rug_pygments; python setup.py install; cd ..
You can now serve the documentation locally by running:
$ mkdocs serve
If all goes well, you can browse the documentation at http://127.0.0.1:8000 .
You can publish the docs manually from your local repository with the following command:
$ rm docs/CNAME && mkdocs gh-deploy && git checkout docs/CNAME
This documentation build process is provided to the public purely for the purpose of testing documentation changes before submitting pull requests to the appropriate Atomist repository.
The documents produced by this build process may be published only on http://docs.atomist.com. They may not be published in any other form or on any other website without explicit permission.