Documentation
To auto-generate documents for S3PRL, please follow the following steps:
- Activate an python env for the doc-generating tool to import all the modules to realize auto-documentation. There are various ways to achieve this. You can also follow:
conda create -y -n doc python=3.8
conda activate doc
cd $S3PRL_ROOT
pip install ".[dev]"
- Auto-generate HTML files for all the packages, modules and their submodules listed in
$S3PRL_ROOT/valid_paths.txt
. The HTML files will appear in$S3PRL_ROOT/docs/build/html
cd $S3PRL_ROOT/docs_src
./rebuild_docs.sh
- Launch the simple webserver to see the documentation.
cd $S3PRL_ROOT/docs/build/html
python3 -m http.server