parent directory.. | ||||
View all files | ||||
These are the source of the CP2K manual. They are published daily by this script.
To build a local version of the manual perform the following steps:
Create and activate a virtual Python environment:
Install the required Python packages:
(optional) Build a CP2K binary and use it to generate the cp2k_input.xml file:
(optional) Generate Markdown pages from the cp2k_input.xml file:
Run Sphinx:
Browse the HTML output in the _build/html directory.
Tip
While the first invocation of Sphinx can be quite slow, subsequent builds are significantly faster thanks to its doctree cache. Nevertheless, a build with the full input reference can take several minutes and requires a lot of memory. So for development it's advisable to build without the input reference. To check cross-references one can generate the input reference and then remove all pages except the relevant ones.
The CP2K manual uses Sphinx with the MyST parser for Markdown support. The following gives a quick overview of the syntax:
For a all typography options see the MyST documentation.
For a all table options see the MyST documentation.
See also the MyST and MathJax documentation.
For all available admonitions see the MyST documentation.
For details see the Mermaid documentation and also check out their great live editor.
The above example links to https://www.youtube.com/watch?v=teHVWKwBOTU at the 1500 seconds time mark.