Skip to content

Commit e222368

Browse files
committed
Finalize docs files
1 parent 21e3036 commit e222368

File tree

6 files changed

+37
-7
lines changed

6 files changed

+37
-7
lines changed

docs/source/_static/custom.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,8 @@ code.literal {
1616
.wy-nav-top {
1717
background: #747373;
1818
}
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+
}

docs/source/add_linkcode_class.rst

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
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+
14
The ``add_linkcode_class`` module
25
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
36

@@ -6,5 +9,27 @@ Add Linkcode Class for CSS Styling
69
.. automodule:: sphinx_github_style.add_linkcode_class
710
:members:
811
: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:
928

29+
.. code-block:: css
1030
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+
}

docs/source/github_style.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
The ``github_style`` module
22
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
33

4-
GitHub Pygments Style Dark Theme
4+
:class:`~.TDKStyle` - GitHub Dark Theme Pygments Style
5+
===========================================================
56

67
.. automodule:: sphinx_github_style.github_style
78
:members:
89
:undoc-members:
10+
:exclude-members: setup

docs/source/index.rst

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,3 @@
44
.. include:: README.rst
55

66

7-
Indices and tables
8-
==================
9-
10-
* :ref:`genindex`
11-
* :ref:`modindex`
12-
* :ref:`search`

docs/source/meth_lexer.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@ The ``meth_lexer`` module
66
.. automodule:: sphinx_github_style.meth_lexer
77
:members:
88
:undoc-members:
9+
:exclude-members: setup
10+
911

docs/source/modules.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@ The ``sphinx_github_style`` Package
66
:members:
77
:undoc-members:
88

9+
|
910
1011
.. toctree::
1112
:caption: Modules
13+
:titlesonly:
1214

1315
add_linkcode_class
1416
github_style

0 commit comments

Comments
 (0)