Automated publication of ParaView documentation via github pages.
This script injects a version selector into the C++ and Python documentation. It selects a header element of the docs and appends a <select> element with a version list as well as a link to the other language documentation.
To build with webpack:
npm installnpm run build:release
The resulting script is dist/paraview-version.js.
./scripts/prepare-doc.sh /path/to/paraview/src /path/to/paraview/build /path/to/workdir
For nightly or latest (i.e. latest release) you can pass in an additional parameter on the command line
which is the name to use instead of git describe e.g.
./scripts/prepare-doc.sh /path/to/paraview/src /path/to/paraview/build /path/to/workdir nightly
Here are steps to update the ParaView docs manually. The instructions are have been tested on a Linux system.
- Checkout ParaView source for appropriate version.
- Build ParaView with
PARAVIEW_BUILD_DEVELOPER_DOCUMENTATIONCMake flag turned ON. You may also want to enable all appropriate features e.g. Python support, MPI support. With Python, make sure thesphinx-build:FILEPATHpoints to the sphix-build script for correct version of Python. - Build ParaView normally. This is necessary to ensure everything is built correctly.
- Build the
ParaViewDoc-TGZtarget e.g.ninja ParaViewDoc-TGZ. This will generate the Doxygen and Sphinx generated docs. - Now run
prepare-docscript to push the generated docs to this repo. Provide the optionalversioncommand line argument when generated docs forlatestornightlyinstead of using the value obtained fromgit describeexecuted on the source directory. The script will update and push the documentation changes to thegh-pagesbranch on this repo. - When adding a new version, you should edit the
versions.jsonfile in thegh-pagesbranch to ensure it all the versions listed and labelled correctly. When adding new commits to gh-pages branch, ensure that last commit is the nightly doc update commit since the automatic builders amend the last commit.
You will need to copy and commit dist/paraview-version.js from master to the root of gh-pages directory.