Xqt has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/802911 )
Change subject: [sphinx] Use Wikimedia color for header/footer lines
......................................................................
[sphinx] Use Wikimedia color for header/footer lines
Also move icons to _static folder
Change-Id: I6f15defef1a080a2c448827defcde92dca899ef5
---
R docs/_static/Pywikibot.ico
R docs/_static/Pywikibot_MW_gear_icon.svg
A docs/_static/css/pywikibot.css
M docs/conf.py
4 files changed, 36 insertions(+), 2 deletions(-)
Approvals:
jenkins-bot: Verified
Xqt: Looks good to me, approved
diff --git a/docs/Pywikibot.ico b/docs/_static/Pywikibot.ico
similarity index 100%
rename from docs/Pywikibot.ico
rename to docs/_static/Pywikibot.ico
Binary files differ
diff --git a/docs/Pywikibot_MW_gear_icon.svg
b/docs/_static/Pywikibot_MW_gear_icon.svg
similarity index 100%
rename from docs/Pywikibot_MW_gear_icon.svg
rename to docs/_static/Pywikibot_MW_gear_icon.svg
diff --git a/docs/_static/css/pywikibot.css b/docs/_static/css/pywikibot.css
new file mode 100644
index 0000000..cce4d5b
--- /dev/null
+++ b/docs/_static/css/pywikibot.css
@@ -0,0 +1,30 @@
+/** css/pywikibot.css **/
+
+/* This line is theme specific - it includes the base theme CSS */
+@import '../nature.css'; /* for Nature */
+
+
+div.related {
+ background-color: #396;
+ line-height: 32px;
+ color: #fff;
+ text-shadow: 0px 1px 0 #444;
+ font-size: 0.9em;
+}
+
+a:hover {
+ color: #900;
+ text-decoration: underline;
+}
+
+a.headerlink {
+ color: #069;
+ font-size: 0.8em;
+ padding: 0 4px 0 4px;
+ text-decoration: none;
+}
+
+a.headerlink:hover {
+ background-color: #069;
+ color: white;
+}
diff --git a/docs/conf.py b/docs/conf.py
index f36bc62..441a7dd 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -173,13 +173,13 @@
# The name of an image file (relative to this directory) to place at the top
# of the sidebar.
#
-html_logo = 'Pywikibot_MW_gear_icon.svg'
+html_logo = '_static/Pywikibot_MW_gear_icon.svg'
# The name of an image file (relative to this directory) to use as a favicon of
# the docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
# pixels large.
#
-html_favicon = 'Pywikibot.ico'
+html_favicon = '_static/Pywikibot.ico'
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
@@ -356,6 +356,10 @@
# Other settings
autodoc_typehints = 'description'
+# Pywikibot theme style
+html_static_path = ['_static']
+html_style = 'css/pywikibot.css'
+
extlinks = {
# MediaWiki API
'api': ('https://www.mediawiki.org/wiki/API:%s', 'API:%s'),
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/802911
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I6f15defef1a080a2c448827defcde92dca899ef5
Gerrit-Change-Number: 802911
Gerrit-PatchSet: 3
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]