Sphinx Github Integration and Github Dark Theme Pygments Style
Project description
Github Pygments Style and Sphinx Integration
Components
~.linkcode_resolve() ~.add_linkcode_node_class()
TDKStyle.py - Highlights code similar to Github Pretty Lights Dark
TDKMethLexor - Highlights methods in code blocks
~.add_linkcode_node_class() - Updates linkcode nodes a new linkcode-link class to use for CSS styling separately from viewcode links
Add default ~.linkcode_resolve()
github_style.css - Linkcode link icon + text
Config Values
linkcode_default_blob: str = any('last_tag', 'master', 'head')
linkcode_link_text: str = "View on GitHub"
linkcode_url: str = "https://github.com/tdkorn/sphinx-github-style"
linkcode_resolve: func = None
linkcode_default_blob: str = any(‘last_tag’, ‘master’, ‘head’)
Default is “master”
- How blob is chosen
If head is a tag, uses the tag
- If head is not a tag, then
If default blob is “last_tag” -> Retrieve most recent tag; if no tags exist, uses master
If default blob is “head” -> uses last commit hash; if wasn’t able to get head, uses “master”
If default blob is “master” -> uses “master”
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for sphinx-github-style-0.0.1b7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83869e8cb506c3ada74da3844f5243cfe98dfafca63c72f7ea7edf33b31882f1 |
|
MD5 | 3b725d447fc65e4673da01d20c8fba4f |
|
BLAKE2b-256 | cc43adb11a10c9f6d905b9c7df8d884a69b0083982dc91950d8ef6a4cfc0b7d9 |
Hashes for sphinx_github_style-0.0.1b7-py3.10.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3eb1927588d0adba93d155cf64fbaa337bafcad418ade300d0766d001bb457e4 |
|
MD5 | 852fe777582b4995f13a5444a660f936 |
|
BLAKE2b-256 | 76f5617eaeea8f19d4bf622602c6a4738fc6684ad15bd4d9a0d007575db69835 |
Hashes for sphinx_github_style-0.0.1b7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 582b6b460f0f8be9945513513d109d7ccf3943fea9b917b7acc9b6ad429924fd |
|
MD5 | 579fc5e4112144745cb63d877ec707fd |
|
BLAKE2b-256 | 18c4a3a32e970d3bebc2111e1dd307f0ec504252d218e637e0f9af765988826a |