Files
testing123/streamlit_dashboard/README.md
2026-05-21 08:40:24 -04:00

1.6 KiB

Streamlit Dashboard Documentation

This project uses Sphinx to generate its technical documentation from docstrings in the source code.

Prerequisites

Before building the documentation, ensure you have activated the virtual environment located in the parent directory, as it contains all the necessary dependencies (including Sphinx, Streamlit, etc.).

Activating the Virtual Environment

  • On Linux/macOS:

    source ../venv/bin/activate
    

    (Note: Replace venv with the actual name of the virtual environment folder if it differs, e.g., .venv or env.)

  • On Windows:

    ..\venv\Scripts\activate
    

Once activated, verify Sphinx is available:

sphinx-build --version

Building the Documentation

To build the HTML documentation, follow these steps:

  1. Navigate to the docs directory:

    cd docs
    
  2. Run the make command for HTML:

    • On Linux/macOS:
      make html
      
    • On Windows:
      .\make.bat html
      

Viewing the Documentation

Once the build is complete, you can find the generated HTML files in the docs/_build/html directory.

To view the documentation, open docs/_build/html/index.html in your web browser.

Updating the Documentation

If you add new modules or packages to the project, you may need to regenerate the .rst files using sphinx-apidoc. From the project root, you can run:

sphinx-apidoc -o docs/ .

After updating the .rst files, rebuild the HTML documentation as described above.