Skip to content

Commit 12fb68d

Browse files
committed
docs: Include CSS snippet at build time
1 parent dbffcbc commit 12fb68d

File tree

1 file changed

+1
-27
lines changed

1 file changed

+1
-27
lines changed

docs/usage/customization.md

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -57,33 +57,7 @@ Here are some CSS rules for the
5757
[*Material for MkDocs*](https://squidfunk.github.io/mkdocs-material/) theme:
5858

5959
```css
60-
/* Indentation. */
61-
div.doc-contents:not(.first) {
62-
padding-left: 25px;
63-
border-left: .05rem solid var(--md-typeset-table-color);
64-
}
65-
66-
/* Mark external links as such. */
67-
a.autorefs-external::after {
68-
/* https://primer.style/octicons/arrow-up-right-24 */
69-
background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="rgb(0, 0, 0)" d="M18.25 15.5a.75.75 0 00.75-.75v-9a.75.75 0 00-.75-.75h-9a.75.75 0 000 1.5h7.19L6.22 16.72a.75.75 0 101.06 1.06L17.5 7.56v7.19c0 .414.336.75.75.75z"></path></svg>');
70-
content: ' ';
71-
72-
display: inline-block;
73-
vertical-align: middle;
74-
position: relative;
75-
bottom: 0.1em;
76-
margin-left: 0.2em;
77-
margin-right: 0.1em;
78-
79-
height: 0.7em;
80-
width: 0.7em;
81-
border-radius: 100%;
82-
background-color: var(--md-typeset-a-color);
83-
}
84-
a.autorefs-external:hover::after {
85-
background-color: var(--md-accent-fg-color);
86-
}
60+
--8<-- "docs/css/mkdocstrings.css"
8761
```
8862

8963
### Recommended style (ReadTheDocs)

0 commit comments

Comments
 (0)