mkdocs-tacc 0.2.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- mkdocs_tacc/__init.py__ +0 -0
- mkdocs_tacc/tacc_readthedocs/README.md +11 -0
- mkdocs_tacc/tacc_readthedocs/__init__.py +0 -0
- mkdocs_tacc/tacc_readthedocs/css/tacc-theme/bootstrap.css +39 -0
- mkdocs_tacc/tacc_readthedocs/css/tacc-theme/core-docs.css +90 -0
- mkdocs_tacc/tacc_readthedocs/css/tacc-theme/core-styles.base.css +8 -0
- mkdocs_tacc/tacc_readthedocs/css/tacc-theme/core-styles.docs.css +46 -0
- mkdocs_tacc/tacc_readthedocs/css/tacc-theme/highlight-js.css +61 -0
- mkdocs_tacc/tacc_readthedocs/css/tacc-theme/mkdocs.css +7 -0
- mkdocs_tacc/tacc_readthedocs/css/tacc-theme/pymdownx.css +78 -0
- mkdocs_tacc/tacc_readthedocs/css/tacc-theme/python-markdown.css +56 -0
- mkdocs_tacc/tacc_readthedocs/css/tacc-theme/readthedocs-reskin.css +310 -0
- mkdocs_tacc/tacc_readthedocs/css/tacc-theme/readthedocs-revert.css +4 -0
- mkdocs_tacc/tacc_readthedocs/css/tacc-theme.css +25 -0
- mkdocs_tacc/tacc_readthedocs/footer.html +39 -0
- mkdocs_tacc/tacc_readthedocs/img/favicon.ico +0 -0
- mkdocs_tacc/tacc_readthedocs/img/logo.svg +1 -0
- mkdocs_tacc/tacc_readthedocs/js/tacc-theme/addIconToExternalLinks.js +37 -0
- mkdocs_tacc/tacc_readthedocs/js/tacc-theme/addPageNameToRoot.js +3 -0
- mkdocs_tacc/tacc_readthedocs/js/tacc-theme/autoScrollNavOnPageReload.js +43 -0
- mkdocs_tacc/tacc_readthedocs/js/tacc-theme/redirectNavLinks.js +9 -0
- mkdocs_tacc/tacc_readthedocs/js/tacc-theme/removeSectionClass.js +5 -0
- mkdocs_tacc/tacc_readthedocs/js/tacc-theme/setTargetForExternalLinks.mjs +3 -0
- mkdocs_tacc/tacc_readthedocs/js/tacc-theme/swapImgSvgWithRawSvg.mjs +6 -0
- mkdocs_tacc/tacc_readthedocs/js/tacc-theme.mjs +7 -0
- mkdocs_tacc/tacc_readthedocs/locales/en/LC_MESSAGES/messages.mo +0 -0
- mkdocs_tacc/tacc_readthedocs/locales/en/LC_MESSAGES/messages.po +13 -0
- mkdocs_tacc/tacc_readthedocs/main.html +134 -0
- mkdocs_tacc/tacc_readthedocs/mkdocs_theme.yml +28 -0
- mkdocs_tacc/tacc_readthedocs/nav.html +30 -0
- mkdocs_tacc/tacc_readthedocs/searchbox.html +9 -0
- mkdocs_tacc-0.2.0.dist-info/LICENSE +21 -0
- mkdocs_tacc-0.2.0.dist-info/METADATA +103 -0
- mkdocs_tacc-0.2.0.dist-info/RECORD +36 -0
- mkdocs_tacc-0.2.0.dist-info/WHEEL +4 -0
- mkdocs_tacc-0.2.0.dist-info/entry_points.txt +3 -0
mkdocs_tacc/__init.py__
ADDED
|
File without changes
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# TACC Theme Based on MkDocs' ReadTheDocs Theme
|
|
2
|
+
|
|
3
|
+
This theme is based on [MkDocs' "ReadTheDocs" theme](https://www.mkdocs.org/user-guide/choosing-your-theme/#readthedocs). To use:
|
|
4
|
+
|
|
5
|
+
> [!CAUTION]
|
|
6
|
+
> Do **not** copy these files to your project.
|
|
7
|
+
|
|
8
|
+
> [!TIP]
|
|
9
|
+
> Install the theme into your project. [Learn how.](../README.md#quick-start)
|
|
10
|
+
|
|
11
|
+
The assets and configuration are unique for TACC. The templates are edits of [the templates of MkDocs' "ReadTheDocs" theme from v1.4.2+](https://github.com/mkdocs/mkdocs/blob/1.4.2/mkdocs/themes/readthedocs/).
|
|
File without changes
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/* to make embedded media responsive */
|
|
2
|
+
/* https://getbootstrap.com/docs/4.0/utilities/embed/ */
|
|
3
|
+
|
|
4
|
+
.embed-responsive {
|
|
5
|
+
position: relative;
|
|
6
|
+
display: block;
|
|
7
|
+
width: 100%;
|
|
8
|
+
padding: 0;
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
}
|
|
11
|
+
.embed-responsive::before {
|
|
12
|
+
display: block;
|
|
13
|
+
content: "";
|
|
14
|
+
}
|
|
15
|
+
.embed-responsive .embed-responsive-item,
|
|
16
|
+
.embed-responsive iframe,
|
|
17
|
+
.embed-responsive embed,
|
|
18
|
+
.embed-responsive object,
|
|
19
|
+
.embed-responsive video {
|
|
20
|
+
position: absolute;
|
|
21
|
+
top: 0;
|
|
22
|
+
bottom: 0;
|
|
23
|
+
left: 0;
|
|
24
|
+
width: 100%;
|
|
25
|
+
height: 100%;
|
|
26
|
+
border: 0;
|
|
27
|
+
}
|
|
28
|
+
.embed-responsive-21by9::before {
|
|
29
|
+
padding-top: 42.857143%;
|
|
30
|
+
}
|
|
31
|
+
.embed-responsive-16by9::before {
|
|
32
|
+
padding-top: 56.25%;
|
|
33
|
+
}
|
|
34
|
+
.embed-responsive-4by3::before {
|
|
35
|
+
padding-top: 75%;
|
|
36
|
+
}
|
|
37
|
+
.embed-responsive-1by1::before {
|
|
38
|
+
padding-top: 100%;
|
|
39
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/* TODO: Migrate some of this to TACC/Core-Styles' `core-styles.docs.css` */
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
/* ELEMENTS */
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
/* to ensure paragraph font size matches core-styles.docs.css */
|
|
10
|
+
/* FAQ: If ineffectual, theme.css font size may match core-styles.docs.css */
|
|
11
|
+
p {
|
|
12
|
+
font-size: inherit; /* to overwrite theme.css */
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
/* to prevent figure image overflow */
|
|
17
|
+
figure {
|
|
18
|
+
max-width: 100%; /* mimics theme.css `.rst-content img` */
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/* to add border around figures */
|
|
22
|
+
figure {
|
|
23
|
+
border: var(--global-border--normal);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
/* For edge-case headings */
|
|
28
|
+
:is(h1, h2, h3, h4, h5, h6) > small,
|
|
29
|
+
.understate:is(h1, h2, h3, h4, h5, h6) {
|
|
30
|
+
font-weight: normal;
|
|
31
|
+
margin-block: 0;
|
|
32
|
+
}
|
|
33
|
+
details > summary > :is(h1, h2, h3, h4, h5, h6) {
|
|
34
|
+
display: inline-block;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
/* to prevent wrap of certain tags */
|
|
39
|
+
u, /* "unarticulated" demarkation of phrases that should not wrap */
|
|
40
|
+
code:not([class]):not(pre > *) /* free-form code lines should never wrap */ {
|
|
41
|
+
white-space: nowrap;
|
|
42
|
+
}
|
|
43
|
+
u {
|
|
44
|
+
text-decoration: none; /* to undo browser default */
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
/* COMPONENTS */
|
|
51
|
+
|
|
52
|
+
/* Grid */
|
|
53
|
+
|
|
54
|
+
.grid {
|
|
55
|
+
display: grid;
|
|
56
|
+
gap: var(--global-space--grid-gap);
|
|
57
|
+
grid-template-columns: 1fr 1fr;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
/* Headings */
|
|
62
|
+
|
|
63
|
+
/* to style text like an <h2>, <h3>, etc. */
|
|
64
|
+
/* FAQ: Design wants <h3> on index page, but it should NOT show in nav */
|
|
65
|
+
/* TODO: Either, find a solution that does not involve "fake header" class */
|
|
66
|
+
/* TODO: Or, support fake headers in Core (must then define margins) */
|
|
67
|
+
.h2 {
|
|
68
|
+
/* to mimic browser */
|
|
69
|
+
display: block;
|
|
70
|
+
margin-block-start: 0.83em;
|
|
71
|
+
margin-block-end: 0.83em;
|
|
72
|
+
margin-inline-start: 0px;
|
|
73
|
+
margin-inline-end: 0px;
|
|
74
|
+
|
|
75
|
+
/* to mimic core-styles.docs */
|
|
76
|
+
font-size: var(--global-font-size--xx-large);
|
|
77
|
+
font-weight: var(--bold);
|
|
78
|
+
}
|
|
79
|
+
.h3 {
|
|
80
|
+
/* to mimic browser */
|
|
81
|
+
display: block;
|
|
82
|
+
margin-block-start: 1em;
|
|
83
|
+
margin-block-end: 1em;
|
|
84
|
+
margin-inline-start: 0px;
|
|
85
|
+
margin-inline-end: 0px;
|
|
86
|
+
|
|
87
|
+
/* to mimic core-styles.docs */
|
|
88
|
+
font-size: var(--global-font-size--x-large);
|
|
89
|
+
font-weight: var(--bold);
|
|
90
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/* to enable ReadTheDocs' fake links in nav */
|
|
2
|
+
/* https://github.com/mkdocs/mkdocs/blob/1.4.2/mkdocs/themes/readthedocs/nav.html#L1 */
|
|
3
|
+
/* https://github.com/TACC/Core-Styles/blob/v2.40.2/src/lib/_imports/elements/links.css#L9 */
|
|
4
|
+
a:not([href]).reference.internal {
|
|
5
|
+
/* https://github.com/TACC/Core-Styles/blob/v2.40.2/src/lib/_imports/tools/x-link.css#L16-17 */
|
|
6
|
+
opacity: revert-layer;
|
|
7
|
+
pointer-events: revert-layer;
|
|
8
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/* To reduce padding in sections */
|
|
2
|
+
.section--light,
|
|
3
|
+
.section--muted,
|
|
4
|
+
.section--dark {
|
|
5
|
+
--padding-top: 20px;
|
|
6
|
+
--padding-bottom: 20px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
/* To support .c-card on mobile (which Core-Styles does not do) */
|
|
11
|
+
|
|
12
|
+
/* To add field of color in neg. space beside short image */
|
|
13
|
+
/* FAQ: This field is only possibly shown:
|
|
14
|
+
- at certain screen widths
|
|
15
|
+
- for certain image dimensions */
|
|
16
|
+
@media (576px <= width < 768px), (992px < width) {
|
|
17
|
+
[class*="card--image-"] {
|
|
18
|
+
overflow: hidden; /* hide box-shadow that would bleed outside of card */
|
|
19
|
+
}
|
|
20
|
+
.c-card--image-top > img,
|
|
21
|
+
.c-card--image-bottom > img {
|
|
22
|
+
box-shadow: 25vw 0 white; /* for short image on narrow screen */
|
|
23
|
+
}
|
|
24
|
+
.c-card--image-left > img,
|
|
25
|
+
.c-card--image-right > img {
|
|
26
|
+
box-shadow: 0 10vw black; /* for narrow image on wide screen */
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/* To remove side-by-side layout when image becomes too small */
|
|
31
|
+
@media (768px <= width < 992px), (width < 576px) {
|
|
32
|
+
.c-card--image-left,
|
|
33
|
+
.c-card--image-right {
|
|
34
|
+
padding: unset; /* overwrites .c-card--image-… */
|
|
35
|
+
display: block; /* overwrites .c-card--image-… */
|
|
36
|
+
}
|
|
37
|
+
.c-card--image-left > img,
|
|
38
|
+
.c-card--image-right > img {
|
|
39
|
+
margin-block: unset; /* undo .c-card--image-… */
|
|
40
|
+
}
|
|
41
|
+
.c-card--image-left > p,
|
|
42
|
+
.c-card--image-right > p {
|
|
43
|
+
padding: calc( var(--global-space--pattern-pad) / 2);
|
|
44
|
+
margin: 0; /* overwrites core-styles, bootstrap, ReadTheDocs */
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/* mkdocs.base.yml: theme: highlightjs, hljs_aliases */
|
|
2
|
+
/* https://www.mkdocs.org/user-guide/choosing-your-theme/#readthedocs */
|
|
3
|
+
|
|
4
|
+
/* To change style for each type of code block (HighlightJS or TACC) */
|
|
5
|
+
pre.cmd-line code,
|
|
6
|
+
code.language-cmd-line {
|
|
7
|
+
background: var(--global-color-primary--x-light);
|
|
8
|
+
}
|
|
9
|
+
pre.job-script code,
|
|
10
|
+
code.language-job-script {
|
|
11
|
+
background: var(--global-color-accent--xxx-light);
|
|
12
|
+
}
|
|
13
|
+
pre.syntax code,
|
|
14
|
+
code.language-syntax {
|
|
15
|
+
background: var(--global-color-tertiary--xx-light);
|
|
16
|
+
}
|
|
17
|
+
@supports selector(:has(*)) {
|
|
18
|
+
/* To support code blocks that are not using <code> (yet) */
|
|
19
|
+
pre.cmd-line:not(:has(code)) {
|
|
20
|
+
background: var(--global-color-primary--x-light);
|
|
21
|
+
}
|
|
22
|
+
pre.job-script:not(:has(code)) {
|
|
23
|
+
background: var(--global-color-accent--xxx-light);
|
|
24
|
+
}
|
|
25
|
+
pre.syntax:not(:has(code)) {
|
|
26
|
+
background: var(--global-color-tertiary--xx-light);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/* To disuade users from blind copy/paste-use of syntax */
|
|
31
|
+
pre.syntax code,
|
|
32
|
+
code.language-syntax {
|
|
33
|
+
-webkit-user-select: none;
|
|
34
|
+
user-select: none;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/* To replicate missing styles on TACC code blocks */
|
|
38
|
+
pre.cmd-line code,
|
|
39
|
+
pre.job-script code {
|
|
40
|
+
/* To replicate HighlightJS code blocks */
|
|
41
|
+
overflow-x: auto;
|
|
42
|
+
}
|
|
43
|
+
@supports selector(:has(*)) {
|
|
44
|
+
/* To support code blocks that are not using <code> (yet) */
|
|
45
|
+
pre.cmd-line:not(:has(code)),
|
|
46
|
+
pre.job-script:not(:has(code)) {
|
|
47
|
+
/* To replicate HighlightJS code blocks */
|
|
48
|
+
overflow-x: auto;
|
|
49
|
+
|
|
50
|
+
/* To replicate Core Styles code blocks */
|
|
51
|
+
display: inline-block;
|
|
52
|
+
padding: var(--global-space--x-small) var(--global-space--small);
|
|
53
|
+
border: var(--global-border-width--normal) solid var(--global-color-primary--light);
|
|
54
|
+
color: var(--global-color-primary--xx-dark);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/* To remove space above and below code block in a figure */
|
|
59
|
+
figure pre.highlight {
|
|
60
|
+
margin-block: unset; /* undo browser */
|
|
61
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/* ADMONITION */
|
|
2
|
+
/* https://facelessuser.github.io/pymdown-extensions/extensions/blocks/plugins/admonition/ */
|
|
3
|
+
|
|
4
|
+
/* to add space between plugin blocks */
|
|
5
|
+
.admonition,
|
|
6
|
+
.tabbed-set {
|
|
7
|
+
margin-block: 1em;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/* to add space between messages & content */
|
|
11
|
+
/* to remove empty paragraphs */
|
|
12
|
+
/* SEE: /docs/code-examples.md */
|
|
13
|
+
/* HELP: What markdown would avoid these? */
|
|
14
|
+
.admonition p:empty {
|
|
15
|
+
display: none;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/* to add admonition icons */
|
|
19
|
+
.admonition::before {
|
|
20
|
+
/* copied from .fa (only the active rules not overwritten by TACC) */
|
|
21
|
+
font-family: FontAwesome;
|
|
22
|
+
font-style: normal;
|
|
23
|
+
font-weight: 400;
|
|
24
|
+
line-height: 1;
|
|
25
|
+
text-decoration: inherit;
|
|
26
|
+
text-rendering: auto;
|
|
27
|
+
-webkit-font-smoothing: antialiased;
|
|
28
|
+
}
|
|
29
|
+
.admonition:is(.caution)::before { content: "\f071"; }
|
|
30
|
+
.admonition:is(.important, .attention)::before { content: "\f12a"; }
|
|
31
|
+
.admonition:is(.warning)::before { content: "\f00d"; }
|
|
32
|
+
.admonition:is(.tip)::before { content: "\f0eb"; }
|
|
33
|
+
.admonition:is(.note)::before { content: "\f040"; }
|
|
34
|
+
.admonition:is(.hint)::before { content: "\f00c"; }
|
|
35
|
+
.admonition:is(.error, .danger)::before { content: "\f00d"; }
|
|
36
|
+
.admonition:is(.warning)::before {
|
|
37
|
+
color: transparent;
|
|
38
|
+
-webkit-text-stroke: var(--global-color-primary--xx-light) 2px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
/* to remove admonition title icon */
|
|
43
|
+
.admonition-title::before { display: none; }
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
/* to give admonition block content a backgroud */
|
|
47
|
+
.admonition div.tabbed-set,
|
|
48
|
+
.admonition.note pre > code,
|
|
49
|
+
.admonition table {
|
|
50
|
+
background-color: var(--global-color-background--app);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
/* BLOCKS: TAB */
|
|
57
|
+
/* https://facelessuser.github.io/pymdown-extensions/extensions/blocks/plugins/tab/ */
|
|
58
|
+
/* TABBED */
|
|
59
|
+
/* https://facelessuser.github.io/pymdown-extensions/extensions/tabbed/ */
|
|
60
|
+
/* https://github.com/TACC/Core-Styles/blob/main/src/lib/_imports/components/pymdownx--tabbed.css */
|
|
61
|
+
|
|
62
|
+
/* to add Docs-specific styles */
|
|
63
|
+
.tabbed-set {
|
|
64
|
+
border: var(--global-border-width--thick) solid var(--global-color-primary--dark);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/* to stretch tabs that just have a code block */
|
|
68
|
+
.tabbed-content > pre:only-child {
|
|
69
|
+
margin-inline: calc( -1 * var(--buffer) );
|
|
70
|
+
margin-block: unset; /* overwrite core-style.docs */
|
|
71
|
+
}
|
|
72
|
+
.tabbed-content > pre:only-child > code {
|
|
73
|
+
border: unset; /* overwrite core-style.docs */
|
|
74
|
+
padding: var(--buffer); /* overwrite core-style.docs */
|
|
75
|
+
|
|
76
|
+
width: 100%; /* overwrite core-style.docs */
|
|
77
|
+
box-sizing: border-box; /* so `width: 100%` does not overflow */
|
|
78
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/* TOC */
|
|
2
|
+
/* https://python-markdown.github.io/extensions/toc/#usage */
|
|
3
|
+
/* RFE: Support via Core-Styles class */
|
|
4
|
+
|
|
5
|
+
.headerlink {
|
|
6
|
+
font-size: var(--global-font-size--x-large);
|
|
7
|
+
text-decoration: none;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@supports selector(:has(*)) {
|
|
11
|
+
|
|
12
|
+
/* to reposition permalink */
|
|
13
|
+
/* NOTE: Unnecessary if MkDocs config sets `permalink_leading: true` */
|
|
14
|
+
/* https://github.com/mkdocs/mkdocs/blob/1.5.0/pyproject.toml#L39 */
|
|
15
|
+
:has(> .headerlink) {
|
|
16
|
+
position: relative;
|
|
17
|
+
}
|
|
18
|
+
.headerlink {
|
|
19
|
+
position: absolute;
|
|
20
|
+
|
|
21
|
+
/* to add space between it and heading */
|
|
22
|
+
--x-space: 0.5em;
|
|
23
|
+
padding-right: var(--x-space);
|
|
24
|
+
|
|
25
|
+
/* to move to the left of the heading */
|
|
26
|
+
left: 0;
|
|
27
|
+
--x-offset: calc( 1ch + var(--x-space) );
|
|
28
|
+
|
|
29
|
+
/* to vertically center */
|
|
30
|
+
top: 50%;
|
|
31
|
+
--y-offset: 50%;
|
|
32
|
+
|
|
33
|
+
transform: translate(
|
|
34
|
+
calc( -1 * var(--x-offset)),
|
|
35
|
+
calc( -1 * var(--y-offset))
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/* to use link color only on hover, otherwise use pale text color */
|
|
40
|
+
.headerlink:not(:hover) {
|
|
41
|
+
color: inherit;
|
|
42
|
+
opacity: 0.5;
|
|
43
|
+
}
|
|
44
|
+
/* to hide except on hover over it or heading */
|
|
45
|
+
.headerlink:not(:hover, :hover > *) {
|
|
46
|
+
opacity: 0;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
}
|
|
50
|
+
@supports not selector(:has(*)) {
|
|
51
|
+
|
|
52
|
+
.headerlink {
|
|
53
|
+
margin-left: 0.5ch;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
}
|