Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Kestrel Collaboration
Kestrel LiteX
migen
Commits
5bc4f6f2
Commit
5bc4f6f2
authored
7 years ago
by
Tim 'mithro' Ansell
Committed by
Sébastien Bourdeauducq
7 years ago
Browse files
Options
Download
Email Patches
Plain Diff
doc: Enable github links when not on readthedocs.
parent
4dfa3345
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
doc/conf.py
doc/conf.py
+16
-1
No files found.
doc/conf.py
View file @
5bc4f6f2
...
@@ -17,6 +17,7 @@
...
@@ -17,6 +17,7 @@
#sys.path.insert(0, os.path.abspath('.'))
#sys.path.insert(0, os.path.abspath('.'))
import
re
import
re
import
os
,
sys
import
sphinx_rtd_theme
import
sphinx_rtd_theme
...
@@ -109,7 +110,21 @@ html_theme = 'sphinx_rtd_theme'
...
@@ -109,7 +110,21 @@ html_theme = 'sphinx_rtd_theme'
# Theme options are theme-specific and customize the look and feel of a theme
# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# further. For a list of options available for each theme, see the
# documentation.
# documentation.
#html_theme_options = {}
# Enable github links when not on readthedocs
on_rtd
=
os
.
environ
.
get
(
'READTHEDOCS'
,
None
)
==
'True'
if
not
on_rtd
:
html_theme_options
=
{
"canonical_url"
:
"https://m-labs.hk/migen/manual/"
,
}
html_context
=
{
"display_github"
:
True
,
# Integrate GitHub
"github_user"
:
"m-labs"
,
# Username
"github_repo"
:
"migen"
,
# Repo name
"github_version"
:
"master"
,
# Version
"conf_py_path"
:
"/doc/"
,
}
# Add any paths that contain custom themes here, relative to this directory.
# Add any paths that contain custom themes here, relative to this directory.
html_theme_path
=
[
sphinx_rtd_theme
.
get_html_theme_path
()]
html_theme_path
=
[
sphinx_rtd_theme
.
get_html_theme_path
()]
...
...
This diff is collapsed.
Click to expand it.
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