Skip to content

Commit 34438f1

Browse files
author
Richard Jones
committed
More work on the documentation - rolled in the work done by Jeff Blaine.
Use build_html.py *.stx to build the HTML. We'll move that into the setup script when someone figures how to :)
1 parent 6f48031 commit 34438f1

File tree

5 files changed

+400
-1328
lines changed

5 files changed

+400
-1328
lines changed

doc/build_html.py

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/usr/bin/env python
2+
3+
"""
4+
:Author: David Goodger
5+
6+
:Revision: $Revision: 1.1 $
7+
:Date: $Date: 2002-03-08 23:41:46 $
8+
:Copyright: This module has been placed in the public domain.
9+
10+
A minimal front-end to the Docutils Publisher.
11+
12+
This module takes advantage of the default values defined in `publish()`.
13+
"""
14+
15+
import sys, os.path
16+
from dps.core import publish
17+
from dps import utils
18+
19+
if len(sys.argv) < 2:
20+
print >>sys.stderr, 'I need at least one filename'
21+
sys.exit(1)
22+
23+
reporter = utils.Reporter(2, 4)
24+
25+
for file in sys.argv[1:]:
26+
name, ext = os.path.splitext(file)
27+
dest = '%s.html'%name
28+
print >>sys.stderr, '%s -> %s'%(file, dest)
29+
publish(writername='html', source=file, destination=dest,
30+
reporter=reporter)
31+

doc/default.css

Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
/*
2+
:Author: David Goodger
3+
4+
:date: $Date: 2002-03-08 23:41:46 $
5+
:version: $Revision: 1.1 $
6+
:copyright: This stylesheet has been placed in the public domain.
7+
8+
Default cascading style sheet for the HTML output of Docutils.
9+
*/
10+
11+
a.footnote-reference {
12+
font-size: smaller;
13+
vertical-align: super }
14+
15+
col.docinfo-name {
16+
font-weight: bold;
17+
text-align: right }
18+
19+
col.field-name {
20+
font-weight: bold }
21+
22+
div.abstract {
23+
margin: 2em 5em }
24+
25+
div.abstract h6 {
26+
font-size: larger;
27+
text-align: center }
28+
29+
div.attention, div.caution, div.danger, div.error, div.hint,
30+
div.important, div.note, div.tip, div.warning {
31+
margin: 2em;
32+
border: medium outset;
33+
padding: 1em }
34+
35+
div.attention h3, div.caution h3, div.danger h3, div.error h3,
36+
div.warning h3 {
37+
color: red;
38+
font-weight: bold;
39+
font-family: sans-serif }
40+
41+
div.hint h3, div.important h3, div.note h3, div.tip h3 {
42+
font-weight: bold;
43+
font-family: sans-serif }
44+
45+
div.field-body {
46+
margin-bottom: 1em }
47+
48+
div.field-list {
49+
margin-bottom: -1em }
50+
51+
div.figure {
52+
margin-left: 2em }
53+
54+
div.footnote {
55+
border-left: solid thin black;
56+
padding-left: 1em }
57+
58+
div.system-messages {
59+
margin: 5em }
60+
61+
div.system-messages h1 {
62+
color: red }
63+
64+
div.system-message {
65+
border: medium outset;
66+
padding: 1em }
67+
68+
div.system-message h3 {
69+
color: red }
70+
71+
dt {
72+
margin-bottom: -1em }
73+
74+
h1.title {
75+
text-align: center }
76+
77+
h2.subtitle {
78+
text-align: center }
79+
80+
hr {
81+
width: 75% }
82+
83+
ol.arabic {
84+
list-style: decimal }
85+
86+
ol.loweralpha {
87+
list-style: lower-alpha }
88+
89+
ol.upperalpha {
90+
list-style: upper-alpha }
91+
92+
ol.lowerroman {
93+
list-style: lower-roman }
94+
95+
ol.upperroman {
96+
list-style: upper-roman }
97+
98+
p.caption {
99+
font-style: italic }
100+
101+
p.field-name {
102+
margin-bottom: 1em }
103+
104+
pre.literal-block, pre.doctest-block {
105+
margin-left: 2em }
106+
107+
span.classifier {
108+
font-family: sans-serif;
109+
font-style: oblique }
110+
111+
span.classifier-delimiter {
112+
font-family: sans-serif;
113+
font-weight: bold }
114+
115+
span.field-argument {
116+
font-style: italic }
117+
118+
span.interpreted {
119+
font-family: sans-serif }
120+
121+
span.option-argument {
122+
font-style: italic }
123+
124+
span.problematic {
125+
color: red }
126+
127+
table {
128+
margin-top: 1em }
129+
130+
table.docinfo {
131+
margin: 2em 4em }

0 commit comments

Comments
 (0)