Skip to content

Commit f359b8a

Browse files
authored
Merge pull request #2853 from abravalheri/add-logo
Add logo
2 parents 33f4d7e + 57b3810 commit f359b8a

27 files changed

+2040
-3
lines changed

changelog.d/2227.doc.1.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Added new setuptools logo, including editable files and artwork documentation
2+
-- by :user:`abravalheri`

changelog.d/2227.doc.2.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Added sphinx theme customisations to display the new logo in the sidebar and
2+
use its colours as "accent" in the documentation -- by :user:`abravalheri`

docs/conf.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,19 @@
101101

102102
# HTML theme
103103
html_theme = 'furo'
104+
html_logo = "images/logo.png"
105+
106+
html_theme_options = {
107+
"sidebar_hide_name": True,
108+
"light_css_variables": {
109+
"color-brand-primary": "#336790", # "blue"
110+
"color-brand-content": "#336790",
111+
},
112+
"dark_css_variables": {
113+
"color-brand-primary": "#E5B62F", # "yellow"
114+
"color-brand-content": "#E5B62F",
115+
},
116+
}
104117

105118
# Add support for inline tabs
106119
extensions += ['sphinx_inline_tabs']

docs/images/README.rst

Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
=======
2+
Artwork
3+
=======
4+
5+
.. figure:: logo-over-white.svg
6+
:align: center
7+
8+
Setuptools logo, designed in 2021 by `Anderson Bravalheri`_
9+
10+
Elements of Design
11+
==================
12+
13+
The main colours of the design are a dark pastel azure (``#336790``) and a pale
14+
orange (``#E5B62F``), referred in this document simply as "blue" and "yellow"
15+
respectively. The text uses the *Monoid* typeface, an open source webfont that
16+
was developed by Andreas Larsen and contributors in 2015 and is distributed
17+
under the MIT or SIL licenses (more information at
18+
https://github.com/larsenwork/monoid)
19+
20+
21+
Usage
22+
=====
23+
24+
The preferred way of using the setuptools logo is over a white (or light)
25+
background. Alternatively, the following options can be considered, depending
26+
on the circumstances:
27+
28+
- *"negative"* design - for dark backgrounds (e.g. website displayed in "dark
29+
mode"): the white colour (``#FFFFFF``) of the background and the "blue"
30+
(``#336790``) colour of the design can be swapped.
31+
- *"monochrome"* - when colours are not available (e.g. black and white printed
32+
media): a completely black or white version of the logo can also be used.
33+
- *"banner"* mode: the symbol and text can be used alongside depending on the
34+
available space.
35+
36+
The following image illustrate these alternatives:
37+
38+
.. image:: logo-demo-editable-inkscape.png
39+
:align: center
40+
41+
Please refer to the SVG files in the `setuptools repository`_ for the specific
42+
shapes and proportions between the elements of the design.
43+
44+
45+
Working with the Design
46+
=======================
47+
48+
The `setuptools repository`_ contains a series of vector representations of the
49+
design under the ``docs/images`` directory. These representations can be
50+
manipulated via any graphic editor that support SVG files,
51+
however the free and open-source software Inkscape_ is recommended for maximum
52+
compatibility.
53+
54+
When selecting the right file to work with, file names including
55+
``editable-inkscape`` indicate "more editable" elements (e.g. editable text),
56+
while the others prioritise SVG paths for maximum reproducibility.
57+
58+
Also notice that you might have to `install the correct fonts`_ to be able to
59+
visualise or edit some of the designs.
60+
61+
62+
Inspiration
63+
===========
64+
65+
This design was inspired by :user:`cajhne`'s `original proposal`_ and the
66+
ancient symbol of the ouroboros_.
67+
It features a snake moving in a circular trajectory not only as a reference to
68+
the Python programming language but also to the `wheel package format`_ as one
69+
of the distribution formats supported by setuptools.
70+
The shape of the snake also resembles a cog, which together with the hammer is
71+
a nod to the two words that compose the name of the project.
72+
73+
74+
License
75+
=======
76+
77+
78+
This logo, design variations or a modified version may be used by anyone to
79+
refer to setuptools, but does not indicate endorsement by the project.
80+
81+
Redistribution, usage and derivative works are permitted under the same license
82+
used by the setuptools software (MIT):
83+
84+
.. code-block:: text
85+
86+
Copyright (c) Anderson Bravalheri
87+
88+
Permission is hereby granted, free of charge, to any person obtaining a copy
89+
of this software and associated documentation files (the "Software"), to
90+
deal in the Software without restriction, including without limitation the
91+
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
92+
sell copies of the Software, and to permit persons to whom the Software is
93+
furnished to do so, subject to the following conditions:
94+
95+
The above copyright notice and this permission notice shall be included in
96+
all copies or substantial portions of the Software.
97+
98+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
99+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
100+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
101+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
102+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
103+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
104+
IN THE SOFTWARE.
105+
106+
THE USAGE OF THIS LOGO AND ARTWORK DOES NOT INDICATE ENDORSEMENT BY THE
107+
SETUPTOOLS PROJECT.
108+
109+
Whenever possible, please make the image a link to
110+
https://github.com/pypa/setuptools.
111+
112+
113+
.. _Anderson Bravalheri: https://github.com/abravalheri
114+
.. _Inkscape: https://inkscape.org
115+
.. _setuptools repository: https://github.com/pypa/setuptools
116+
.. _install the correct fonts: https://wiki.inkscape.org/wiki/Installing_fonts
117+
.. _original proposal: https://github.com/pypa/setuptools/issues/2227#issuecomment-653628344
118+
.. _wheel package format: https://www.python.org/dev/peps/pep-0427/
119+
.. _ouroboros: https://en.wikipedia.org/wiki/Ouroboros

docs/images/banner-640x320.png

15.4 KB
Loading

0 commit comments

Comments
 (0)