Giter Club home page Giter Club logo

autosphinxtemplate's Introduction

Automated documentation for Python scripts using Sphinx

This repository includes a template for Sphinx documentation that runs in docker through docker-compose.
Prior launching the service please review the docker-compose.yml, in particular the port number with the HTML documentation (default is set to 8080) and the folder containing the python scripts to be documented.

The structure of the repository for the automated documentation is the following:

├── docs
│   ├── source
│   │   ├── _ext (external interactions, e.g.: edit on gitHub functionality)
│   │   ├── _files (for files to be attached)
│   │   ├── _static (for figures, etc.)
│   │   ├── _templates (for HTML layouts, etc.)
│   │   ├── conf.py
│   │   ├── index.rst
│   │   ├── markdownFile_1.rst
│   │   ├── markdownFile_2.rst
│   │   ├── ...
|   │   └── markdownFile_n.rst
│   ├── Dockerfile
│   ├── requirements.txt
│   └── sphinxConfig.yml
├── pythonScripts (main scripts folder, sub-folders can be also added)
│   ├── main (this is an example of sub-folder that is also listed within this repo's sphinxConfig.yml file)
|   │   └── example_google.py (Google example of docstring)
│   ├── file_1.py
│   ├── file_2.py
│   ├── ...
│   └── file_n.py
├── .gitignore
├── LICENSE
├── README.md
└── docker-compose.yml

To bring the system up and running simply point the repository folder within the terminal/command prompt and run:

docker-compose up --build

Additional pages to the documentation, edits, etc. will automatically update on the HTML page.

The main folders that are monitor by the automated documentation are:

  • docs/source
  • pythonScripts

This last one can be renamed or more folders can be added the updated name or additional folders should be reflected in the docker-compose.yml and sphinxConfig.yml.

Finally, to bring the system up and running and dethatch it from the terminal run:

docker-compose up --build -d

License

MIT

Author

Giuseppe Cogoni

autosphinxtemplate's People

Contributors

giuseppecogoni avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.