storing common project configuration.
To use this a project should create a conf.yaml file in the same
-directory as their conf.py. Conf.py should contain at minimum::
+directory as their conf.py. The minimal configuration for ``conf.py`` is::
from docs_conf import *
-The conf.yaml file should contain at minimum::
+The minimal configuration for ``conf.yaml`` file is::
---
project_cfg=myproject
-If defaults for 'myproject' exist, they will be loaded from this
-package, otherwise the basic Sphinx defaults will be set.
+Docs will load default configuration for 'myproject' from this package if it
+exists, otherwise it will load basic configuration from Sphinx defaults.
Configuration precedence for configuration is as follows:
#. docs_conf/defaults/default.yaml
#. docs_conf/__init__.py
-conf.py structure and documentation:
+``conf.py`` structure and documentation:
http://www.sphinx-doc.org/en/stable/config.html
TODO
----
-- [ ] Define the minimum set of config values to release initial version.
+- [ ] Define the minimal set of config values to release initial version.
These can probably come from ODL/OPNFV site conf.py files.
- [ ] Use sane defaults, and don't error out if something is not set.
- Each config needs to be imported gracefully (if it doesn't
- exist, set None or something; similar to dict.get
+ We must import each config cleanly (if it doesn't
+ exist, set None or something; like the function dict.get()).
- [ ] Create own documentation for project detailing use of 'conf.cfg'
file as some values will require subkeys given that they're
dictionaries or expect a list of tuples.
-- [ ] Setup and document section. The documentation already is organized
- by section, so the config should also contain these section and look
- for their values under them.
+- [ ] Setup and document section. With the documentation organized by section,
+ the config should also contain these section and look for their values
+ under them.
Sections:
[tox]
minversion = 2.0
envlist =
- coala,
docs,
docs-linkcheck,
pre-commit,
commands =
pytest --basetemp={envtmpdir} {posargs}
-[testenv:coala]
-basepython = python3
-deps =
- coala
- coala-bears
- nodeenv==1.1.2
- pygments~=2.3.1
-commands =
- nodeenv -p
- npm install --global write-good
- # Workaround for systems that do not have `skip_install` (tox>=1.9)
- pip install Sphinx~=1.4.9
- coala --non-interactive
-skip_install=True
-
[testenv:docs]
basepython = python3
deps = -rdocs/requirements.txt