.. _CALL_APIDOC: call_apidoc.sh ============== .. only:: builder_man SYNOPSIS -------- call_apidoc.sh DESCRIPTION ----------- The *call_apidoc.sh* implements a wrapper for the generation of the API documentation. The curent defaul call is: .. parsed-literal:: sphinx-apidoc The expected output is the raw output from the tool *sphinx-apidoc* including the appropriate *Makefile*. The created files *conf.py* and *index.rst* are replace by the tool *call_doc.sh* by the provided files within the configuration template. It is recommended to replace generated files in case of required manual documentation as required, instead adding files with different names. The configuration requires to support a *Makefile* by itself, when the build step *call_apidoc.sh* is omitted. In this case also a complete set of files and a complete *toctree* has to be provided. .. only:: builder_man The call wraps the command for the generation of the API documentation - currently *sphinx-apidoc* by default. The interface is provided by environment variables. ENVIRONMENT ----------- The following environment variables as set by their corresponding command line options of *build_docx* are passed as parameters. .. raw:: html
+----------------------------------------------------+-----------------------------------------------------------+---------------------------+ | environment variable | corresponding option | default | +====================================================+===========================================================+===========================+ | :ref:`DOCX_APIDOC ` | :ref:`--apidoc ` | '' | +----------------------------------------------------+-----------------------------------------------------------+---------------------------+ | :ref:`DOCX_APIREF ` | :ref:`--apiref ` | '' | +----------------------------------------------------+-----------------------------------------------------------+---------------------------+ | :ref:`DOCX_BUILDDIR ` | :ref:`--build-dir ` | build/ | +----------------------------------------------------+-----------------------------------------------------------+---------------------------+ | :ref:`DOCX_CLEAN ` | :ref:`--clean ` | '' | +----------------------------------------------------+-----------------------------------------------------------+---------------------------+ | :ref:`DOCX_CONFDIR ` | :ref:`--confdir ` | docsrc/conf/ | +----------------------------------------------------+-----------------------------------------------------------+---------------------------+ | :ref:`DOCX_DOCNAME ` | :ref:`--docname ` | self.name (package-name) | +----------------------------------------------------+-----------------------------------------------------------+---------------------------+ | :ref:`DOCX_DOCSRC ` | :ref:`--docsource ` | docsrc/ | +----------------------------------------------------+-----------------------------------------------------------+---------------------------+ | :ref:`DOCX_DOCTYPE ` | :ref:`--doctype ` | html | +----------------------------------------------------+-----------------------------------------------------------+---------------------------+ | :ref:`DOCX_INDEXSRC ` | :ref:`--indexsrc ` | "index.rst" | +----------------------------------------------------+-----------------------------------------------------------+---------------------------+ | :ref:`DOCX_LIB ` | -- | os.path.dirname(__file__) | +----------------------------------------------------+-----------------------------------------------------------+---------------------------+ | :ref:`DOCX_NAME ` | :ref:`--name ` | self.name (package-name) | +----------------------------------------------------+-----------------------------------------------------------+---------------------------+ | :ref:`DOCX_NOEXEC ` | :ref:`--no-exec ` | '' | +----------------------------------------------------+-----------------------------------------------------------+---------------------------+ | :ref:`DOCX_RAWDOC ` | :ref:`--rawdoc ` | '' | +----------------------------------------------------+-----------------------------------------------------------+---------------------------+ | :ref:`DOCX_RELEASE ` | :ref:`--set-release ` | | +----------------------------------------------------+-----------------------------------------------------------+---------------------------+ | :ref:`DOCX_SRCDIR ` | :ref:`--srcdir ` | self.name (package-name) | +----------------------------------------------------+-----------------------------------------------------------+---------------------------+ | :ref:`DOCX_VERBOSE ` | | 0 | +----------------------------------------------------+-----------------------------------------------------------+---------------------------+ | :ref:`DOCX_VERBOSEX ` | :ref:`--verbose-ext ` | 0 | +----------------------------------------------------+-----------------------------------------------------------+---------------------------+ | :ref:`DOCX_VERSION ` | :ref:`--set-version ` | | +----------------------------------------------------+-----------------------------------------------------------+---------------------------+ .. raw:: html
SEE ALSO -------- setupdocx(1), call_doc.sh(1), call_apiref.sh(1) LICENSE ------- :ref:`modified Artistic License ` = :ref:`ArtisticLicense20 ` + :ref:`Peer-to-Peer-Fairplay-amendments ` .. only:: not builder_man .. _CALL_APIDOC_SOURCE: .. only:: builder_html Source ------ .. literalincludewrap:: _static/call_apidoc.sh :language: bash :linenos: .. only:: builder_html Download -------- `call_apidoc.sh <_static/call_apidoc.sh>`_