File tree Expand file tree Collapse file tree 6 files changed +37
-7
lines changed Expand file tree Collapse file tree 6 files changed +37
-7
lines changed Original file line number Diff line number Diff line change @@ -16,3 +16,8 @@ code.literal {
16
16
.wy-nav-top {
17
17
background : # 747373 ;
18
18
}
19
+ /* Change viewcode "[source]" link position and colour (blue) */
20
+ .rst-content .viewcode-back , .rst-content .viewcode-link {
21
+ color : # 00e ;
22
+ padding-left : 12px ;
23
+ }
Original file line number Diff line number Diff line change
1
+ .. |.github_style | replace :: ``github_style.css ``
2
+ .. _.github_style : https://github.com/tdkorn/sphinx-github-style/tree/v1.0.0/sphinx_github_style/_static/github_style.css
3
+
1
4
The ``add_linkcode_class `` module
2
5
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3
6
@@ -6,5 +9,27 @@ Add Linkcode Class for CSS Styling
6
9
.. automodule :: sphinx_github_style.add_linkcode_class
7
10
:members:
8
11
:undoc-members:
12
+ :exclude-members: setup
13
+
14
+
15
+ The |.github_style |_ StyleSheet
16
+ ==================================
17
+
18
+ Links are styled as follows:
19
+
20
+
21
+ .. literalinclude :: ../../sphinx_github_style/_static/github_style.css
22
+ :language: css
23
+
24
+
25
+
26
+ To make the ``viewcode-link `` links match with the ``linkcode-link `` links,
27
+ add the following to your ``custom.css `` file:
9
28
29
+ .. code-block :: css
10
30
31
+ /* Change viewcode "[source]" link position and colour to match linkcode */
32
+ .rst-content .viewcode-back , .rst-content .viewcode-link {
33
+ color : #00e ;
34
+ padding-left : 12px ;
35
+ }
Original file line number Diff line number Diff line change 1
1
The ``github_style `` module
2
2
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3
3
4
- GitHub Pygments Style Dark Theme
4
+ :class: `~.TDKStyle ` - GitHub Dark Theme Pygments Style
5
+ ===========================================================
5
6
6
7
.. automodule :: sphinx_github_style.github_style
7
8
:members:
8
9
:undoc-members:
10
+ :exclude-members: setup
Original file line number Diff line number Diff line change 4
4
.. include :: README.rst
5
5
6
6
7
- Indices and tables
8
- ==================
9
-
10
- * :ref: `genindex `
11
- * :ref: `modindex `
12
- * :ref: `search `
Original file line number Diff line number Diff line change @@ -6,4 +6,6 @@ The ``meth_lexer`` module
6
6
.. automodule :: sphinx_github_style.meth_lexer
7
7
:members:
8
8
:undoc-members:
9
+ :exclude-members: setup
10
+
9
11
Original file line number Diff line number Diff line change @@ -6,9 +6,11 @@ The ``sphinx_github_style`` Package
6
6
:members:
7
7
:undoc-members:
8
8
9
+ |
9
10
10
11
.. toctree ::
11
12
:caption: Modules
13
+ :titlesonly:
12
14
13
15
add_linkcode_class
14
16
github_style
You can’t perform that action at this time.
0 commit comments