Toolkit SPLDoc process
The following steps can be followed to generate new SPLDocs for the toolkit and to add it to the github pages.
NOTE: It is recommended that a new repository be cloned in /tmp to isolate SPL doc generation and
github pages documentation from development work.
cd /tmpgit clone git@github.com:IBMStreams/streamsx.mqtt.git streamsx.mqtt.gh-pagescd streamsx.mqtt.gh-pages- Check out the release, for which you want to generate the SPL documentation, for example
git checkout v1.0.1 ant spldoc- The documentation for the toolkit is generated in the
com.ibm.streamsx.mqtt/docdirectory git checkout gh-pagespushd doc- The SPL documentation for the latest release, which is also available via the SPLDOC button on the entry page, is stored in subdirectory
spldoc. Documentation of older releases are stored in versioned sub directories, for examplev1.2.3. If you update existing documentation, replace the generated documentation in the right directory.- If you update latest SPLDOC:
git rm -r ./spldoc && mv -v ../com.ibm.streamsx.mqtt/doc/spldoc . - If you update an older SPLDOC (here v1.0.0):
git rm -r v1.0.0/spldoc && mv -v ../com.ibm.streamsx.mqtt/doc/spldoc v1.0.0 - If you add SPLDOC of a new version, (here latest version used to be v1.0.0):
- move current latest doc into versioned directory:
mkdir v1.0.0 && git mv ./spldoc v1.0.0 - add generated doc as latest doc:
mv -v ../com.ibm.streamsx.mqtt/doc/spldoc .
- move current latest doc into versioned directory:
- If you update latest SPLDOC:
popd- remove the generated
docsdirectory:rm -rfv com.ibm.streamsx.mqtt/doc - Add untracked documentation to the index
- If you added new documentation, update the
_docs/210-user_spldoc.mdmarkdown file, which references all SPL docs. git commit -m "Update docs for vX.Y.Zgit push -u origin gh-pages- When the result is ok for you, delete the temporary clone that you created in the second step