Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
doc-utils
doc-utils
Commits
f62b90a9
Commit
f62b90a9
authored
Jul 19, 2021
by
Ingo Meyer
Browse files
Merge branch 'develop'
parents
684e42fe
e40a7bd8
Changes
2
Hide whitespace changes
Inline
Side-by-side
docutils_extended/_version.py
View file @
f62b90a9
__version_info__
=
(
0
,
4
,
0
)
__version_info__
=
(
0
,
4
,
1
)
__version__
=
"."
.
join
(
map
(
str
,
__version_info__
))
styles/rst2html_githublike_fzj.css
View file @
f62b90a9
/*
Modified version of:
:Author: David Goodger (goodger@python.org)
:Id: $Id: html4css1.css 7952 2016-07-26 18:15:59Z milde $
:Copyright: This stylesheet has been placed in the public domain.
Default cascading style sheet for the HTML output of Docutils.
See http://docutils.sf.net/docs/howto/html-stylesheets.html for how to
customize this style sheet.
Copyright (c) 2013 Chad Skeeters (goobsoft@gmail.com)
:Author: Ingo Meyer
:Contact: i.meyer@fz-juelich.de
...
...
@@ -8,520 +17,50 @@ Copyright (c) 2013 Chad Skeeters (goobsoft@gmail.com)
Stylesheet for use with Docutils/rst2html.
Can be used with `--syntax-highlight=short` or
`--syntax-highlight=long` but short is recommended
Work based on https://bitbucket.org/cskeeters/rst2html-style/
*/
html
{
font-size
:
100%
;
-webkit-text-size-adjust
:
100%
;
-ms-text-size-adjust
:
100%
;
}
a
:focus
{
outline
:
thin
dotted
#333
;
outline
:
5px
auto
-webkit-focus-ring-color
;
outline-offset
:
-2px
;
}
a
:hover
,
a
:active
{
outline
:
0
;
}
sub
,
sup
{
position
:
relative
;
font-size
:
75%
;
line-height
:
0
;
vertical-align
:
baseline
;
}
sup
{
top
:
-0.5em
;
}
sub
{
bottom
:
-0.25em
;
}
img
{
width
:
auto
\
9
;
height
:
auto
;
max-width
:
100%
;
vertical-align
:
middle
;
border
:
0
;
-ms-interpolation-mode
:
bicubic
;
}
@media
print
{
*
{
color
:
#000
!important
;
text-shadow
:
none
!important
;
background
:
transparent
!important
;
box-shadow
:
none
!important
;
}
a
,
a
:visited
{
text-decoration
:
underline
;
}
.ir
a
:after
,
a
[
href
^=
"javascript:"
]
:after
,
a
[
href
^=
"#"
]
:after
{
content
:
""
;
}
pre
,
blockquote
{
border
:
1px
solid
#999
;
page-break-inside
:
avoid
;
}
thead
{
display
:
table-header-group
;
}
tr
,
img
{
page-break-inside
:
avoid
;
}
img
{
max-width
:
100%
!important
;
}
@page
{
margin
:
0.5cm
;
}
h1
.title
{
page-break-before
:
avoid
;
}
p
,
h2
,
h3
{
orphans
:
3
;
widows
:
3
;
}
h2
,
h3
{
page-break-after
:
avoid
;
}
}
*/
body
{
margin
:
40px
;
margin-right
:
auto
;
margin-left
:
auto
;
width
:
700px
;
font-family
:
"Helvetica Neue"
,
Helvetica
,
Arial
,
sans-serif
;
font-size
:
14px
;
line-height
:
20px
;
color
:
#333333
;
background-color
:
#ffffff
;
}
a
{
color
:
#0088cc
;
text-decoration
:
none
;
}
a
:hover
,
a
:focus
{
color
:
#005580
;
text-decoration
:
underline
;
}
.img-rounded
{
-webkit-border-radius
:
6px
;
-moz-border-radius
:
6px
;
border-radius
:
6px
;
}
.img-polaroid
{
padding
:
4px
;
background-color
:
#fff
;
border
:
1px
solid
#ccc
;
border
:
1px
solid
rgba
(
0
,
0
,
0
,
0.2
);
-webkit-box-shadow
:
0
1px
3px
rgba
(
0
,
0
,
0
,
0.1
);
-moz-box-shadow
:
0
1px
3px
rgba
(
0
,
0
,
0
,
0.1
);
box-shadow
:
0
1px
3px
rgba
(
0
,
0
,
0
,
0.1
);
}
p
{
margin
:
0
0
10px
;
}
small
{
font-size
:
85%
;
.document
{
font-family
:
"Helvetica Neue"
,
Helvetica
,
Arial
,
"DejaVu Sans"
,
sans-serif
;
font-size
:
14px
;
line-height
:
20px
;
color
:
#333333
;
}
strong
{
font-weight
:
bold
;
color
:
#023d6b
;
}
em
{
font-style
:
italic
;
}
cite
{
font-style
:
normal
;
}
h1
,
h2
,
h3
,
h4
,
h5
,
h6
{
font-family
:
inherit
;
font-weight
:
bold
;
line-height
:
125%
;
margin-top
:
40px
;
color
:
inherit
;
text-rendering
:
optimizelegibility
;
}
h1
{
font-size
:
2em
;
padding-bottom
:
.2em
;
}
h1
.title
{
padding-bottom
:
1em
;
border-bottom
:
0px
;
}
h2
{
font-size
:
1.5em
;
}
h3
{
font-size
:
1.3em
;
}
h4
{
font-size
:
1.3em
;
}
h5
{
font-size
:
1.2em
;
}
h6
{
font-size
:
1.1em
;
}
ul
,
ol
{
padding
:
0
;
margin
:
0
0
10px
25px
;
}
ul
ul
,
ul
ol
,
ol
ol
,
ol
ul
{
margin-bottom
:
0
;
}
li
{
line-height
:
20px
;
}
dl
{
margin-bottom
:
20px
;
}
dt
,
dd
{
line-height
:
20px
;
}
dt
{
font-weight
:
bold
;
}
dd
{
margin-left
:
10px
;
}
hr
{
margin
:
20px
0
;
border
:
0
;
border-top
:
1px
solid
#eeeeee
;
border-bottom
:
1px
solid
#ffffff
;
}
abbr
[
title
],
abbr
[
data-original-title
]
{
cursor
:
help
;
border-bottom
:
1px
dotted
#999999
;
}
abbr
.initialism
{
font-size
:
90%
;
text-transform
:
uppercase
;
}
blockquote
{
padding
:
0
0
0
15px
;
margin
:
0
0
20px
;
border-left
:
5px
solid
#eeeeee
;
}
blockquote
p
{
margin-bottom
:
0
;
font-weight
:
normal
;
line-height
:
1.25
;
}
q
:before
,
q
:after
,
blockquote
:before
,
blockquote
:after
{
content
:
""
;
}
address
{
display
:
block
;
margin-bottom
:
20px
;
font-style
:
normal
;
line-height
:
20px
;
}
code
,
pre
{
padding
:
0
3px
2px
;
font-family
:
Monaco
,
Menlo
,
Consolas
,
"Courier New"
,
monospace
;
font-size
:
12px
;
color
:
#333333
;
border
:
1px
solid
#ccc
;
}
code
{
padding
:
2px
4px
;
white-space
:
nowrap
;
}
pre
{
display
:
block
;
padding
:
9.5px
;
margin
:
0
0
10px
;
.literal
{
font-family
:
"DejaVu Sans Mono"
,
Menlo
,
Monaco
,
Consolas
,
"Courier New"
,
monospace
;
font-size
:
13px
;
line-height
:
20px
;
word-break
:
break-all
;
word-wrap
:
break-word
;
white-space
:
pre
;
white-space
:
pre-wrap
;
background-color
:
#ffffff
;
}
pre
.prettyprint
{
margin-bottom
:
20px
;
}
pre
code
{
padding
:
0
;
color
:
inherit
;
white-space
:
pre
;
white-space
:
pre-wrap
;
background-color
:
transparent
;
border
:
0
;
}
.pre-scrollable
{
max-height
:
340px
;
overflow-y
:
scroll
;
}
table
{
max-width
:
100%
;
background-color
:
transparent
;
border-collapse
:
collapse
;
border-spacing
:
0
;
}
.table
{
width
:
100%
;
margin-bottom
:
20px
;
}
.table
th
,
.table
td
{
padding
:
8px
;
line-height
:
20px
;
text-align
:
left
;
vertical-align
:
top
;
border-top
:
1px
solid
#dddddd
;
}
.table
th
{
font-weight
:
bold
;
}
.table
thead
th
{
vertical-align
:
bottom
;
}
.table
caption
+
thead
tr
:first-child
th
,
.table
caption
+
thead
tr
:first-child
td
,
.table
colgroup
+
thead
tr
:first-child
th
,
.table
colgroup
+
thead
tr
:first-child
td
,
.table
thead
:first-child
tr
:first-child
th
,
.table
thead
:first-child
tr
:first-child
td
{
border-top
:
0
;
}
.table
tbody
+
tbody
{
border-top
:
2px
solid
#dddddd
;
}
.table
.table
{
background-color
:
#ffffff
;
}
.table-condensed
th
,
.table-condensed
td
{
padding
:
4px
5px
;
}
.table-bordered
{
border
:
1px
solid
#dddddd
;
border-collapse
:
separate
;
*
border-collapse
:
collapse
;
border-left
:
0
;
-webkit-border-radius
:
4px
;
-moz-border-radius
:
4px
;
border-radius
:
4px
;
}
.table-bordered
th
,
.table-bordered
td
{
border-left
:
1px
solid
#dddddd
;
}
.table-bordered
caption
+
thead
tr
:first-child
th
,
.table-bordered
caption
+
tbody
tr
:first-child
th
,
.table-bordered
caption
+
tbody
tr
:first-child
td
,
.table-bordered
colgroup
+
thead
tr
:first-child
th
,
.table-bordered
colgroup
+
tbody
tr
:first-child
th
,
.table-bordered
colgroup
+
tbody
tr
:first-child
td
,
.table-bordered
thead
:first-child
tr
:first-child
th
,
.table-bordered
tbody
:first-child
tr
:first-child
th
,
.table-bordered
tbody
:first-child
tr
:first-child
td
{
border-top
:
0
;
}
.table-bordered
thead
:first-child
tr
:first-child
>
th
:first-child
,
.table-bordered
tbody
:first-child
tr
:first-child
>
td
:first-child
,
.table-bordered
tbody
:first-child
tr
:first-child
>
th
:first-child
{
-webkit-border-top-left-radius
:
4px
;
border-top-left-radius
:
4px
;
-moz-border-radius-topleft
:
4px
;
}
.table-bordered
thead
:first-child
tr
:first-child
>
th
:last-child
,
.table-bordered
tbody
:first-child
tr
:first-child
>
td
:last-child
,
.table-bordered
tbody
:first-child
tr
:first-child
>
th
:last-child
{
-webkit-border-top-right-radius
:
4px
;
border-top-right-radius
:
4px
;
-moz-border-radius-topright
:
4px
;
}
.table-bordered
thead
:last-child
tr
:last-child
>
th
:first-child
,
.table-bordered
tbody
:last-child
tr
:last-child
>
td
:first-child
,
.table-bordered
tbody
:last-child
tr
:last-child
>
th
:first-child
,
.table-bordered
tfoot
:last-child
tr
:last-child
>
td
:first-child
,
.table-bordered
tfoot
:last-child
tr
:last-child
>
th
:first-child
{
-webkit-border-bottom-left-radius
:
4px
;
border-bottom-left-radius
:
4px
;
-moz-border-radius-bottomleft
:
4px
;
}
.table-bordered
thead
:last-child
tr
:last-child
>
th
:last-child
,
.table-bordered
tbody
:last-child
tr
:last-child
>
td
:last-child
,
.table-bordered
tbody
:last-child
tr
:last-child
>
th
:last-child
,
.table-bordered
tfoot
:last-child
tr
:last-child
>
td
:last-child
,
.table-bordered
tfoot
:last-child
tr
:last-child
>
th
:last-child
{
-webkit-border-bottom-right-radius
:
4px
;
border-bottom-right-radius
:
4px
;
-moz-border-radius-bottomright
:
4px
;
}
.table-bordered
tfoot
+
tbody
:last-child
tr
:last-child
td
:first-child
{
-webkit-border-bottom-left-radius
:
0
;
border-bottom-left-radius
:
0
;
-moz-border-radius-bottomleft
:
0
;
}
.table-bordered
tfoot
+
tbody
:last-child
tr
:last-child
td
:last-child
{
-webkit-border-bottom-right-radius
:
0
;
border-bottom-right-radius
:
0
;
-moz-border-radius-bottomright
:
0
;
}
.table-bordered
caption
+
thead
tr
:first-child
th
:first-child
,
.table-bordered
caption
+
tbody
tr
:first-child
td
:first-child
,
.table-bordered
colgroup
+
thead
tr
:first-child
th
:first-child
,
.table-bordered
colgroup
+
tbody
tr
:first-child
td
:first-child
{
-webkit-border-top-left-radius
:
4px
;
border-top-left-radius
:
4px
;
-moz-border-radius-topleft
:
4px
;
}
.table-bordered
caption
+
thead
tr
:first-child
th
:last-child
,
.table-bordered
caption
+
tbody
tr
:first-child
td
:last-child
,
.table-bordered
colgroup
+
thead
tr
:first-child
th
:last-child
,
.table-bordered
colgroup
+
tbody
tr
:first-child
td
:last-child
{
-webkit-border-top-right-radius
:
4px
;
border-top-right-radius
:
4px
;
-moz-border-radius-topright
:
4px
;
}
.table-striped
tbody
>
tr
:nth-child
(
odd
)>
td
,
.table-striped
tbody
>
tr
:nth-child
(
odd
)>
th
{
background-color
:
#f9f9f9
;
}
.table-hover
tbody
tr
:hover
>
td
,
.table-hover
tbody
tr
:hover
>
th
{
background-color
:
#f5f5f5
;
}
table
td
[
class
*=
"span"
],
table
th
[
class
*=
"span"
],
.row-fluid
table
td
[
class
*=
"span"
],
.row-fluid
table
th
[
class
*=
"span"
]
{
display
:
table-cell
;
float
:
none
;
margin-left
:
0
;
}
.hero-unit
{
padding
:
60px
;
margin-bottom
:
30px
;
font-size
:
18px
;
font-weight
:
200
;
line-height
:
30px
;
color
:
inherit
;
background-color
:
#eeeeee
;
-webkit-border-radius
:
6px
;
-moz-border-radius
:
6px
;
border-radius
:
6px
;
a
{
color
:
#0088cc
;
text-decoration
:
none
;
}
.hero-unit
h1
{
margin-bottom
:
0
;
font-size
:
60px
;
line-height
:
1
;
letter-spacing
:
-1px
;
color
:
inherit
;
a
:hover
,
a
:focus
{
color
:
#005580
;
text-decoration
:
underline
;
}
.hero-unit
li
{
line-height
:
30px
;
p
{
margin-block-start
:
10px
;
margin-block-end
:
10px
;
}
/* rst2html default used to remove borders from tables and images */
/* used to remove borders from tables and images */
.borderless
,
table
.borderless
td
,
table
.borderless
th
{
...
...
@@ -531,8 +70,8 @@ table.borderless th {
table
.borderless
td
,
table
.borderless
th
{
/* Override padding for "table.docutils td" with "! important".
The right padding separates the table cells. */
padding
:
0
0.5em
0
0
! important
The right padding separates the table cells. */
padding
:
0
0.5em
0
0
! important
}
.first
{
...
...
@@ -549,6 +88,16 @@ padding: 0 0.5em 0 0 ! important
display
:
none
}
.subscript
{
vertical-align
:
sub
;
font-size
:
smaller
}
.superscript
{
vertical-align
:
super
;
font-size
:
smaller
}
a
.toc-backref
{
text-decoration
:
none
;
color
:
black
...
...
@@ -569,8 +118,8 @@ object[type="application/x-shockwave-flash"] {
/* Uncomment (and remove this text!) to get bold-faced definition list terms
dl.docutils dt {
font-weight: bold }
*/
font-weight: bold }
*/
div
.abstract
{
margin
:
2em
5em
...
...
@@ -596,46 +145,6 @@ div.warning {
padding
:
1em
}
div
.note
,
div
.warning
{
margin
:
1.5em
0px
;
border
:
none
;
}
div
.note
p
.admonition-title
,
div
.warning
p
.admonition-title
{
display
:
none
;
}
/* Clearfix
* http://css-tricks.com/snippets/css/clear-fix/
*/
div
.note
:after
,
div
.warning
:after
{
content
:
""
;
display
:
table
;
clear
:
both
;
}
div
.note
p
:before
,
div
.warning
p
:before
{
display
:
block
;