Skip to content
Snippets Groups Projects
README.md 1.88 KiB
Newer Older
  • Learn to ignore specific revisions
  • Daniela Cassol's avatar
    Daniela Cassol committed
    # JAWS Documentation
    
    Jeff L Froula's avatar
    Jeff L Froula committed
    ## Repository for JAWS docs
    
    
    This content was created by using sphinx and hosted by [readthedocs](https://sphinx-rtd-theme.readthedocs.io/en/stable/index.html).
    
    Jeff L Froula's avatar
    Jeff L Froula committed
    
    
    ### Install sphinx
    
    ```
    apt-get install python3-sphinx ## Linux
    brew install sphinx-doc ## macOS
    ```
    
    
    ### Create `conda env`
    
    Jeff L Froula's avatar
    Jeff L Froula committed
    
    ```
    
    conda create --name sphinx
    
    Jeff L Froula's avatar
    Jeff L Froula committed
    conda activate sphinx
    
    pip install sphinx
    
    Jeff L Froula's avatar
    Jeff L Froula committed
    pip install recommonmark
    
    pip install -U sphinxcontrib-confluencebuilder
    pip install sphinx_rtd_theme 
    
    pip install sphinx-panels
    
    Jeff L Froula's avatar
    Jeff L Froula committed
    ```
      
    
    Daniela Cassol's avatar
    Daniela Cassol committed
    ### Sphinx Tutorials
    
    Daniela Cassol's avatar
    Daniela Cassol committed
    - Follow sphinx tutorial in [readthedocs.org](https://docs.readthedocs.io/en/latest/intro/getting-started-with-sphinx.html).
    
    Jeff L Froula's avatar
    Jeff L Froula committed
    
    
    Daniela Cassol's avatar
    Daniela Cassol committed
    Sphinx uses [reStructuredText](http://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html).
    
    Jeff L Froula's avatar
    Jeff L Froula committed
    
    
    Daniela Cassol's avatar
    Daniela Cassol committed
    ### Create Initial Directory Structure
    
    Jeff L Froula's avatar
    Jeff L Froula committed
    ```
    sphinx-quickstart
    ```
    
    
    Daniela Cassol's avatar
    Daniela Cassol committed
    Now start adding content to the pages...
    
    
    Jeff L Froula's avatar
    Jeff L Froula committed
    
    
    Daniela Cassol's avatar
    Daniela Cassol committed
    ### Build `html` from source (`rst` or `md`) files
    
    Jeff L Froula's avatar
    Jeff L Froula committed
    ```
    make html
    ```
    
    
    Daniela Cassol's avatar
    Daniela Cassol committed
    ### Quick View
    
    Jeff L Froula's avatar
    Jeff L Froula committed
    ```
    open build/html/index.html
    
    Daniela Cassol's avatar
    Daniela Cassol committed
    make clean
    
    Jeff L Froula's avatar
    Jeff L Froula committed
    ```
    
    
    Daniela Cassol's avatar
    Daniela Cassol committed
    Once you are satisfied, add changes to this gitlab repo. 
    
    ## Register gitlab with readthedocs
    
    Jeff L Froula's avatar
    Jeff L Froula committed
    https://docs.readthedocs.io/en/latest/intro/getting-started-with-sphinx.html
    
    
    Daniela Cassol's avatar
    Daniela Cassol committed
    ## View published docs
    
    
    Jeff L Froula's avatar
    Jeff L Froula committed
    https://jaws-docs.readthedocs.io/en/latest/
    
    
    Daniela Cassol's avatar
    Daniela Cassol committed
    ## Publish BETA Documentation
    To publish a draft version of the documentation, push your changes to the `beta` branch. This will trigger a pipeline that automatically publishes the documentation as a `BETA` version, which can be viewed at: https://jaws-docs.readthedocs.io/en/beta.
    
    Daniela Cassol's avatar
    Daniela Cassol committed
    We maintain two versions of the documentation:
    
    Daniela Cassol's avatar
    Daniela Cassol committed
    - `latest` — reflects the main branch (production-ready version).
    - `beta` — reflects the beta branch (for testing and previewing changes).
    
    Daniela Cassol's avatar
    Daniela Cassol committed
    For testing purposes, always push changes to the beta branch. Once the changes are verified, merge them into the main branch, and the latest version will be automatically updated and deployed.