We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5fcc77 commit 999a56aCopy full SHA for 999a56a
docs/source/conf.py
@@ -48,10 +48,17 @@
48
]
49
if os.environ.get('READTHEDOCS') == 'True':
50
extensions.append("sphinx_github_style")
51
- # Set the linkcode_url for sphinx-github-style extension
52
- linkcode_url = "https://github.com/dpeerlab/Palantir/blob/master/{path}#L{lineno}"
53
- github_repo = "dpeerlab/Palantir"
54
- github_version = "master"
+ extensions.append("sphinx.ext.linkcode")
+
+ # GitHub repo information
+ html_context = {
55
+ "github_user": "dpeerlab",
56
+ "github_repo": "Palantir",
57
+ "github_version": "master",
58
+ }
59
60
+ # Set linkcode_url for sphinx-github-style
61
+ linkcode_url = "https://github.com/dpeerlab/Palantir/blob/master/{filepath}#L{linestart}-L{linestop}"
62
63
source_suffix = [".rst", ".md"]
64
0 commit comments