Giter VIP home page Giter VIP logo

pydoctor's Introduction

pydoctor

image

image

This is 'pydoctor', an API documentation generator that works by static analysis.

It was written primarily to replace epydoc for the purposes of the Twisted project as epydoc has difficulties with zope.interface. If it happens to work for your code too, that's a nice bonus :)

pydoctor puts a fair bit of effort into resolving imports and computing inheritance hierarchies and, as it aims at documenting Twisted, knows about zope.interface's declaration API and can present information about which classes implement which interface, and vice versa.

The default HTML generator requires Twisted.

There are some more notes in the doc/ subdirectory.

Tox development environment

Since Python 3 is not yet supported, you the case in which your default tox runs with Python 3, call the tox as:

python2 -m tox -e pyflakes

Sphinx Integration

HTML generator will also generate a Sphinx objects inventory using the following mapping:

  • packages, modules -> py:mod:
  • classes -> py:class:
  • functions -> py:func:
  • methods -> py:meth:
  • attributes -> py:attr:

Configure Sphinx intersphinx extension:

intersphinx_mapping = {

'pydoctor': ('http://domain.tld/api', None),

}

Use external references:

:py:func:`External API <pydoctor:pydoctor.model.Documentable.reparent>`

:py:mod:`pydoctor:pydoctor`
:py:mod:`pydoctor:pydoctor.model`
:py:func:`pydoctor:pydoctor.driver.getparser`
:py:class:`pydoctor:pydoctor.model.Documentable`
:py:meth:`pydoctor:pydoctor.model.Documentable.reparent`
:py:attr:`pydoctor:pydoctor.model.Documentable.kind`

It can link to external API documentation using Sphinx objects inventory using the following cumulative configuration option:

--intersphinx=http://sphinx-doc.org/objects.inv

Releasing a new package

Releasing a new version is done via Travis-CI. First commit the version update to master and wait for tests to pass. Create a tag on local branch and then push it:

git tag 1.2.3
git push --tags

pydoctor's People

Contributors

adiroiban avatar dreid avatar exarkun avatar garyvdm avatar glyph avatar hawkowl avatar hynek avatar ivan-kalev avatar jelmer avatar khorn avatar lamby avatar markrwilliams avatar mwhudson avatar rodrigc avatar wallrj avatar

Watchers

 avatar  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.