Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.admin
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
bob
bob.admin
Commits
1f81af42
Commit
1f81af42
authored
8 years ago
by
Tiago de Freitas Pereira
Browse files
Options
Downloads
Patches
Plain Diff
Adding intersphinx requirements
parent
ef80047a
No related branches found
No related tags found
1 merge request
!5
Added documentation requirements
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
templates/sphinx-conf.py
+8
-3
8 additions, 3 deletions
templates/sphinx-conf.py
with
8 additions
and
3 deletions
templates/sphinx-conf.py
+
8
−
3
View file @
1f81af42
...
@@ -216,8 +216,13 @@ autodoc_default_flags = [
...
@@ -216,8 +216,13 @@ autodoc_default_flags = [
]
]
# For inter-documentation mapping:
# For inter-documentation mapping:
from
bob.extension.utils
import
link_documentation
from
bob.extension.utils
import
link_documentation
,
load_requirements
intersphinx_mapping
=
link_documentation
()
sphinx_requirements
=
"
extra-intersphinx.txt
"
if
os
.
path
.
exists
(
sphinx_requirements
):
intersphinx_mapping
=
link_documentation
(
additional_packages
=
load_requirements
(
sphinx_requirements
))
else
:
intersphinx_mapping
=
link_documentation
()
# We want to remove all private (i.e. _. or __.__) members
# We want to remove all private (i.e. _. or __.__) members
# that are not in the list of accepted functions
# that are not in the list of accepted functions
...
@@ -237,4 +242,4 @@ def member_function_test(app, what, name, obj, skip, options):
...
@@ -237,4 +242,4 @@ def member_function_test(app, what, name, obj, skip, options):
return
False
return
False
def
setup
(
app
):
def
setup
(
app
):
app
.
connect
(
'
autodoc-skip-member
'
,
member_function_test
)
app
.
connect
(
'
autodoc-skip-member
'
,
member_function_test
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment