Skip to content

adamkurth/CXLS_Sphinx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CXLS Sphinx Repository

This repository is the documentation for CXLS using Sphinx GitPages. This is under construction currently and will be updated regularly.

Changed so that when pushing to either the main, or progress branch, .github/workflows/sphinx_deploy.yml file is automatically triggered to update the website available at:

Click here to access the documentation

For testing and development the html file, after running make html is available here:

file:///Users/adamkurth/Documents/vscode/CXFEL_Image_Analysis/CXFEL/CXLS_Sphinx/docs/build/html/index.html

and for work station:

file:///home/labuser/Development/adam/vscode/CXLS_Sphinx/docs/build/html/index.html

This repository relies on the use of a virtual environment called .venv. This is included in the root directory of this repository, and should be properly installed before adjusting the sphinx documentation.

Virtual Enviornment Installation

Using Conda Python package manager, to properly install requirements for using Sphinx and GitPages.

1. Open Terminal / Command Line

  • Make sure that Anaconda or Miniconda are installed before proceeding.

2. Create New Conda Enviornment

  • Create a new Conda enviornment called sphinx_env.
  • Replace 3.x with the specific version of Python you want to use (e.g., 3.8).
conda create --name sphinx_env python=3.x

3. Activate Enviornment

  • Using source command with Linux and Mac activate the env with:
conda activate sphinx_env

4. Install Sphinx

  • Using conda, we need to install Sphinx with:
conda install sphinx
  • Also, install useful other packages such as sphinx_rtd_theme and recommonmark.
conda install sphinx_rtd_theme recommonmark

5. Verify Installation

  • Verify installation and create initial sphinx build for documentation with:
sphinx-quickstart

6. Deactivate Enviornment

  • When done working with the enviornment, deactivate using:
conda deactivate

From here...

Say we have a file called index.rst which serves as our homepage.

Use the following command to create a new file called another_page.rst.

touch another_page.rst

Now we need to link these two files in a table of contents tree (called a toctree).

Make sure this syntax is correct, or your content will now show up.

Also we are free to put this page into a directory called test_dir, for better organization.

.. toctree::
   :maxdepth: 2
   :caption: Content:

   index
   test_dir/another_page

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published