Skip to content

Commit a35d0f2

Browse files
authored
svg logo (#500)
2 parents 5abca29 + 9e2dac4 commit a35d0f2

File tree

6 files changed

+76
-0
lines changed

6 files changed

+76
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
<div align="center"><img src="https://raw.githubusercontent.com/pallets/markupsafe/refs/heads/stable/docs/_static/markupsafe-horizontal.svg" alt="" height="150"></div>
2+
13
# MarkupSafe
24

35
MarkupSafe implements a text object that escapes characters so it is
Lines changed: 27 additions & 0 deletions
Loading

docs/_static/markupsafe-icon.svg

Lines changed: 12 additions & 0 deletions
Loading

docs/_static/markupsafe-vertical.svg

Lines changed: 27 additions & 0 deletions
Loading

docs/conf.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,8 @@
4747
"**": ["localtoc.html", "relations.html", "searchbox.html", "ethicalads.html"],
4848
}
4949
singlehtml_sidebars = {"index": ["project.html", "localtoc.html", "ethicalads.html"]}
50+
html_static_path = ["_static"]
51+
html_favicon = "_static/markupsafe-icon.svg"
52+
html_logo = "_static/markupsafe-vertical.svg"
5053
html_title = f"MarkupSafe Documentation ({version})"
5154
html_show_sourcelink = False

docs/index.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
.. currentmodule:: markupsafe
2+
.. rst-class:: hide-header
23

34
MarkupSafe
45
==========
56

7+
.. image:: _static/markupsafe-horizontal.svg
8+
:align: center
9+
:height: 200px
10+
611
MarkupSafe escapes characters so text is safe to use in HTML and XML.
712
Characters that have special meanings are replaced so that they display
813
as the actual characters. This mitigates injection attacks, meaning

0 commit comments

Comments
 (0)