Giter Club home page Giter Club logo

sphinx-autosummary-recursion's Introduction

Requirements:

Need one set of scripts / configuration using Sphinx to generate pretty documentation in an automatable manner for:

  • standard .rst files that will be human written for tutorials, best practices etc.
  • python source code
  • click - for CLI

Action items:

  • Change one or more modules in this package to mimic some click related documentation
  • Include click-sphinx to generate documentation for click stuff

Sphinx-Autosummary-Recursion

This repo contains a Python package demonstrating the new automatic package recursion functionality in sphinx.ext.autosummary version 3.1 (see the :recursive: option towards the bottom).

The goal of this demo is to:

  • Point Sphinx at the top of the source code tree, and have it automatically find all the modules in the package, however deeply nested.
  • For each module, list the attributes, functions, classes and exceptions in that module in summary tables.
  • For each entry in a summary table, create a hyperlink to a new page containing the documentation for that attribute, function, class or exception.
  • For each class, document (my choice of) inheritence, public members, inherited members, and special members such as __call__.

The resulting built API documentation is available to view on ReadTheDocs.

Or you can clone the repo and build and view the API documentation locally:

  1. Assuming a Python 3.x environment, install dependencies:

    pip install -r docs/requirements.txt

  2. Change to the docs directory:

    cd docs

  3. Build the documentation:

    make html

  4. Run a web server:

    python -m http.server

  5. View documentation locally by opening in a browser:

    http://localhost:8000/build/html/

sphinx-autosummary-recursion's People

Contributors

jamesaleedham avatar ssomnath avatar

Stargazers

 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.