Skip to main content

Creates HTML docs from a project's readme and sphinx-apidoc

Project description

Quickdocs

Creates HTML docs from a project's readme and sphinx-apidoc

Status

Source Shields
Project license release
Raised issues pulls

Installing

pip install quickdocs

Usage

To create an up to date sphinx configuration:

quickdocs .quickdocs.yml

Now we can build the documentation:

sphinx-build -E docs build

This will run copy and markup the project's readme at runtime so that you don't need to recompile the sphinx configuration unless any of the settings change.

Settings input file:

.quickdocs.yml:

project: Quickdocs
version: 1.1.0
author: Joel Lefkowitz
html_title: Quickdocs
github_url: JoelLefkowitz/quickdocs

Optional settings:

debug:        # Default: False
project_root: # Default: os.getcwd()
verbose_name: # Default: None
markup_readme: # Default: True
readme_name:   # Default: "README.md"
apidoc_module_dir: # Default: None

Integrating with readthedocs

.readthedocs.yml:

version: 2

sphinx:
  configuration: docs/conf.py

formats: all

python:
   version: 3.8
   install:
      - method: pip
        path: .
        extra_requirements:
            - docs

Declare the sphinx dependencies:

setup.py:

from setuptools import setup

if __name__ == "__main__":
    setup(
        extras_require={
            "docs": [
                "pypandoc",
                "sphinx",
                "sphinxcontrib.apidoc",
                "sphinxcontrib.pandoc_markdown",
                "sphinx-autodoc-annotation",
                "yummy_sphinx_theme",
            ],
        },
    )

Tests

To run unit tests:

tox

Documentation

Please view our documentation available on readthedocs.

To build locally generate the sphinx configuration:

quickdocs .quickdocs.yml

Then build the documentation:

sphinx-build -E docs build

Changelog

Please read CHANGELOG.md for details on changes that have been made.

Versioning

SemVer is used for versioning. For a list of versions available, see the tags on this repository.

Bump2version is used to version and tag changes. For example:

bump2version patch

Releases are made on every minor change.

Author

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests.

Acknowledgments

None yet!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

quickdocs-1.1.0.tar.gz (19.3 kB view hashes)

Uploaded Source

Built Distribution

quickdocs-1.1.0-py3-none-any.whl (26.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page