Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(#7301) Build man pages for RPM and deb packages using Sphinx
- Loading branch information
1 parent
a8851a5
commit 5233cd7
Showing
121 changed files
with
107 additions
and
17,927 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
These patches allow the man pages to be built using older version | ||
of Sphinx. These patches may be dropped for more recent versions. | ||
Currently, our man pages are built on submit-3.batlab.org and | ||
python-sphinx10 is installed from EPEL 6. (version 1.0.8) | ||
These components are not used for the man pages. | ||
|
||
* sphnix.ext.napoleon appears in version 1.3 | ||
* sphinx.ext.autosectionlabel appears in version 1.4 | ||
|
||
diff --git a/docs/conf.py b/docs/conf.py | ||
index eb88a06..2da06e6 100644 | ||
--- a/docs/conf.py | ||
+++ b/docs/conf.py | ||
@@ -32,10 +32,8 @@ sys.path.append(os.path.abspath('extensions')) | ||
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom | ||
# ones. | ||
extensions = [ | ||
- 'sphinx.ext.autosectionlabel', | ||
'sphinx.ext.intersphinx', | ||
'sphinx.ext.autodoc', | ||
- 'sphinx.ext.napoleon', | ||
'ticket', | ||
'macro', | ||
'index', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
# in order of upstream compatibility and invasiveness | ||
old-sphinx.patch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
These patches allow the man pages to be built using older version | ||
of Sphinx. These patches may be dropped for more recent versions. | ||
Currently, our man pages are built on submit-3.batlab.org and | ||
python-sphinx10 is installed from EPEL 6. (version 1.0.8) | ||
These components are not used for the man pages. | ||
|
||
* process_index_entry appears in version 1.1 | ||
* sphnix.ext.napoleon appears in version 1.3 | ||
* sphinx.ext.autosectionlabel appears in version 1.4 | ||
|
||
diff --git a/docs/conf.py b/docs/conf.py | ||
index eb88a06..2da06e6 100644 | ||
--- a/docs/conf.py | ||
+++ b/docs/conf.py | ||
@@ -32,10 +32,8 @@ sys.path.append(os.path.abspath('extensions')) | ||
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom | ||
# ones. | ||
extensions = [ | ||
- 'sphinx.ext.autosectionlabel', | ||
'sphinx.ext.intersphinx', | ||
'sphinx.ext.autodoc', | ||
- 'sphinx.ext.napoleon', | ||
'ticket', | ||
'macro', | ||
'index', | ||
diff --git a/docs/extensions/index.py b/docs/extensions/index.py | ||
index 7565e0b..c02bf21 100644 | ||
--- a/docs/extensions/index.py | ||
+++ b/docs/extensions/index.py | ||
@@ -5,7 +5,7 @@ from docutils import nodes, utils | ||
from docutils.parsers.rst import Directive | ||
from sphinx import addnodes | ||
from sphinx.errors import SphinxError | ||
-from sphinx.util.nodes import split_explicit_title, process_index_entry, \ | ||
+from sphinx.util.nodes import split_explicit_title, \ | ||
set_role_source_info | ||
|
||
def dump(obj): | ||
@@ -23,7 +23,7 @@ def index_role(typ, rawtext, text, lineno, inliner, options={}, content=[]): | ||
title = utils.unescape(title) | ||
target = utils.unescape(target) | ||
# if an explicit target is given, we can process it as a full entry | ||
- if has_explicit_title: | ||
+ if False: | ||
entries = process_index_entry(target, targetid) | ||
# otherwise we just create a "single" entry | ||
else: |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.