Giter Site home page Giter Site logo

ahsentekd / sphinx-autoapi Goto Github PK

View Code? Open in Web Editor NEW

This project forked from readthedocs/sphinx-autoapi

0.0 0.0 0.0 4.04 MB

A new approach to API documentation in Sphinx.

Home Page: https://sphinx-autoapi.readthedocs.io/

License: MIT License

Shell 0.02% JavaScript 0.51% Python 94.12% Go 2.23% Makefile 3.13%

sphinx-autoapi's Introduction

Sphinx AutoAPI

Documentation

Github Build Status

PyPI Version

Supported Python Versions

Formatted with Black

Sphinx AutoAPI provides "autodoc" style documentation for multiple programming languages without needing to load, run, or import the project being documented.

In contrast to the traditional Sphinx autodoc, which is Python-only and uses code imports, AutoAPI finds and generates documentation by parsing source code.

Language Support

Language Status Parser
Python Stable Custom using astroid
Go Alpha godocjson
Javascript Alpha jsdoc
.NET Alpha docfx

Getting Started

The following steps will walk through how to add AutoAPI to an existing Sphinx project. For instructions on how to set up a Sphinx project, see Sphinx's documentation on Getting Started.

Installation

AutoAPI can be installed through pip:

pip install sphinx-autoapi

Next, add and configure AutoAPI in your Sphinx project's conf.py. Other languages may require further configuration:

extensions.append('autoapi.extension')

autoapi_type = 'python'
autoapi_dirs = ['path/to/source/files', 'src']

Where autoapi_type can be one of any of the supported languages:

Language autoapi_type
Python 'python'
Go 'go'
Javascript 'javascript'
.NET 'dotnet'

When the documentation is built, AutoAPI will now generate API documentation into an autoapi/ directory and add an entry to the documentation in your top level table of contents!

To configure AutoAPI behaviour further, see the Configuration documentation.

Contributing

Running the tests

Tests are executed through tox.

tox

Code Style

Code is formatted using black.

You can check your formatting using black's check mode:

tox -e formatting

You can also get black to format your changes for you:

black autoapi/ tests/

You can even get black to format changes automatically when you commit using pre-commit:

pip install pre-commit
pre-commit install

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

License

This project is licensed under the MIT License. See the LICENSE.rst file for details.

sphinx-autoapi's People

Contributors

ericholscher avatar awhetter avatar agjohnson avatar matthijsburgh avatar ciscorn avatar swenson avatar renefritze avatar oleastre avatar danroth27 avatar slai avatar danields761 avatar fredbi avatar nuchi-airbnb avatar ashb avatar mik-laj avatar kianmeng avatar mgaitan avatar mathbou avatar garfieldnate avatar derthorsten avatar uztbt avatar zmoon avatar lhfriedman avatar silverrainz avatar jepler avatar jakobandersen avatar davidfischer avatar curtlh avatar kinow avatar toomanybrians 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.