Skip to content

Commit c701d76

Browse files
committed
docs: change sphinx theme to Clarity
1 parent 5bb28ea commit c701d76

File tree

11 files changed

+49
-294
lines changed

11 files changed

+49
-294
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,7 @@ _deployed.old
44
_syncthing
55
/RELEASE
66
/TAG
7+
.venv/
8+
venv/
9+
__pycache__/
10+
_site/

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ beneficial.
1919
First steps to run it locally::
2020

2121
git clone https://github.com/syncthing/docs.git
22-
pip install -U Sphinx
2322
cd docs
23+
pip install -r requirements.txt
2424
make html
2525
# open _build/html/index.html
2626

_script/lsver.go

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,18 @@ func lsver(dir string) error {
3232
}
3333
}
3434
sort.Slice(names, func(a, b int) bool {
35-
return compareVersions(names[a], names[b]) < 0
35+
return compareVersions(names[a], names[b]) > 0
3636
})
3737

38+
type entry struct {
39+
Version string `json:"version"`
40+
}
41+
result := make([]entry, len(names))
42+
for i, name := range names {
43+
result[i] = entry{Version: name}
44+
}
3845
enc := json.NewEncoder(os.Stdout)
39-
return enc.Encode(map[string][]string{"entries": names})
46+
return enc.Encode(result)
4047
}
4148

4249
func compareVersions(a, b string) int {

_static/custom.css

Lines changed: 5 additions & 94 deletions
Original file line numberDiff line numberDiff line change
@@ -1,94 +1,5 @@
1-
@media screen and (max-width: 875px) {
2-
div.body {
3-
/* prevent horizontal overflowing on mobile */
4-
min-width: inherit;
5-
}
6-
}
7-
8-
p.logo {
9-
text-align: left;
10-
}
11-
img.logo {
12-
height: 66px;
13-
margin-bottom: 20px;
14-
}
15-
16-
img.border {
17-
border: 1px solid #888;
18-
border-radius: 5px;
19-
}
20-
21-
div#searchbox,
22-
div.sphinxsidebar h3.donation {
23-
margin-top: 20px;
24-
}
25-
26-
div.body {
27-
/* margin here is same as height + margin of logo */
28-
margin-top: 86px;
29-
}
30-
31-
div.footer-body {
32-
/* hack for the "edit on github" container below the body */
33-
margin-top: 30px;
34-
margin-bottom: 20px;
35-
text-align: center;
36-
}
37-
38-
li.toctree-l1 {
39-
margin-top: 1em;
40-
}
41-
42-
/* Add a strike-through class. */
43-
.strike {
44-
text-decoration: line-through;
45-
}
46-
47-
div.note {
48-
background-color: #ffc;
49-
}
50-
div.admonition {
51-
/* reduce default padding a bit because it's asymmetrical and ugly */
52-
padding: 5px;
53-
}
54-
div.admonition p.admonition-title {
55-
font-size: inherit;
56-
font-weight: bold;
57-
}
58-
p.admonition-title:after {
59-
content: none;
60-
}
61-
62-
/* Override Alabaster theme defaults to add space between list items. */
63-
li > p:last-child {
64-
margin-bottom: 1em;
65-
}
66-
li:last-child > p:last-child {
67-
margin-bottom: 0;
68-
}
69-
70-
/* Overrides for built in contents directive */
71-
div.contents {
72-
margin: inherit;
73-
padding: inherit;
74-
background-color: inherit;
75-
border: inherit;
76-
}
77-
div.contents li > p:last-child {
78-
margin-bottom: inherit;
79-
}
80-
81-
pre {
82-
padding: 8px;
83-
}
84-
85-
/* Make terms bold in definition lists for better visibility, e.g. in
86-
users/config. */
87-
dt {
88-
font-weight: bold;
89-
}
90-
91-
/* Extra padding after configuration options in e.g. in users/config. */
92-
dl.option {
93-
margin-bottom: 1em;
94-
}
1+
/* Display text and icon nicely vertically aligned */
2+
.edit-page-source {
3+
display: flex;
4+
align-items: center;
5+
}

_static/jquery-3.7.1.min.js

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

_static/version_redirect.js

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

_templates/layout.html

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

_templates/version.html

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

0 commit comments

Comments
 (0)