Browse Source

use autosummary

pull/1289/head
Ross McFarland 4 months ago
parent
commit
7706dce54c
No known key found for this signature in database GPG Key ID: 943B179E15D3B22A
5 changed files with 54 additions and 64 deletions
  1. +2
    -1
      .gitignore
  2. +1
    -0
      docs/conf.py
  3. +15
    -30
      docs/source/api/processor.rst
  4. +35
    -32
      docs/source/api/records.rst
  5. +1
    -1
      script/generate-docs

+ 2
- 1
.gitignore View File

@ -8,7 +8,8 @@
coverage.xml
dist/
docs/_build/
docs/modules/
docs/source/api/processors/
docs/source/api/records/
.env
env/
examples/migrating-to-octodns/config/


+ 1
- 0
docs/conf.py View File

@ -16,6 +16,7 @@ release = __version__
extensions = [
"sphinx.ext.autodoc",
"sphinx.ext.autosummary",
"sphinx.ext.coverage",
"sphinx.ext.napoleon",
"sphinx.ext.intersphinx",


+ 15
- 30
docs/source/api/processor.rst View File

@ -55,33 +55,18 @@ domains added to the ``zones`` config in future then you can add this to the
processors:
- custom_meta
.. autoclass:: octodns.processor.base.BaseProcessor
:inherited-members:
.. automodule:: octodns.processor.acme
:inherited-members:
.. automodule:: octodns.processor.arpa
:inherited-members:
.. automodule:: octodns.processor.filter
:inherited-members:
.. automodule:: octodns.processor.meta
:inherited-members:
.. automodule:: octodns.processor.ownership
:inherited-members:
.. automodule:: octodns.processor.restrict
:inherited-members:
.. automodule:: octodns.processor.spf
:inherited-members:
.. automodule:: octodns.processor.templating
:inherited-members:
.. automodule:: octodns.processor.trailing_dots
:inherited-members:
.. currentmodule:: octodns.processor
.. autosummary::
:toctree: processors
base
acme
arpa
filter
meta
ownership
restrict
spf
templating
trailing_dots

+ 35
- 32
docs/source/api/records.rst View File

@ -1,35 +1,38 @@
Records
=======
.. automodule:: octodns.record.base
.. automodule:: octodns.record.aaaa
.. automodule:: octodns.record.alias
.. automodule:: octodns.record.a
.. automodule:: octodns.record.caa
.. automodule:: octodns.record.change
.. automodule:: octodns.record.chunked
.. automodule:: octodns.record.cname
.. automodule:: octodns.record.dname
.. automodule:: octodns.record.ds
.. automodule:: octodns.record.dynamic
.. automodule:: octodns.record.exception
.. automodule:: octodns.record.geo_data
.. automodule:: octodns.record.geo
.. automodule:: octodns.record.https
.. automodule:: octodns.record.ip
.. automodule:: octodns.record.loc
.. automodule:: octodns.record.mx
.. automodule:: octodns.record.naptr
.. automodule:: octodns.record.ns
.. automodule:: octodns.record.ptr
.. automodule:: octodns.record.rr
.. automodule:: octodns.record.spf
.. automodule:: octodns.record.srv
.. automodule:: octodns.record.sshfp
.. automodule:: octodns.record.subnet
.. automodule:: octodns.record.svcb
.. automodule:: octodns.record.target
.. automodule:: octodns.record.tlsa
.. automodule:: octodns.record.txt
.. automodule:: octodns.record.uri
.. automodule:: octodns.record.urlfwd
.. autosummary::
:toctree: records
octodns.record.base
octodns.record.aaaa
octodns.record.alias
octodns.record.a
octodns.record.caa
octodns.record.change
octodns.record.chunked
octodns.record.cname
octodns.record.dname
octodns.record.ds
octodns.record.dynamic
octodns.record.exception
octodns.record.geo_data
octodns.record.geo
octodns.record.https
octodns.record.ip
octodns.record.loc
octodns.record.mx
octodns.record.naptr
octodns.record.ns
octodns.record.ptr
octodns.record.rr
octodns.record.spf
octodns.record.srv
octodns.record.sshfp
octodns.record.subnet
octodns.record.svcb
octodns.record.target
octodns.record.tlsa
octodns.record.txt
octodns.record.uri
octodns.record.urlfwd

+ 1
- 1
script/generate-docs View File

@ -22,6 +22,6 @@ if [ -z "$BUILDER" ]; then
fi
build="_build/${BUILDER}"
rm -rf "$build"
rm -rf "$build" source/api/records/ source/api/processors/
sphinx-build --builder "$BUILDER" --conf-dir . --fail-on-warning "$@" "source/" "$build"

Loading…
Cancel
Save