Skip to main content

Example scripts and usages

Here, we show several examples of extended usages.

1. Plain conversion​

Nothing special, just like the examples shown in the introduction. This script can be found in

convert.py

python -m pydocusaurus render-doc pydocusaurus -o ./docs-pydocusaurus -u cainmagi

Certainly, in the project folder, users can run

cd pydocusaurus
python -m examples.convert

2. Customized saver​

Users can customize the behavior of saving the documents. The following scripts let all documentation files aggregated as a single YAML file. This script can be found in

custom_saver.py

In the project folder, run

cd pydocusaurus
python -m examples.custom_saver

3. Show the page of one entity​

During debugging, we may need to know the performance of the rendered page for a specific entity. The following example shows how to print the page without converting the whole package.

This script can be found in

single_obj.py

In the project folder, run

cd pydocusaurus
python -m examples.single_obj