]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Catch up to RST move/rename
authorBen Kaduk <kaduk@mit.edu>
Mon, 15 Oct 2012 22:17:50 +0000 (18:17 -0400)
committerBen Kaduk <kaduk@mit.edu>
Mon, 15 Oct 2012 23:22:21 +0000 (19:22 -0400)
Change the make rules for the directory structure.
Update the RST sources which include other RST sources for the
loss of the krb_ prefix.

ticket: 7409

.gitignore
doc/index.rst
doc/relay/build_this.rst
src/doc/Makefile.in

index 218800fb812f119fe0f0d995d7fa775f67f8af5d..d1b4bbac634666ae3e1ace3530c6f298efde29ea 100644 (file)
@@ -13,7 +13,7 @@ obj/
 testdir/
 testlog
 
-/doc/rst_html/
+/doc/html/
 
 /src/config.log
 /src/config.status
@@ -57,7 +57,7 @@ testlog
 /src/doc/paths.py
 /src/doc/rst_apiref/
 /src/doc/rst_composite/
-/src/doc/rst_html_subst/
+/src/doc/html_subst/
 
 /src/include/autoconf.h
 /src/include/autoconf.h.in
index fb1012bc1ed18ee9e29778c749f199aa5e5a82e8..157a5df00c4f51c96f02fd0d0aab7df33175cb9b 100644 (file)
@@ -5,12 +5,12 @@ MIT Kerberos Documentation
 .. toctree::
    :maxdepth: 1
 
-   krb_users/index.rst
-   krb_admins/index.rst
-   krb_appldev/index.rst
-   krb_plugindev/index.rst
-   krb_build/index.rst
-   krb_basic/index.rst
+   users/index.rst
+   admins/index.rst
+   appldev/index.rst
+   plugindev/index.rst
+   build/index.rst
+   basic/index.rst
    mitK5features.rst
    relay/index.rst
    resources
index f51d1047dff591fa82b6ef0f146591c8026af45f..624498363488234505ddcd7e7a472a4ca45db0e8 100644 (file)
@@ -20,7 +20,7 @@ To test simple changes to the RST sources, you can build the
 documentation without the Doxygen reference by running, from the doc
 directory::
 
-    sphinx-build rst_source test_html
+    sphinx-build . test_html
 
 You will see a number of warnings about missing files.  This is
 expected.
@@ -47,10 +47,10 @@ files when rebuilding the man pages.
 Building for a release tarball or web site
 ------------------------------------------
 
-To generate documentation in HTML format, run ``make rsthtml`` in the
+To generate documentation in HTML format, run ``make html`` in the
 ``doc`` subdirectory of a configured build tree (the build directory
 corresponding to ``src/doc``, not the top-level ``doc`` directory).
-The output will be placed in the top-level ``doc/rst_html`` directory.
+The output will be placed in the top-level ``doc/html`` directory.
 This build will include the API reference generated from Doxygen
 markup in the source tree.
 
@@ -73,7 +73,7 @@ To generate documentation specific to a build of MIT krb5 as you have
 configured it, run ``make substhtml`` in the ``doc`` subdirectory of a
 configured build tree (the build directory corresponding to
 ``src/doc``, not the top-level ``doc`` directory).  The output will be
-placed in the ``rst_html_subst`` subdirectory of that build directory.
+placed in the ``html_subst`` subdirectory of that build directory.
 This build will include the API reference.
 
 Documentation generated this way will use concrete paths (like
index e961f902a07fb0bb0fc9d3e089898e809a95572b..b6a3defdbd967b3b7e0f076044f9931ff3fe3d7e 100644 (file)
@@ -11,23 +11,41 @@ DEFCCNAME=@DEFCCNAME@
 DEFKTNAME=@DEFKTNAME@
 DEFCKTNAME=@DEFCKTNAME@
 
-# Create HTML documentation in $(docsrc)/rst_html suitable for a
+RST_SOURCES= _static \
+       _templates \
+       conf.py \
+       index.rst \
+       admins \
+       appldev \
+       basic \
+       build \
+       plugindev \
+       users \
+       mitK5defaults.rst \
+       mitK5features.rst \
+       mitK5license.rst \
+       notice.rst \
+       relay \
+       resources.rst \
+       txt_conf.py
+
+# Create HTML documentation in $(docsrc)/html suitable for a
 # release tarball or the web site (that is, without substitutions for
 # configured paths).  This can be done in an unconfigured source tree
 # with:
-#     make -f Makefile.in srcdir=. top_srcdir=.. PYTHON=python rsthml
+#     make -f Makefile.in srcdir=. top_srcdir=.. PYTHON=python html
 #     make -f Makefile.in clean
-rsthtml: composite
-       rm -rf $(docsrc)/rst_html
-       $(SPHINX_BUILD) -q rst_composite $(docsrc)/rst_html
+html: rst_composite
+       rm -rf $(docsrc)/html
+       $(SPHINX_BUILD) -q rst_composite $(docsrc)/html
 
-# Create HTML documentation in rst_html_subst suitable for
+# Create HTML documentation in html_subst suitable for
 # installation by an OS package, with substitutions for configured
 # paths.
-substhtml: composite paths.py
-       rm -rf rst_html_subst
+substhtml: rst_composite paths.py
+       rm -rf html_subst
        cp paths.py rst_composite
-       $(SPHINX_BUILD) -t pathsubs -q rst_composite rst_html_subst
+       $(SPHINX_BUILD) -t pathsubs -q rst_composite html_subst
 
 # Create an ASCII (okay, UTF-8) version of the NOTICE file
 notice.txt: rst_notice
@@ -37,17 +55,21 @@ NOTICE: notice.txt
        cp notice.txt $(top_srcdir)/../NOTICE
 
 # Use doxygen to generate API documentation, translate it into RST
-# format, and then create a composite of $(docsrc)/rst_source and the
-# generated files in rst_composite.  Used by the rsthtml and substhtml targets.
-composite: Doxyfile
+# format, and then create a composite of $(docsrc)'s RST and the
+# generated files in rst_composite.  Used by the html and substhtml targets.
+rst_composite: Doxyfile
        rm -rf doxy rst_apiref rst_composite
        $(DOXYGEN)
-       cwd=`pwd`; cd $(docsrc)/rst_tools && \
+       cwd=`pwd`; cd $(docsrc)/tools && \
                $(PYTHON) doxy.py -i $$cwd/doxy/xml -o $$cwd/rst_apiref
-       cp -r $(docsrc)/rst_source rst_composite
-       cp rst_apiref/*.rst rst_composite/krb_appldev/refs/api
-       cp rst_apiref/types/*.rst rst_composite/krb_appldev/refs/types
-       cp rst_apiref/macros/*.rst rst_composite/krb_appldev/refs/macros
+       mkdir -p rst_composite
+       do_subdirs="$(RST_SOURCES)" ; \
+       for i in $$do_subdirs; do \
+               cp -r $(docsrc)/$$i rst_composite; \
+       done
+       cp rst_apiref/*.rst rst_composite/appldev/refs/api
+       cp rst_apiref/types/*.rst rst_composite/appldev/refs/types
+       cp rst_apiref/macros/*.rst rst_composite/appldev/refs/macros
 
 # Must use a separate source dir for sphinx text builds, since the text
 # engine cannot handle the row spanning cells in fancy tables that we use
@@ -55,8 +77,8 @@ rst_notice: $(docsrc)/notice.rst $(docsrc)/txt_conf.py
        mkdir -p rst_notice
        # reST needs backslashes before parens in this macro definition.
        sed -e 's/include:: <isonum.txt>/|copy| replace:: \\(C\\)/' \
-               < $(docsrc)/rst_source/notice.rst > rst_notice/notice.rst
-       cp $(docsrc)/rst_source/txt_conf.py rst_notice/conf.py
+               < $(docsrc)/notice.rst > rst_notice/notice.rst
+       cp $(docsrc)/txt_conf.py rst_notice/conf.py
 
 Doxyfile: $(srcdir)/Doxyfile.in
        sed -e 's|@SRC@|$(top_srcdir)|g' \
@@ -74,5 +96,5 @@ paths.py:
        echo 'ckeytab = "``$(DEFCKTNAME)``"' >> $@
 
 clean::
-       rm -rf doxy rst_apiref rst_composite rst_notice rst_html_subst \
+       rm -rf doxy rst_apiref rst_composite rst_notice html_subst \
                Doxyfile paths.py