Skip to content

Commit 43026db

Browse files
committed
🎨 Colorize the "important" admonition blocks
1 parent 89fbc18 commit 43026db

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

‎MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ exclude noxfile.py
2222

2323
recursive-include src/pip/_vendor *.pem
2424
recursive-include src/pip/_vendor py.typed
25-
recursive-include docs Makefile *.rst *.py *.bat
25+
recursive-include docs *.css *.rst *.py
2626

2727
exclude src/pip/_vendor/six
2828
exclude src/pip/_vendor/six/moves

‎docs/docs_feedback_sphinxext.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ def setup(app: Sphinx) -> Dict[str, Union[bool, str]]:
8787
This function adds a callback for modifying the document sources
8888
in-place on read.
8989
"""
90+
app.add_css_file('important-admonition.css')
9091
app.connect('source-read', _modify_rst_document_source_on_read)
9192

9293
return {
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.admonition.important {
2+
background-color: rgb(219, 250, 244);
3+
}
4+
5+
.admonition.important>.admonition-title {
6+
border: 1px solid rgb(26, 188, 156);
7+
color: rgb(26, 188, 156);
8+
}

‎docs/html/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@
174174
# Add any paths that contain custom static files (such as style sheets) here,
175175
# relative to this directory. They are copied after the builtin static files,
176176
# so a file named "default.css" will overwrite the builtin "default.css".
177-
html_static_path = []
177+
html_static_path = ['_static']
178178

179179
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
180180
# using the given strftime format.

0 commit comments

Comments
 (0)