Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
beiran
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
79
Issues
79
List
Boards
Labels
Milestones
Merge Requests
13
Merge Requests
13
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
beiran
beiran
Commits
d3718517
Verified
Commit
d3718517
authored
Jan 27, 2019
by
Furkan Mustafa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc: enable gitlab integration for viewing page sources
parent
986316fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
conf.py
doc/source/conf.py
+8
-2
No files found.
doc/source/conf.py
View file @
d3718517
...
...
@@ -63,7 +63,6 @@ extensions = ['sphinx.ext.autodoc',
'sphinx.ext.mathjax'
,
'sphinx.ext.ifconfig'
,
'sphinx.ext.viewcode'
,
'sphinx.ext.autodoc'
,
'sphinxcontrib.napoleon'
,
'sphinx_click.ext'
,
]
...
...
@@ -288,9 +287,16 @@ def replace_docstring_variables(app, docname, source):
result
=
result
.
replace
(
key
,
app
.
config
.
docstring_replacements
[
key
])
source
[
0
]
=
result
html_context
=
{
"display_gitlab"
:
True
,
# Integrate Gitlab
"gitlab_host"
:
"gitlab.beiran.io"
,
# Username
"gitlab_repo"
:
"beiran/beiran"
,
# Repo name
"gitlab_version"
:
git_branch
,
# Version
"conf_py_path"
:
"/doc/source/"
,
# Path in the checkout to the docs root
}
docstring_replacements
=
{
"{beiran_git_latest_release}"
:
"https://gitlab.beiran.io/beiran/beiran.git@
v0.0.9"
"{beiran_git_latest_release}"
:
"https://gitlab.beiran.io/beiran/beiran.git@
{}"
.
format
(
latest_release_version
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment