Skip to content

Commit 399ec0b

Browse files
author
Steve Canny
committed
establish documentation baseline files
1 parent 02759ad commit 399ec0b

11 files changed

Lines changed: 1485 additions & 2 deletions

File tree

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Reaching out
3636
We'd love to hear from you if you like |po|, want a new feature, find a bug,
3737
need help using it, or just have a word of encouragement.
3838

39-
The **mailing list** for |pp| is (google groups ... )
39+
The **mailing list** for |po| is (google groups ... )
4040

4141
The **issue tracker** is on github at `python-openxml/python-opc`_.
4242

@@ -89,4 +89,4 @@ remove my name from the credits. See the LICENSE file for specific terms.
8989
.. _MIT license:
9090
http://www.opensource.org/licenses/mit-license.php
9191

92-
.. |p0| replace:: ``python-opc``
92+
.. |po| replace:: ``python-opc``

doc/Makefile

Lines changed: 153 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,153 @@
1+
# Makefile for Sphinx documentation
2+
#
3+
4+
# You can set these variables from the command line.
5+
SPHINXOPTS =
6+
SPHINXBUILD = sphinx-build
7+
PAPER =
8+
BUILDDIR = _build
9+
10+
# Internal variables.
11+
PAPEROPT_a4 = -D latex_paper_size=a4
12+
PAPEROPT_letter = -D latex_paper_size=letter
13+
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
14+
# the i18n builder cannot share the environment and doctrees with the others
15+
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
16+
17+
.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext
18+
19+
html:
20+
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
21+
@echo
22+
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
23+
24+
help:
25+
@echo "Please use \`make <target>' where <target> is one of"
26+
@echo " html to make standalone HTML files"
27+
@echo " dirhtml to make HTML files named index.html in directories"
28+
@echo " singlehtml to make a single large HTML file"
29+
@echo " pickle to make pickle files"
30+
@echo " json to make JSON files"
31+
@echo " htmlhelp to make HTML files and a HTML help project"
32+
@echo " qthelp to make HTML files and a qthelp project"
33+
@echo " devhelp to make HTML files and a Devhelp project"
34+
@echo " epub to make an epub"
35+
@echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
36+
@echo " latexpdf to make LaTeX files and run them through pdflatex"
37+
@echo " text to make text files"
38+
@echo " man to make manual pages"
39+
@echo " texinfo to make Texinfo files"
40+
@echo " info to make Texinfo files and run them through makeinfo"
41+
@echo " gettext to make PO message catalogs"
42+
@echo " changes to make an overview of all changed/added/deprecated items"
43+
@echo " linkcheck to check all external links for integrity"
44+
@echo " doctest to run all doctests embedded in the documentation (if enabled)"
45+
46+
clean:
47+
-rm -rf $(BUILDDIR)/*
48+
49+
dirhtml:
50+
$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
51+
@echo
52+
@echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
53+
54+
singlehtml:
55+
$(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
56+
@echo
57+
@echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."
58+
59+
pickle:
60+
$(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
61+
@echo
62+
@echo "Build finished; now you can process the pickle files."
63+
64+
json:
65+
$(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
66+
@echo
67+
@echo "Build finished; now you can process the JSON files."
68+
69+
htmlhelp:
70+
$(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
71+
@echo
72+
@echo "Build finished; now you can run HTML Help Workshop with the" \
73+
".hhp project file in $(BUILDDIR)/htmlhelp."
74+
75+
qthelp:
76+
$(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
77+
@echo
78+
@echo "Build finished; now you can run "qcollectiongenerator" with the" \
79+
".qhcp project file in $(BUILDDIR)/qthelp, like this:"
80+
@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/python-opc.qhcp"
81+
@echo "To view the help file:"
82+
@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/python-opc.qhc"
83+
84+
devhelp:
85+
$(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
86+
@echo
87+
@echo "Build finished."
88+
@echo "To view the help file:"
89+
@echo "# mkdir -p $$HOME/.local/share/devhelp/python-opc"
90+
@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/python-opc"
91+
@echo "# devhelp"
92+
93+
epub:
94+
$(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
95+
@echo
96+
@echo "Build finished. The epub file is in $(BUILDDIR)/epub."
97+
98+
latex:
99+
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
100+
@echo
101+
@echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
102+
@echo "Run \`make' in that directory to run these through (pdf)latex" \
103+
"(use \`make latexpdf' here to do that automatically)."
104+
105+
latexpdf:
106+
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
107+
@echo "Running LaTeX files through pdflatex..."
108+
$(MAKE) -C $(BUILDDIR)/latex all-pdf
109+
@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
110+
111+
text:
112+
$(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
113+
@echo
114+
@echo "Build finished. The text files are in $(BUILDDIR)/text."
115+
116+
man:
117+
$(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
118+
@echo
119+
@echo "Build finished. The manual pages are in $(BUILDDIR)/man."
120+
121+
texinfo:
122+
$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
123+
@echo
124+
@echo "Build finished. The Texinfo files are in $(BUILDDIR)/texinfo."
125+
@echo "Run \`make' in that directory to run these through makeinfo" \
126+
"(use \`make info' here to do that automatically)."
127+
128+
info:
129+
$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
130+
@echo "Running Texinfo files through makeinfo..."
131+
make -C $(BUILDDIR)/texinfo info
132+
@echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo."
133+
134+
gettext:
135+
$(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale
136+
@echo
137+
@echo "Build finished. The message catalogs are in $(BUILDDIR)/locale."
138+
139+
changes:
140+
$(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
141+
@echo
142+
@echo "The overview file is in $(BUILDDIR)/changes."
143+
144+
linkcheck:
145+
$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
146+
@echo
147+
@echo "Link check complete; look for any errors in the above output " \
148+
"or in $(BUILDDIR)/linkcheck/output.txt."
149+
150+
doctest:
151+
$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
152+
@echo "Testing of doctests in the sources finished, look at the " \
153+
"results in $(BUILDDIR)/doctest/output.txt."

doc/_static/.gitignore

Whitespace-only changes.

doc/_themes/armstrong/LICENSE

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
Copyright (c) 2011 Bay Citizen & Texas Tribune
2+
3+
Original ReadTheDocs.org code
4+
Copyright (c) 2010 Charles Leifer, Eric Holscher, Bobby Grace
5+
6+
Permission is hereby granted, free of charge, to any person
7+
obtaining a copy of this software and associated documentation
8+
files (the "Software"), to deal in the Software without
9+
restriction, including without limitation the rights to use,
10+
copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
copies of the Software, and to permit persons to whom the
12+
Software is furnished to do so, subject to the following
13+
conditions:
14+
15+
The above copyright notice and this permission notice shall be
16+
included in all copies or substantial portions of the Software.
17+
18+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
19+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
20+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
21+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
22+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
23+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
24+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
25+
OTHER DEALINGS IN THE SOFTWARE.

doc/_themes/armstrong/layout.html

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{% extends "basic/layout.html" %}
2+
3+
{% set script_files = script_files + [pathto("_static/searchtools.js", 1)] %}
4+
5+
{% block htmltitle %}
6+
{{ super() }}
7+
8+
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/>
9+
10+
{% endblock %}
11+
12+
{% block footer %}
13+
<div class="footer">
14+
{%- if show_copyright %}
15+
{%- if hasdoc('copyright') %}
16+
{% trans path=pathto('copyright'), copyright=copyright|e %}&copy; <a href="{{ path }}">Copyright</a> {{ copyright }}.{% endtrans %}
17+
{%- else %}
18+
{% trans copyright=copyright|e %}&copy; Copyright {{ copyright }}.{% endtrans %}
19+
{%- endif %}
20+
{%- endif %}
21+
{%- if last_updated %}
22+
{% trans last_updated=last_updated|e %}Last updated on {{ last_updated }}.{% endtrans %}
23+
{%- endif %}
24+
{%- if show_sphinx %}
25+
{% trans sphinx_version=sphinx_version|e %}Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> {{ sphinx_version }}.{% endtrans %}
26+
{%- endif %}
27+
{%- if theme_show_rtd %}
28+
{% trans %}<br />Theme based on <a href="http://readthedocs.org/">Read The Docs</a>{% endtrans %}
29+
{% endif %}
30+
</div>
31+
32+
33+
{% if theme_analytics_code %}
34+
<!-- Google Analytics Code -->
35+
<script type="text/javascript">
36+
var _gaq = _gaq || [];
37+
_gaq.push(['_setAccount', '{{ theme_analytics_code }}']);
38+
_gaq.push(['_trackPageview']);
39+
40+
(function() {
41+
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
42+
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
43+
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
44+
})();
45+
</script>
46+
{% endif %}
47+
48+
{% endblock %}
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
[theme]
2+
inherit = default
3+
stylesheet = rtd.css
4+
pygment_style = default
5+
show_sphinx = False
6+
7+
[options]
8+
show_rtd = True
9+
10+
white = #ffffff
11+
almost_white = #f8f8f8
12+
barely_white = #f2f2f2
13+
dirty_white = #eeeeee
14+
almost_dirty_white = #e6e6e6
15+
dirtier_white = #dddddd
16+
lighter_gray = #cccccc
17+
gray_a = #aaaaaa
18+
gray_9 = #999999
19+
light_gray = #888888
20+
gray_7 = #777777
21+
gray = #666666
22+
dark_gray = #444444
23+
gray_2 = #222222
24+
black = #111111
25+
light_color = #e8ecef
26+
light_medium_color = #DDEAF0
27+
medium_color = #8ca1af
28+
medium_color_link = #86989b
29+
medium_color_link_hover = #a6b8bb
30+
dark_color = #465158
31+
32+
h1 = #000000
33+
h2 = #465158
34+
h3 = #6c818f
35+
36+
link_color = #444444
37+
link_color_decoration = #CCCCCC
38+
39+
medium_color_hover = #697983
40+
green_highlight = #8ecc4c
41+
42+
43+
positive_dark = #609060
44+
positive_medium = #70a070
45+
positive_light = #e9ffe9
46+
47+
negative_dark = #900000
48+
negative_medium = #b04040
49+
negative_light = #ffe9e9
50+
negative_text = #c60f0f
51+
52+
ruler = #abc
53+
54+
viewcode_bg = #f4debf
55+
viewcode_border = #ac9
56+
57+
highlight = #ffe080
58+
59+
code_background = #eeeeee
60+
61+
background = #465158
62+
background_link = #ffffff
63+
background_link_half = #ffffff
64+
background_text = #eeeeee
65+
background_text_link = #86989b

0 commit comments

Comments
 (0)