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 | |
Health | |
Repository | |
Publishers | |
Activity |
Installation
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.
Required settings file fields:
project: Quickdocs
version: 1.2.1
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_path: # 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:
- requirements: docs/requirements.txt
Removing old documentation
The sphinx-apidoc plugin generates documentation under docs/api. When running, the sphinx plugin will overwrite but not delete out of date files in this directory. This means if you rename a module you must delete the out of date documentation. This package should not delete the docs/api directory because some developers will add custom documentation to this directory as they write new modules.
Tests
To run unit tests and generate a coverage report:
grunt tests:unit
Documentation
This repository's documentation is hosted on readthedocs.
To generate the sphinx configuration:
grunt docs:generate
Then build the documentation:
grunt docs:build
Tooling
To run linters:
grunt lint
To run formatters:
grunt format
Before committing new code:
grunt precommit
This will run linters, formatters, tests, generate a test coverage report and the sphinx configuration.
Continuous integration
This repository uses Travis CI to build and test each commit. Formatting tasks and writing documentation must be done before committing new code.
Versioning
This repository adheres to semantic versioning standards. For more information on semantic versioning visit SemVer.
Bump2version is used to version and tag changes. For example:
bump2version patch
Changelog
Please read this repository's CHANGELOG for details on changes that have been made.
Contributing
Please read this repository's guidelines on CONTRIBUTING for details on our code of conduct and the process for submitting pull requests.
Contributors
- Joel Lefkowitz - Initial work - Joel Lefkowitz
Remarks
Lots of love to the open source community!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file quickdocs-1.6.3.tar.gz
.
File metadata
- Download URL: quickdocs-1.6.3.tar.gz
- Upload date:
- Size: 14.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.1.2 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d8a9ea30d62f1079a7acefd231acdae4a9ed734f2c4a00ebc2ab780e965e11c |
|
MD5 | fda71a7383ccf7c7d1e021dd4572b339 |
|
BLAKE2b-256 | 6c29e53c8a4322811d78aca78b04267dbb46ddee8916935433db0ac0d24acbf8 |
File details
Details for the file quickdocs-1.6.3-py3-none-any.whl
.
File metadata
- Download URL: quickdocs-1.6.3-py3-none-any.whl
- Upload date:
- Size: 15.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.1.2 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 113cb5f49b3edd3c1811d26e18079b279b0d52b6d672921c8cb0a02b8fe2b798 |
|
MD5 | b66dc281fc8e40fbadf9e5e334bc8654 |
|
BLAKE2b-256 | 01c4dbc9ad984dfe815f1eabcb45f9822d6a05244d8ca98009cb6bf2855bc35c |