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 install
npm 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_DOCUMENTATION
CMake flag turned ON. You may also want to enable all appropriate features e.g. Python support, MPI support. With Python, make sure thesphinx-build:FILEPATH
points 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-TGZ
target e.g.ninja ParaViewDoc-TGZ
. This will generate the Doxygen and Sphinx generated docs. - Now run
prepare-doc
script to push the generated docs to this repo. Provide the optionalversion
command line argument when generated docs forlatest
ornightly
instead of using the value obtained fromgit describe
executed on the source directory. The script will update and push the documentation changes to thegh-pages
branch on this repo. - When adding a new version, you should edit the
versions.json
file in thegh-pages
branch 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.