]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
doc: cleanup
authorMarek Vavruša <marek.vavrusa@nic.cz>
Wed, 18 Mar 2015 15:44:13 +0000 (16:44 +0100)
committerMarek Vavruša <marek.vavrusa@nic.cz>
Wed, 18 Mar 2015 15:44:13 +0000 (16:44 +0100)
doc/conf.py
doc/contents.rst [deleted file]
doc/index.rst [new file with mode: 0644]

index 62658ef954bf7785a2aa3043373c7b243e60e086..63332cb20498d55412527840a9325ed5ecd4172e 100644 (file)
@@ -4,39 +4,33 @@ import sys, os, re, subprocess
 
 # -- General configuration -----------------------------------------------------
 
-# If your documentation needs a minimal Sphinx version, state it here.
-#needs_sphinx = '1.0'
-
 if os.environ.get('READTHEDOCS', None) == 'True':
   subprocess.call('doxygen')
 
-# 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.ext.ifconfig', 'sphinx.ext.todo', 'breathe']
+# Add any Sphinx extension module names here, as strings.
+extensions = ['sphinx.ext.todo', 'breathe']
 
+# Breathe configuration
 breathe_projects = { "libkresolve": "doxyxml" }
 breathe_default_project = "libkresolve"
 breathe_domain_by_extension = {"h" : "c"}
 
 # The suffix of source filenames.
 source_suffix = '.rst'
+master_doc = 'index'
 
 # General information about the project.
 project = u'Knot DNS Resolver'
 copyright = u'2014-2015 CZ.NIC labs'
-
-# The version info for the project you're documenting, acts as replacement for
-# |version| and |release|, also used in various other places throughout the
-# built documents.
 version = { k[0][0]: k[0][1] for k in filter(None, [re.findall(r'(MAJOR|MINOR|PATCH) := ([0-9]+)',line) for line in open('../config.mk')])}
-version = '{}.{}.{}'.format(version['MAJOR'], version['MINOR'], version['PATCH'])
+version = '%s.%s.%s' % (version['MAJOR'], version['MINOR'], version['PATCH'])
 
 # The full version, including alpha/beta/rc tags.
 release = version
 
 # List of patterns, relative to source directory, that match files and
 # directories to ignore when looking for source files.
-exclude_patterns = []
+exclude_patterns = ['_build']
 
 # The name of the Pygments (syntax highlighting) style to use.
 pygments_style = 'sphinx'
@@ -47,7 +41,7 @@ primary_domain = 'c'
 
 # The theme to use for HTML and HTML Help pages.  See the documentation for
 # a list of builtin themes.
-html_theme = 'sphinx_rtd_theme'
+html_theme = 'alabaster'
 
 # The name for this set of Sphinx documents.  If None, it defaults to
 # "<project> v<release> documentation".
diff --git a/doc/contents.rst b/doc/contents.rst
deleted file mode 100644 (file)
index 606717b..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-#################
-Knot DNS Resolver
-#################
-
-.. toctree::
-   :maxdepth: 2
-
-   lib 
-   daemon
-
diff --git a/doc/index.rst b/doc/index.rst
new file mode 100644 (file)
index 0000000..af71688
--- /dev/null
@@ -0,0 +1,20 @@
+Knot DNS Resolver
+=================
+
+The Knot DNS Resolver is a minimalistic caching resolver implementation.
+The project provides both a resolver library and a small daemon.
+Modular architecture of the library keeps the core tiny and efficient, and provides a state-machine like API for extensions.
+
+.. toctree::
+   :maxdepth: 2
+
+   lib 
+   daemon
+
+Indices and tables
+==================
+
+* :ref:`genindex`
+* :ref:`modindex`
+* :ref:`search`
+