Project

General

Profile

Actions

Task #306

open

Sphinx documentation setup

Added by Amul Munusamy about 1 month ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Normal
Start date:
03/14/2026
Due date:
% Done:

0%

Estimated time:

Description

Sphinx documentation setup and learning.


Files

git_clone.png (59 KB) git_clone.png Monish Munusamy, 03/14/2026 08:44 AM
python3-sphinx.png (49.5 KB) python3-sphinx.png Monish Munusamy, 03/14/2026 08:46 AM
pip_install_sphinxcontrib-video.png (93.9 KB) pip_install_sphinxcontrib-video.png Monish Munusamy, 03/14/2026 09:03 AM
pip_install_sphinxcontrib-video_--break-system-package.png (120 KB) pip_install_sphinxcontrib-video_--break-system-package.png Monish Munusamy, 03/14/2026 09:05 AM
sudo_apt_install_pwdsphinx.png (167 KB) sudo_apt_install_pwdsphinx.png Monish Munusamy, 03/14/2026 09:20 AM
check.png (78.8 KB) check.png Monish Munusamy, 03/14/2026 09:23 AM
sphinx.png (46.8 KB) sphinx.png Monish Munusamy, 03/14/2026 09:24 AM
sphinx-build_-M_html_source_build.png (118 KB) sphinx-build_-M_html_source_build.png Monish Munusamy, 03/14/2026 09:27 AM
google-chrome_index.html.png (112 KB) google-chrome_index.html.png Monish Munusamy, 03/14/2026 09:28 AM
prashanti_erp_documentation.png (75.1 KB) prashanti_erp_documentation.png Monish Munusamy, 03/14/2026 09:30 AM

Updated by Monish Munusamy about 1 month ago

Sphinx documentation setup

Step-1: Create folders and open that using:

  • Making directory by
       mkdir Projects/Prashanti/prashanti_docs/
    
  • Changing directory by
       cd Projects/Prashanti/prashanti_docs/
    

Step-2: Updating and Installing required packages:

  • Updating the package list from repositories by
       sudo apt update
    
  • Installing Sphinx documentation generator for Python by
       sudo apt-get install python3-sphinx
    


  • Install the Sphinx extension for embedding videos in documentation by
       pip install sphinxcontrib-video
    


  • Install sphinxcontrib-video, allowing it to override system package protections (forces installation even if it might conflict with system-managed packages):
       pip install sphinxcontrib-video --break-system-package
    


  • Install the Read the Docs theme for Sphinx using Python 3, forcing installation even if it might conflict with system-managed packages:
       pip3 install sphinx-rtd-theme --break-system-packages
    
  • Installing pip, the Python package installer by
       sudo apt-get install pip
    
  • Installing Git, the version control system by
       sudo apt install git
    
  • Installs the package pwdsphinx from the system repositories:
       sudo apt install pwdsphinx
    

Step-3: To copy the repository from the remote server to the local machine.

  • Cloning the repository
       git clone monish@prashantipms.amachu.tech:/home/prashantipms/repos/prashanti_docs
    

Step-4: Ensuring build folder is available or not by

  • list, making folder, opening source folder, list, back to current folder.
    ls
    mkdir build
    cd source/
    ls
    cd ..
    

Step-5: To create HTML, PDF, or other formats from reStructuredText(.rst) files.

  • A Python documentation generator:
    sphinx
    

  • Builds the HTML version of the documentation from the source directory into the build directory:
    sphinx-build -M html source build
    

  • open build folder, list, again go to html folder, Opens the file index.html in Google Chrome.
    cd build/
    ls
    cd html
    google-chrome index.html
    

  • Prashanti ERP Documentation:

Actions #2

Updated by Monish Munusamy about 1 month ago

  • Status changed from In Progress to Resolved
Actions #3

Updated by Amul Munusamy about 1 month ago

  • Subject changed from Sphinx documentation setup and learning to Sphinx documentation setup
Actions

Also available in: Atom PDF