Skip to content

Commit

Permalink
Simplify documentation examples and emphasis that pydoctor is a stand…
Browse files Browse the repository at this point in the history
…alone api docs generator. (#817)

Option --make-html is not necessary since it's enabled by default.

Option --project-base-dir has automatically the default value of the current working directory, so it's useless to specify it explicitely.

Co-authored-by: tristanlatr <[email protected]>
  • Loading branch information
tristanlatr and tristanlatr authored Sep 24, 2024
1 parent 5be6898 commit 502d378
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
7 changes: 2 additions & 5 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pydoctor
.. image:: https://img.shields.io/badge/-documentation-blue
:target: https://pydoctor.readthedocs.io/

This is *pydoctor*, an API documentation generator that works by
This is *pydoctor*, a standalone API documentation generator that works by
static analysis.

It was written primarily to replace ``epydoc`` for the purposes of the
Expand All @@ -27,15 +27,12 @@ Twisted, knows about ``zope.interface``'s declaration API and can present
information about which classes implement which interface, and vice
versa.

.. contents:: Contents:


Simple Usage
~~~~~~~~~~~~

You can run pydoctor on your project like this::

$ pydoctor --make-html --html-output=docs/api src/mylib
$ pydoctor --html-output=docs/api src/mylib

For more info, `Read The Docs <https://pydoctor.readthedocs.io/>`_.

Expand Down
2 changes: 0 additions & 2 deletions docs/source/publish-github-action.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@ with the appropriate information.
--project-name=(projectname) \
--project-url=https://github.com/$GITHUB_REPOSITORY \
--html-viewsource-base=https://github.com/$GITHUB_REPOSITORY/tree/$GITHUB_SHA \
--make-html \
--html-output=./apidocs \
--project-base-dir="$(pwd)" \
--docformat=restructuredtext \
--intersphinx=https://docs.python.org/3/objects.inv \
./(packagedirectory)
Expand Down
2 changes: 0 additions & 2 deletions docs/source/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ The result looks like `this <api/index.html>`_.
--project-version=1.2.0 \
--project-url=https://github.com/twisted/pydoctor/ \
--html-viewsource-base=https://github.com/twisted/pydoctor/tree/20.7.2 \
--make-html \
--html-output=docs/api \
--project-base-dir="." \
--docformat=epytext \
--intersphinx=https://docs.python.org/3/objects.inv \
./pydoctor
Expand Down

0 comments on commit 502d378

Please sign in to comment.