Skip to content

Commit 0606251

Browse files
committed
[docs] Use the same theme as our internal docs.
In particular, this uses normal HTML bullets instead of images so that rich text copy/paste works correctly. Swift SVN r23376
1 parent 6121e42 commit 0606251

File tree

2 files changed

+10
-76
lines changed

2 files changed

+10
-76
lines changed

Diff for: docs/_static/swift.css

+8-76
Original file line numberDiff line numberDiff line change
@@ -1,77 +1,9 @@
1-
/* Common styles */
2-
.body { color: black; background: white; margin: 0 0 0 0 }
3-
4-
/* No borders on image links */
5-
a:link img, a:visited img { border-style: none }
6-
7-
address img { float: right; width: 88px; height: 31px; }
8-
address { clear: right; }
9-
10-
11-
table { border: 2px solid black;
12-
border-collapse: collapse; margin-top: 1em; margin-left: 1em;
13-
margin-right: 1em; margin-bottom: 1em; }
14-
tr, td { border: 2px solid gray; padding: 4pt 4pt 2pt 2pt; }
15-
th { border: 2px solid gray; font-weight: bold; font-size: 105%;
16-
background: url("http://llvm.org/img/lines.gif");
17-
font-family: "Georgia,Palatino,Times,Roman,SanSerif";
18-
text-align: center; vertical-align: middle; }
19-
20-
21-
/* Common for title and header */
22-
h1, h2 {
23-
color: black; background: url("http://llvm.org/img/lines.gif");
24-
font-family: "Georgia,Palatino,Times,Roman,SanSerif"; font-weight: bold;
25-
border-width: 1px;
26-
border-style: solid none solid none;
27-
text-align: center;
28-
vertical-align: middle;
29-
/* padding-left: 0pt;*/
30-
padding-top: 1px;
31-
padding-bottom: 2px
32-
}
33-
34-
35-
h1 {
36-
text-align: center; font-size: 22pt;
37-
margin: 20pt 0pt 0pt 0pt;
38-
}
39-
40-
.doc_title, .title { text-align: left; font-size: 25pt }
41-
42-
h2, .doc_subsection { width: 100%;
43-
text-align: left; font-size: 12pt;
44-
padding: 4pt 4pt 4pt 4pt;
45-
margin: 1.5em 5em 0.5em 0em
46-
}
47-
48-
h3 {
49-
margin: 2.0em 0.5em 0.5em 0em;
50-
font-weight: bold; font-style: oblique;
51-
border-bottom: 1px solid #999999; font-size: 12pt;
52-
width: 75%;
53-
clear:both;
54-
}
55-
56-
body p {
57-
margin: 1em 0pt 0pt 15pt;
58-
}
59-
60-
61-
pre.grammar, pre.stdlib {
62-
background: #FFFFE0;
63-
padding: 1em 0 0 0;
64-
}
65-
66-
pre.example {
67-
background: #F0F0F0;
68-
padding: 1em 0 0 0;
69-
}
70-
71-
.commentary {
72-
float: right;
73-
width: 33%;
74-
background: #C0C0FF;
75-
padding: 1em 1em 1em 1em;
76-
margin: 0em 0em 0em 1em;
1+
/* Just add a few things to the default theme. */
2+
@import "haiku.css";
3+
4+
div.content ul > li {
5+
background: none;
6+
list-style-type: initial;
7+
padding-left: 0;
8+
margin-left: 2em;
779
}

Diff for: docs/conf.py

+2
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@
9292
# a list of builtin themes.
9393
html_theme = 'haiku'
9494

95+
html_style = 'swift.css'
96+
9597
# Theme options are theme-specific and customize the look and feel of a theme
9698
# further. For a list of options available for each theme, see the
9799
# documentation.

0 commit comments

Comments
 (0)