]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#866] text ARM, remove ungenerated indices
authorAndrei Pavel <andrei@isc.org>
Tue, 3 Aug 2021 12:33:51 +0000 (15:33 +0300)
committerTomek Mrugalski <tomek@isc.org>
Fri, 13 Aug 2021 15:44:20 +0000 (15:44 +0000)
doc/sphinx/Makefile.am
doc/sphinx/api2doc.py
doc/sphinx/conf.py
doc/sphinx/index.rst

index fb73ae7028c000e04449009b619df917fbe787e7..96cba12ded30dceb874698f1fdf475645f558caa 100644 (file)
@@ -61,9 +61,9 @@ api_files =
 include $(top_srcdir)/src/share/api/api_files.mk
 
 if HAVE_PDFLATEX
-all: html mans pdf
+all: html mans pdf text
 else
-all: html mans
+all: html mans text
 endif
 
 # build the list of message files
@@ -164,6 +164,9 @@ html: $(main_sources) api-files.txt mes-files.txt $(srcdir)/arm/platforms.rst
 singlehtml: $(main_sources) api-files.txt mes-files.txt $(srcdir)/arm/platforms.rst
        $(SPHINXBUILD) -M singlehtml $(srcdir) $(sphinxbuilddir) $(sphinxopts)
 
+text: $(main_sources) api-files.txt mes-files.txt $(srcdir)/arm/platforms.rst
+       $(SPHINXBUILD) -M text $(srcdir) $(sphinxbuilddir) $(sphinxopts)
+
 $(man8s): mans
 
 mans: $(man_sources) api-files.txt mes-files.txt
index e253d334a97115e06f0eca5006131f1fbcae7ed1..f4ba57e6b9070db0790987d757b27ac516b45e51 100755 (executable)
@@ -88,8 +88,11 @@ API Reference
         rst += '.\n\n'
 
     for func in sorted(apis.values(), key=lambda f: f['name']):
-        name = func['name']
-        rst += '.. _ref-%s:\n\n' % name
+        # The dot is added to overcome an overlap of ordinal numbers and text
+        # in the table of contents.
+        name = '. ' + func['name']
+        real_name = func['name']
+        rst += '.. _ref-%s:\n\n' % real_name
         rst += name + '\n'
         rst += '-' * len(name) + '\n\n'
 
@@ -120,7 +123,7 @@ API Reference
         rst += 'Access: %s *(parameter ignored in this Kea version)* \n\n' % access
 
         # description and examples
-        rst += 'Description and examples: see :ref:`%s command <command-%s>`\n\n' % (name, name)
+        rst += 'Description and examples: see :ref:`%s command <command-%s>`\n\n' % (name, real_name)
 
         # command syntax
         rst += 'Command syntax:\n\n'
index 5999b71d418cdfc9d15437885849f1a8ecbd92e1..142b16b7eb4f2df6ff064ab64d131b4071676090 100644 (file)
@@ -116,7 +116,6 @@ pygments_style = None
 #
 #html_theme = 'alabaster'
 html_theme = 'sphinx_rtd_theme'
-#html_logo = '_static/kea-logo-100x70.png'
 html_logo = 'static/kea-imageonly-100bw.png'
 
 # Theme options are theme-specific and customize the look and feel of a theme
@@ -176,6 +175,8 @@ latex_documents = [
     (master_doc, 'kea-arm.tex', 'Kea Administrator Reference Manual Documentation', author, 'manual'),
 ]
 
+latex_logo = 'static/kea-logo-200.png'
+
 if os.getenv("READTHEDOCS", "False") == "False":
     latex_documents.append((messages_doc, 'kea-messages.tex', 'Kea Messages Manual', author, 'manual'))
 
index a59706116734457bc1381a5f50a922126f27f80b..ded3a1e99c96aa0124e8b897abbd4bfc5b6d5985 100644 (file)
@@ -1,5 +1,9 @@
-.. figure:: static/kea-logo-200.png
-   :align: right
+.. only:: not latex
+
+    .. image:: static/kea-logo-200.png
+        :align: right
+
+.. _introduction:
 
 ##################################
 Kea Administrator Reference Manual
@@ -54,12 +58,3 @@ Kea, can be found in ISC's `Knowledgebase <https://kea.readthedocs.io>`_.
    umls
    grammar/grammar
    arm/acknowledgments
-
-
-
-Indices and Tables
-==================
-
-* :ref:`genindex`
-* :ref:`modindex`
-* :ref:`search`