# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
-# import os
-# import sys
-# sys.path.insert(0, os.path.abspath('.'))
+import os
+import sys
+
+sys.path.insert(0, os.path.abspath('../.'))
# import sphinx_rtd_theme
copyright = '2021, CZ.NIC, z. s. p. o.'
author = 'Aleš Mrázek'
+# The suffix of source filenames.
+source_suffix = '.rst'
+master_doc = 'index'
# -- General configuration ---------------------------------------------------
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
-# extensions = [
-# 'sphinx_rtd_theme',
-# ]
+extensions = [
+ # 'sphinx_rtd_theme',
+ 'sphinx.ext.autodoc'
+]
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
-#
+
# html_theme = 'sphinx_rtd_theme'
# Add any paths that contain custom static files (such as style sheets) here,
--- /dev/null
+*************************
+Declarative configuration
+*************************
+
+.. contents::
+ :depth: 2
+ :local:
+
+Final documentation will be generated from configuration datamodel.
+This is just a raw proposal.
+
+server
+======
+
+.. envvar:: server:hostname: <str>
+
+ Detailed information probably from python docstring.
+
+network
+=======
+
+.. envvar:: network:interfaces: <list>
+
+ .. envvar:: listen: <ip-address>[@port]
+
+ .. envvar:: kind: <dns|xdp|dot|doh|control>
+
+ :default: dns
+
+ .. envvar:: freebind: <bool>
+
+ :default: false
+
+ Example:
+
+ .. code-block:: yaml
+
+ network:
+ interfaces:
+ - listen: eth0@53
+
+
+
+