JoongunPark / astra-sim-docs

ASTRA-sim Documentation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

astra-sim-docs

ASTRA-sim Documentation

main branch Status
build build
deploy deploy

Dependencies

This documentation uses sphinx documentation generator and read the docs sphinx theme. In order to compile the documentation, please install such dependencies through Python (pip3). You may consider creating a virtual environment through conda.

Create a Conda Environment (If Desired)

$ conda create -n sphinx python=3.11
$ conda activate sphinx

Install Dependencies

$ pip3 install gitpython sphinx sphinx-rtd-theme myst-parser

Modify the Documentation

The documentation is in Markdown (.md) format. Please modify the documentation as desired. index.md could be a good entry point and running-astra-sim.md can be a good reference.

Note that you might consider updating the document version defined at the beginning of the conf.py file. This should match the ASTRA-sim version you're documenting.

Compile Project

With dependencies properly installed, run the script below:

$ ./_scripts/build_current_doc.sh

This will compile the current version of the documentation. After the compilation successfully finishes, please open _build/html/index.html using a web browser to check the final outcome.

Deployement

Please open a PR to the main branch. Once merged, the documentation will be deployed automatically https://astra-sim.github.io/astra-sim-docs/index.html.

Versioning

The latest HEAD commit of the main branch will be compiled and deployed as a latest version. If you tag a commit, it will also be automatically compiled and deployed (e.g., if a commit is tagged as 1.3, that commit will be compiled as version 1.3 and included in the deployed website). This should all happen automatically by the GitHub Actions during the deployment phase.

Caveat

The documentation is being served through the gh-pages branch. This should be managed automatically via GitHub Actions, so please modify its content in any way.

About

ASTRA-sim Documentation


Languages

Language:Python 40.9%Language:Shell 31.4%Language:HTML 27.7%