This directory contains the documentation for the bitchat library, written in Markdown format for better GitHub rendering while maintaining full Sphinx functionality.
index.md- Main documentation index and overviewinstallation.md- Installation guide for different platformsquickstart.md- Quick start guide with examplesexamples.md- Comprehensive examples and use casesapi.md- Complete API referencecontributing.md- Contributing guidelines
Install the required dependencies:
pip install sphinx sphinx-rtd-theme myst-parserBuild HTML documentation:
cd docs
make htmlClean build directory:
make cleanServe documentation locally:
make serveThis will start a local server at http://localhost:8000
If you don't have make available:
cd docs
sphinx-build -b html . _build/htmlAll documentation files (.md) render beautifully on GitHub with:
- Syntax highlighting for code blocks
- Proper formatting for tables and lists
- Clickable links and navigation
After building with make html, open _build/html/index.html in your browser.
The documentation is configured to work with Read the Docs hosting service.
The documentation uses MyST (Markedly Structured Text) which provides:
- Full Markdown syntax support
- Sphinx extensions and features
- Auto-documentation from Python code
- Cross-references and linking
All code examples are:
- Syntax highlighted
- Tested and working
- Include complete imports
- Show real-world usage
The documentation supports:
- Links between documents
- API reference links
- External links to Python documentation
- Automatic index generation
- Create a new
.mdfile in thedocs/directory - Add it to the navigation in
index.md - Follow the existing formatting style
- Include code examples where appropriate
- Use clear, descriptive headings
- Include practical examples
- Keep code snippets complete and runnable
- Update cross-references when moving content
- Use clear, concise language
- Include code examples for all features
- Provide both basic and advanced usage
- Include troubleshooting sections where needed
- Use consistent formatting and structure
sphinx.ext.autodoc- Auto-generate API docs from docstringssphinx.ext.napoleon- Google/NumPy style docstring supportsphinx.ext.viewcode- Link to source codesphinx.ext.intersphinx- Link to external documentationmyst_parser- Markdown support
The documentation uses the Read the Docs theme for a professional appearance.
If you encounter build errors:
- Ensure all dependencies are installed
- Check that Python modules can be imported
- Verify Markdown syntax is correct
- Check for broken links or references
- Markdown files render properly on GitHub
- HTML builds require the full Sphinx build process
- Some advanced features only work in the HTML build