[ https://issues.apache.org/jira/browse/PROTON-2086?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16917909#comment-16917909 ]
ASF GitHub Bot commented on PROTON-2086: ---------------------------------------- astitcher commented on pull request #186: PROTON-2086: Changed API documentation from epydoc to Sphinx URL: https://github.com/apache/qpid-proton/pull/186#discussion_r318683940 ########## File path: python/docs/conf.py ########## @@ -1,242 +1,181 @@ # -*- coding: utf-8 -*- # -# Apache Qpid Proton documentation build configuration file, created by -# sphinx-quickstart on Mon Feb 16 14:13:09 2015. +# Configuration file for the Sphinx documentation builder. # -# This file is execfile()d with the current directory set to its containing dir. -# -# Note that not all possible configuration values are present in this -# autogenerated file. -# -# All configuration values have a default; values that are commented out -# serve to show the default. +# This file does only contain a selection of the most common options. For a +# full list see the documentation: +# http://www.sphinx-doc.org/en/master/config -import sys, os +# -- Path setup -------------------------------------------------------------- # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. -#sys.path.insert(0, os.path.abspath('.')) -# -- General configuration ----------------------------------------------------- +import os +import sys +sys.path.insert(0, os.path.abspath('../python')) -# If your documentation needs a minimal Sphinx version, state it here. -#needs_sphinx = '1.0' +# -- Project information ----------------------------------------------------- -# 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.autodoc', 'sphinx.ext.todo'] +project = 'Qpid Proton Python API' +copyright = '2019, Apache Qpid Contributors' +author = 'Apache Qpid Contributors' -# Add any paths that contain templates here, relative to this directory. -#templates_path = ['_templates'] +# The short X.Y version +version = '0.27' Review comment: I recommend against writing this kind of source file at build time unless there is no other way. I am trying to move the proton setup.py away from this model as it is somewhat limiting. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org > Move Python API docs to use Sphinx > ---------------------------------- > > Key: PROTON-2086 > URL: https://issues.apache.org/jira/browse/PROTON-2086 > Project: Qpid Proton > Issue Type: Task > Components: python-binding > Reporter: Kim van der Riet > Assignee: Kim van der Riet > Priority: Major > > Currently the Python API docs are generated using ePyDoc. These should be > switched to using Sphinx. -- This message was sent by Atlassian Jira (v8.3.2#803003) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org For additional commands, e-mail: dev-h...@qpid.apache.org