diff --git a/sphinx.mk b/sphinx.mk index 2696e22..127e416 100644 --- a/sphinx.mk +++ b/sphinx.mk @@ -22,8 +22,8 @@ conf.py: pydocs/templates/conf.py.tpl pydocs/replace.sh conf.py "" "Dirk Alders" index.rst: pydocs/templates/index.rst.tpl - cp pydocs/templates/index.rst.tpl index.rst - pydocs/replace.sh index.rst "" "$(SPHINXPRJ)" + venv/bin/sphinx-apidoc -TMo . $(SPHINXPRJ) + mv $(SPHINXPRJ).rst index.rst html: examples conf.py index.rst echo -e "\e[1m * Generated html files...\e[0m" @@ -35,7 +35,7 @@ examples: localclean: echo -e "\033[1;33mCleanung up docs...\033[00m" echo -e "\e[1m * Sphix config files...\e[0m" - rm -vf conf.py index.rst + rm -vf conf.py *.rst echo -e "\e[1m * Sphix build directory...\e[0m" rm -rf $(BUILDDIR) make --no-print-directory -kC $(SPHINXPRJ)/_examples_ clean diff --git a/templates/index.rst.tpl b/templates/index.rst.tpl deleted file mode 100644 index 2e08b93..0000000 --- a/templates/index.rst.tpl +++ /dev/null @@ -1,24 +0,0 @@ -.. documentation master file, created by - sphinx-quickstart on Fri Jan 1 19:56:01 2021. - You can adapt this file completely to your liking, but it should at least - contain the root `toctree` directive. - -Welcome to documentation! -======================================= - -.. automodule:: - :members: - -.. toctree:: - :maxdepth: 2 - :caption: Contents: - - - -Indices and tables -================== - -* :ref:`genindex` -* :ref:`modindex` -* :ref:`search` -