Skip to content

Commit 16545d7

Browse files
authored
docs: add extra css for prompt (#85)
Fixes #50
1 parent 7218b47 commit 16545d7

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

docs/mkdocs.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ markdown_extensions:
6666
- pymdownx.highlight:
6767
anchor_linenums: true
6868
line_spans: __span
69+
use_pygments: true
6970
pygments_lang_class: true
7071
- pymdownx.inlinehilite
7172
- pymdownx.snippets
@@ -75,3 +76,6 @@ extra:
7576
version:
7677
provider: mike
7778
alias: true
79+
80+
extra_css:
81+
- css/extra.css

docs/src/css/extra.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/* Ref: https://mkdocstrings.github.io/recipes/#prevent-selection-of-prompts-and-output-in-python-code-blocks */
2+
3+
.language-pycon .gp, .language-pycon .go { /* Generic.Prompt, Generic.Output */
4+
user-select: none;
5+
}

0 commit comments

Comments
 (0)