Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
331db8cc
Commit
331db8cc
authored
Jul 09, 2019
by
LysandreJik
Browse files
Added viewcode plugin for source code visualization within the static website.
parent
83fb311e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
5 deletions
+17
-5
docs/source/_static/css/code-snippets.css
docs/source/_static/css/code-snippets.css
+3
-3
docs/source/_static/css/huggingface.css
docs/source/_static/css/huggingface.css
+12
-0
docs/source/conf.py
docs/source/conf.py
+2
-2
No files found.
docs/source/_static/css/code-snippets.css
View file @
331db8cc
.highlight
.c1
{
.highlight
.c1
,
.highlight
.sd
{
color
:
#999
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
;
color
:
#FB8D68
;
}
}
.highlight
.kn
,
.highlight
.nv
,
.highlight
.s2
{
.highlight
.kn
,
.highlight
.nv
,
.highlight
.s2
,
.highlight
.ow
{
color
:
#6670FF
;
color
:
#6670FF
;
}
}
\ No newline at end of file
docs/source/_static/css/huggingface.css
View file @
331db8cc
...
@@ -104,6 +104,18 @@ a {
...
@@ -104,6 +104,18 @@ a {
background-color
:
#6670FF
;
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 */
/* FONTS */
body
{
body
{
font-family
:
Calibre
;
font-family
:
Calibre
;
...
...
docs/source/conf.py
View file @
331db8cc
...
@@ -42,8 +42,8 @@ extensions = [
...
@@ -42,8 +42,8 @@ extensions = [
'sphinx.ext.autodoc'
,
'sphinx.ext.autodoc'
,
'sphinx.ext.coverage'
,
'sphinx.ext.coverage'
,
'sphinx.ext.napoleon'
,
'sphinx.ext.napoleon'
,
'recommonmark'
'recommonmark'
,
'sphinx.ext.viewcode'
]
]
# Add any paths that contain templates here, relative to this directory.
# Add any paths that contain templates here, relative to this directory.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment