Contributing to BrainX documentation#
This site documents the BrainX ecosystem. Documentation is authored primarily in Markdown and built with Sphinx using MyST and the Sphinx Book Theme.
Prerequisites#
Python 3.10+
From the repo root:
pip install -r docs/requirements.txt
Where to edit#
Most pages are Markdown files in
docs/(for example,install.md,getting_started.md).The table of contents is defined in
docs/index.rstvia Sphinxtoctreeentries.
Add or edit a page#
Create or edit a Markdown file under
docs/(use#headings, fenced code blocks, and standard Markdown links).Add the new file to the
toctreeindocs/index.rstso it appears in the navigation.Keep titles concise and use sentence case. Prefer short sections with clear bullets and code examples.
Build locally#
From the repo root:
HTML:
sphinx-build -b html docs docs/_build/htmlOpen
docs/_build/html/index.htmlin your browser to preview.
Optional checks:
Link check:
sphinx-build -b linkcheck docs docs/_build/linkcheck
Style guidelines#
Use fenced code blocks with a language tag, e.g.,
python,bash, ```bibtex.Use inline code for commands and paths:
pip install,docs/index.rst.Keep lines reasonably short (< 100 chars) for readability.
Prefer relative links within the docs; use full URLs only when linking external sites.
Submitting changes#
Run
pre-commit run --all-filesto auto-format and lint.Open a PR with a clear description, screenshots for visual changes, and link related issues.
If you have questions or want to propose a larger restructuring, please open an issue first to discuss.