diff --git a/docs/source/_static/css/code-snippets.css b/docs/source/_static/css/code-snippets.css index 4d525e95d7..43acc6751c 100644 --- a/docs/source/_static/css/code-snippets.css +++ b/docs/source/_static/css/code-snippets.css @@ -1,12 +1,12 @@ -.highlight .c1{ +.highlight .c1, .highlight .sd{ color: #999 } -.highlight .nn, .highlight .k, .highlight .s1, .highlight .nb, .highlight .bp { +.highlight .nn, .highlight .k, .highlight .s1, .highlight .nb, .highlight .bp, .highlight .kc { color: #FB8D68; } -.highlight .kn, .highlight .nv, .highlight .s2 { +.highlight .kn, .highlight .nv, .highlight .s2, .highlight .ow { color: #6670FF; } \ No newline at end of file diff --git a/docs/source/_static/css/huggingface.css b/docs/source/_static/css/huggingface.css index f50726b57d..1895f5a10b 100644 --- a/docs/source/_static/css/huggingface.css +++ b/docs/source/_static/css/huggingface.css @@ -104,6 +104,18 @@ a { background-color: #6670FF; } + +/* Source spans */ +.rst-content .viewcode-link, .rst-content .viewcode-back{ + color: #6670FF; + font-size: 110%; + letter-spacing: 2px; + text-transform: uppercase; +} + + + + /* FONTS */ body{ font-family: Calibre; diff --git a/docs/source/conf.py b/docs/source/conf.py index 706329c19a..16866b5e5c 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -42,8 +42,8 @@ extensions = [ 'sphinx.ext.autodoc', 'sphinx.ext.coverage', 'sphinx.ext.napoleon', - 'recommonmark' - + 'recommonmark', + 'sphinx.ext.viewcode' ] # Add any paths that contain templates here, relative to this directory.