X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=doc%2Fguides%2Fconf.py;h=34c62de679453d8be40675097f6f36208f9416b4;hb=be05eb445c370e67f18167f3712ba6b6680052fa;hp=29e8efb6c6617a21a4428810394aa4e2ec15dfd1;hpb=ed239ecd4251ef6d928e29f498fc08b811cd09d7;p=dpdk.git diff --git a/doc/guides/conf.py b/doc/guides/conf.py index 29e8efb6c6..34c62de679 100644 --- a/doc/guides/conf.py +++ b/doc/guides/conf.py @@ -58,7 +58,8 @@ html_add_permalinks = "" html_show_copyright = False highlight_language = 'none' -version = subprocess.check_output(['make', '-sRrC', '../../', 'showversion']).decode('utf-8').rstrip() +version = subprocess.check_output(['make', '-sRrC', '../../', 'showversion']) +version = version.decode('utf-8').rstrip() release = version master_doc = 'index' @@ -94,6 +95,7 @@ latex_elements = { 'preamble': latex_preamble } + # Override the default Latex formatter in order to modify the # code/verbatim blocks. class CustomLatexFormatter(LatexFormatter): @@ -117,12 +119,12 @@ man_pages = [("testpmd_app_ug/run_app", "testpmd", ("tools/devbind", "dpdk-devbind", "check device status and bind/unbind them from drivers", "", 8)] -######## :numref: fallback ######## + +# ####### :numref: fallback ######## # The following hook functions add some simple handling for the :numref: # directive for Sphinx versions prior to 1.3.1. The functions replace the # :numref: reference with a link to the target (for all Sphinx doc types). # It doesn't try to label figures/tables. - def numref_role(reftype, rawtext, text, lineno, inliner): """ Add a Sphinx role to handle numref references. Note, we can't convert @@ -136,6 +138,7 @@ def numref_role(reftype, rawtext, text, lineno, inliner): internal=True) return [newnode], [] + def process_numref(app, doctree, from_docname): """ Process the numref nodes once the doctree has been built and prior to