Skip to content

Commit b42126c

Browse files
committed
version bump to 2.2.0, fixed mobile elements
- changelog prepared for release - updated preview image - implemented github action for usercss attach to new releases - enhanced `README` a little bit
1 parent 642459b commit b42126c

File tree

5 files changed

+54
-10
lines changed

5 files changed

+54
-10
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: release actions
2+
3+
on:
4+
release:
5+
types:
6+
- published
7+
8+
jobs:
9+
attach_usercss:
10+
name: attach user-css file
11+
runs-on: "ubuntu-18.04"
12+
env:
13+
usercss_path: "./python_docs_dark.user.css"
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
18+
- name: upload file
19+
uses: AButler/upload-release-assets@v2.0
20+
with:
21+
files: "${{ env.usercss_path }}"
22+
repo-token: ${{ secrets.GITHUB_TOKEN }}

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
# Python Docs - Dark Theme: Changelog
22

33

4-
## **2.2.0** - 2020.x.x
4+
## **2.2.0** - 2022.02.27
55
### Added
6-
- Support for new versions of python docs
6+
- Support for new elements of python documentation pages
7+
- Support for mobile version elemets
78

89

910
## **2.1.1** - 2020.11.16

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
<h1 align="center">
2-
Python Docs<br>
3-
Dark Theme
2+
Python Documentation<br>
3+
Dark 🌒 Theme
44
</h1>
5-
<details align="center"><summary>Preview Image</summary>
5+
<details align="center"><summary align="left">🎨 Preview Image</summary>
66
<img src="./images/preview.png">
77
</details>
88

9-
## About
9+
## About
1010
This repository contains the userstyle dark theme for python documentation and other web pages that inherit the stylesheet from official docs.
1111

12-
## Installation
13-
1. Ensure that **Stylus** extension ([Chrome](https://chrome.google.com/webstore/detail/stylus/clngdbkpkpeebahjckkjfobafhncgmne), [Firefox](https://addons.mozilla.org/ru/firefox/addon/styl-us/)) is installed in your browser
14-
2. 📦 [Install the usercss](https://github.com/maximilionus/python_docs_dark/raw/master/python_docs_dark.user.css)
12+
## 📦 Installation
13+
1. 🧩 Ensure that **Stylus** extension ([Chrome](https://chrome.google.com/webstore/detail/stylus/clngdbkpkpeebahjckkjfobafhncgmne), [Firefox](https://addons.mozilla.org/ru/firefox/addon/styl-us/)) is installed in your browser
14+
2. ⬇️ [Install The Usercss](https://github.com/maximilionus/python_docs_dark/raw/master/python_docs_dark.user.css)
1515

16-
## Supported Domains
16+
## ☄️ Supported Domains
1717
Here's list of domains that are currenlty supported by this userstyle.
1818

1919
- docs.python.org

images/preview.png

-138 KB
Loading

python_docs_dark.user.css

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,23 @@
3131
border-radius: 4px;
3232
}
3333

34+
.mobile-nav {
35+
background-color: var(--background-light);
36+
color: var(--text-normal)
37+
}
38+
39+
.menu-wrapper {
40+
background-color: var(--background-dark);
41+
}
42+
43+
.menu a {
44+
color: var(--text-normal);
45+
}
46+
47+
.toggler__label {
48+
border-color: var(--background-dark);
49+
}
50+
3451
div#sidebarbutton {
3552
color: #6d6d6d !important;
3653
background-color: var(--background-light) !important;
@@ -283,4 +300,8 @@
283300
.highlight .na {
284301
color: #508fce;
285302
}
303+
304+
.warning code {
305+
background-color: var(--background-dark);
306+
}
286307
}

0 commit comments

Comments
 (0)