Skip to content

Commit 419a9ea

Browse files
authored
Merge pull request #349 from jchanvfx/sphinx_theme_update
sphinx doc theme update
2 parents e75465d + 86c1b8b commit 419a9ea

File tree

79 files changed

+2109
-8219
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+2109
-8219
lines changed

.github/workflows/sphinx_doc_build.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@ name: Build API Documentation
33

44
on:
55
# trigger this workflow when a release is published.
6-
release:
7-
types:
8-
- published
6+
push:
7+
branches:
8+
- main
9+
# tags:
10+
# - v*.*.*
911

1012
env:
1113
# environment variables.
@@ -32,10 +34,10 @@ jobs:
3234
# Install the python dependencies required for building.
3335
- name: Install Dependencies
3436
run: |
35-
pip install -U sphinx
36-
pip install sphinx-rtd-theme
37+
pip install sphinx
3738
pip install PySide2
3839
pip install Qt.py
40+
pip install autodocsumm
3941
# Set the local git configs.
4042
- name: Set Git Config
4143
run: |
@@ -45,7 +47,7 @@ jobs:
4547
- name: Update "gh-pages" branch
4648
run: |
4749
git checkout $GH_PAGES_BRANCH
48-
git merge $SOURCE_BRANCH
50+
git merge origin/$SOURCE_BRANCH
4951
git push origin $GH_PAGES_BRANCH
5052
# Build the sphinx api documentation.
5153
- name: Run Sphinx Build

docs/_static/custom.css

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
:root{
2+
--background:0 0% 100%;
3+
--foreground:180 50% 20%;
4+
--muted:210 40% 96.1%;
5+
--muted-foreground:215.4 16.3% 46.9%;
6+
--popover:0 0% 100%;
7+
--popover-foreground:222.2 47.4% 11.2%;
8+
--border:214.3 31.8% 91.4%;
9+
--input:214.3 31.8% 91.4%;
10+
--card:0 0% 100%;
11+
--card-foreground:222.2 47.4% 11.2%;
12+
--primary:222.2 47.4% 11.2%;
13+
--primary-foreground:210 40% 98%;
14+
--secondary:210 40% 96.1%;
15+
--secondary-foreground:222.2 47.4% 11.2%;
16+
--accent:210 40% 96.1%;
17+
--accent-foreground:179 63% 46%;
18+
--destructive:0 100% 50%;
19+
--destructive-foreground:210 40% 98%;
20+
--ring:215 20.2% 65.1%;
21+
--radius:0.5rem;
22+
23+
--caption-color: #d779a9;
24+
--a-link: #0081d7;
25+
}
26+
.dark {
27+
--background: 250 20% 2%;
28+
--foreground: 210 50% 80%;
29+
--muted: 223 47% 11%;
30+
--muted-foreground: 39 45% 64%;
31+
--accent: 216 34% 17%;
32+
--accent-foreground: 167 96% 38%;
33+
--popover: 224 71% 4%;
34+
--popover-foreground: 215 20.2% 65.1%;
35+
--border: 216 34% 17%;
36+
--input: 216 34% 17%;
37+
--card: 224 71% 4%;
38+
--card-foreground: 213 31% 91%;
39+
--primary: 210 40% 98%;
40+
--primary-foreground: 222.2 47.4% 1.2%;
41+
--secondary: 222.2 47.4% 11.2%;
42+
--secondary-foreground: 210 40% 98%;
43+
--destructive: 0 63% 31%;
44+
--destructive-foreground: 210 40% 98%;
45+
--ring: 216 34% 17%;
46+
--radius: 0.5rem;
47+
48+
--caption-color: #7d2853;
49+
--a-link: #48cdf8;
50+
}
51+
52+
53+
.caption {
54+
color: var(--caption-color);
55+
}
56+
#content a:not(.toc-backref) {
57+
color: var(--a-link);
58+
font-weight: 500;
59+
text-decoration-line: none;
60+
text-decoration-thickness: from-font;
61+
text-underline-offset: 4px;
62+
}

docs/_static/pygments.css

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,26 @@
11
.linenos,
22
td.lineos {
3-
background: #2e3133;
43
margin: 0px 10px;
54
padding: 1px 8px;
5+
color: #818181;
66
}
77
.linenos pre {
88
background-color: transparent;
99
color: #aaa;
1010
-webkit-box-shadow: none;
1111
-moz-box-shadow: none;
1212
}
13-
.hll { background-color: #233150 }
13+
.hll {
14+
background-color: #233150:
15+
display: block;
16+
}
1417
.code { background: #232629; !important }
15-
.highlight pre { background: #1a1c1f; !important }
1618
.highlight pre {
17-
color: #f8f8f2;
19+
background: #0b0d0f !important;
20+
border-radius: 10px !important;
21+
}
22+
.highlight pre {
23+
color: #2fb37a;
1824
border: 0px;
1925
border-radius: 0px;
2026
-webkit-box-shadow: none;

docs/_themes/sphinx_rtd_theme/__init__.py

Lines changed: 0 additions & 52 deletions
This file was deleted.

docs/_themes/sphinx_rtd_theme/breadcrumbs.html

Lines changed: 0 additions & 84 deletions
This file was deleted.

docs/_themes/sphinx_rtd_theme/footer.html

Lines changed: 0 additions & 61 deletions
This file was deleted.

0 commit comments

Comments
 (0)