Merge lp:~eday/burrow/start-docs into lp:burrow

Proposed by Eric Day
Status: Merged
Approved by: Eric Day
Approved revision: 12
Merged at revision: 5
Proposed branch: lp:~eday/burrow/start-docs
Merge into: lp:burrow
Diff against target: 845 lines (+770/-1)
11 files modified
.bzrignore (+3/-0)
ChangeLog (+4/-0)
MANIFEST.in (+1/-0)
burrow/__init__.py (+1/-1)
doc/source/_ga/layout.html (+17/-0)
doc/source/_static/basic.css (+416/-0)
doc/source/_static/tweaks.css (+65/-0)
doc/source/_theme/layout.html (+2/-0)
doc/source/_theme/theme.conf (+5/-0)
doc/source/conf.py (+218/-0)
doc/source/index.rst (+38/-0)
To merge this branch: bzr merge lp:~eday/burrow/start-docs
Reviewer Review Type Date Requested Status
Burrow Core Team Pending
Review via email: mp+56675@code.launchpad.net

Description of the change

Added hooks and templates to build OpenStack themed Sphinx documentation.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== added file '.bzrignore'
--- .bzrignore 1970-01-01 00:00:00 +0000
+++ .bzrignore 2011-04-07 00:17:24 +0000
@@ -0,0 +1,3 @@
1burrow.egg-info
2dist
3doc/build/*
04
=== modified file 'ChangeLog'
--- ChangeLog 2011-04-06 02:03:37 +0000
+++ ChangeLog 2011-04-07 00:17:24 +0000
@@ -1,3 +1,7 @@
12011-04-05 Eric Day <eday@oddments.org>
2
3 Added command line tool, start of client class, and HTTP backend.
4
12011-03-30 Eric Day <eday@oddments.org>52011-03-30 Eric Day <eday@oddments.org>
26
3 Merged burrow and burrowd packages, the interfaces for backend/client can be shared, and this will also allow modular in-process queues.7 Merged burrow and burrowd packages, the interfaces for backend/client can be shared, and this will also allow modular in-process queues.
48
=== modified file 'MANIFEST.in'
--- MANIFEST.in 2011-03-18 00:47:26 +0000
+++ MANIFEST.in 2011-04-07 00:17:24 +0000
@@ -1,3 +1,4 @@
1graft doc
1graft etc2graft etc
2graft locale3graft locale
3include Authors4include Authors
45
=== modified file 'burrow/__init__.py'
--- burrow/__init__.py 2011-04-06 02:03:37 +0000
+++ burrow/__init__.py 2011-04-07 00:17:24 +0000
@@ -22,7 +22,7 @@
22from burrow.server import Server22from burrow.server import Server
23import burrow.config23import burrow.config
2424
25__version__ = '0.1'25__version__ = '2011.2'
2626
27# This installs the _(...) function as a built-in so all other modules27# This installs the _(...) function as a built-in so all other modules
28# don't need to.28# don't need to.
2929
=== added directory 'doc'
=== added directory 'doc/build'
=== added directory 'doc/source'
=== added directory 'doc/source/_ga'
=== added file 'doc/source/_ga/layout.html'
--- doc/source/_ga/layout.html 1970-01-01 00:00:00 +0000
+++ doc/source/_ga/layout.html 2011-04-07 00:17:24 +0000
@@ -0,0 +1,17 @@
1{% extends "!layout.html" %}
2
3{% block footer %}
4{{ super() }}
5<script type="text/javascript">
6var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
7document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
8</script>
9<script type="text/javascript">
10try {
11var pageTracker = _gat._getTracker("UA-17511903-4");
12pageTracker._setDomainName("none");
13pageTracker._setAllowLinker(true);
14pageTracker._trackPageview();
15} catch(err) {}</script>
16{% endblock %}
17
018
=== added directory 'doc/source/_static'
=== added file 'doc/source/_static/basic.css'
--- doc/source/_static/basic.css 1970-01-01 00:00:00 +0000
+++ doc/source/_static/basic.css 2011-04-07 00:17:24 +0000
@@ -0,0 +1,416 @@
1/**
2 * Sphinx stylesheet -- basic theme
3 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4 */
5
6/* -- main layout ----------------------------------------------------------- */
7
8div.clearer {
9 clear: both;
10}
11
12/* -- relbar ---------------------------------------------------------------- */
13
14div.related {
15 width: 100%;
16 font-size: 90%;
17}
18
19div.related h3 {
20 display: none;
21}
22
23div.related ul {
24 margin: 0;
25 padding: 0 0 0 10px;
26 list-style: none;
27}
28
29div.related li {
30 display: inline;
31}
32
33div.related li.right {
34 float: right;
35 margin-right: 5px;
36}
37
38/* -- sidebar --------------------------------------------------------------- */
39
40div.sphinxsidebarwrapper {
41 padding: 10px 5px 0 10px;
42}
43
44div.sphinxsidebar {
45 float: left;
46 width: 230px;
47 margin-left: -100%;
48 font-size: 90%;
49}
50
51div.sphinxsidebar ul {
52 list-style: none;
53}
54
55div.sphinxsidebar ul ul,
56div.sphinxsidebar ul.want-points {
57 margin-left: 20px;
58 list-style: square;
59}
60
61div.sphinxsidebar ul ul {
62 margin-top: 0;
63 margin-bottom: 0;
64}
65
66div.sphinxsidebar form {
67 margin-top: 10px;
68}
69
70div.sphinxsidebar input {
71 border: 1px solid #98dbcc;
72 font-family: sans-serif;
73 font-size: 1em;
74}
75
76img {
77 border: 0;
78}
79
80/* -- search page ----------------------------------------------------------- */
81
82ul.search {
83 margin: 10px 0 0 20px;
84 padding: 0;
85}
86
87ul.search li {
88 padding: 5px 0 5px 20px;
89 background-image: url(file.png);
90 background-repeat: no-repeat;
91 background-position: 0 7px;
92}
93
94ul.search li a {
95 font-weight: bold;
96}
97
98ul.search li div.context {
99 color: #888;
100 margin: 2px 0 0 30px;
101 text-align: left;
102}
103
104ul.keywordmatches li.goodmatch a {
105 font-weight: bold;
106}
107
108/* -- index page ------------------------------------------------------------ */
109
110table.contentstable {
111 width: 90%;
112}
113
114table.contentstable p.biglink {
115 line-height: 150%;
116}
117
118a.biglink {
119 font-size: 1.3em;
120}
121
122span.linkdescr {
123 font-style: italic;
124 padding-top: 5px;
125 font-size: 90%;
126}
127
128/* -- general index --------------------------------------------------------- */
129
130table.indextable td {
131 text-align: left;
132 vertical-align: top;
133}
134
135table.indextable dl, table.indextable dd {
136 margin-top: 0;
137 margin-bottom: 0;
138}
139
140table.indextable tr.pcap {
141 height: 10px;
142}
143
144table.indextable tr.cap {
145 margin-top: 10px;
146 background-color: #f2f2f2;
147}
148
149img.toggler {
150 margin-right: 3px;
151 margin-top: 3px;
152 cursor: pointer;
153}
154
155/* -- general body styles --------------------------------------------------- */
156
157a.headerlink {
158 visibility: hidden;
159}
160
161h1:hover > a.headerlink,
162h2:hover > a.headerlink,
163h3:hover > a.headerlink,
164h4:hover > a.headerlink,
165h5:hover > a.headerlink,
166h6:hover > a.headerlink,
167dt:hover > a.headerlink {
168 visibility: visible;
169}
170
171div.body p.caption {
172 text-align: inherit;
173}
174
175div.body td {
176 text-align: left;
177}
178
179.field-list ul {
180 padding-left: 1em;
181}
182
183.first {
184}
185
186p.rubric {
187 margin-top: 30px;
188 font-weight: bold;
189}
190
191/* -- sidebars -------------------------------------------------------------- */
192
193div.sidebar {
194 margin: 0 0 0.5em 1em;
195 border: 1px solid #ddb;
196 padding: 7px 7px 0 7px;
197 background-color: #ffe;
198 width: 40%;
199 float: right;
200}
201
202p.sidebar-title {
203 font-weight: bold;
204}
205
206/* -- topics ---------------------------------------------------------------- */
207
208div.topic {
209 border: 1px solid #ccc;
210 padding: 7px 7px 0 7px;
211 margin: 10px 0 10px 0;
212}
213
214p.topic-title {
215 font-size: 1.1em;
216 font-weight: bold;
217 margin-top: 10px;
218}
219
220/* -- admonitions ----------------------------------------------------------- */
221
222div.admonition {
223 margin-top: 10px;
224 margin-bottom: 10px;
225 padding: 7px;
226}
227
228div.admonition dt {
229 font-weight: bold;
230}
231
232div.admonition dl {
233 margin-bottom: 0;
234}
235
236p.admonition-title {
237 margin: 0px 10px 5px 0px;
238 font-weight: bold;
239}
240
241div.body p.centered {
242 text-align: center;
243 margin-top: 25px;
244}
245
246/* -- tables ---------------------------------------------------------------- */
247
248table.docutils {
249 border: 0;
250 border-collapse: collapse;
251}
252
253table.docutils td, table.docutils th {
254 padding: 1px 8px 1px 0;
255 border-top: 0;
256 border-left: 0;
257 border-right: 0;
258 border-bottom: 1px solid #aaa;
259}
260
261table.field-list td, table.field-list th {
262 border: 0 !important;
263}
264
265table.footnote td, table.footnote th {
266 border: 0 !important;
267}
268
269th {
270 text-align: left;
271 padding-right: 5px;
272}
273
274/* -- other body styles ----------------------------------------------------- */
275
276dl {
277 margin-bottom: 15px;
278}
279
280dd p {
281 margin-top: 0px;
282}
283
284dd ul, dd table {
285 margin-bottom: 10px;
286}
287
288dd {
289 margin-top: 3px;
290 margin-bottom: 10px;
291 margin-left: 30px;
292}
293
294dt:target, .highlight {
295 background-color: #fbe54e;
296}
297
298dl.glossary dt {
299 font-weight: bold;
300 font-size: 1.1em;
301}
302
303.field-list ul {
304 margin: 0;
305 padding-left: 1em;
306}
307
308.field-list p {
309 margin: 0;
310}
311
312.refcount {
313 color: #060;
314}
315
316.optional {
317 font-size: 1.3em;
318}
319
320.versionmodified {
321 font-style: italic;
322}
323
324.system-message {
325 background-color: #fda;
326 padding: 5px;
327 border: 3px solid red;
328}
329
330.footnote:target {
331 background-color: #ffa
332}
333
334.line-block {
335 display: block;
336 margin-top: 1em;
337 margin-bottom: 1em;
338}
339
340.line-block .line-block {
341 margin-top: 0;
342 margin-bottom: 0;
343 margin-left: 1.5em;
344}
345
346/* -- code displays --------------------------------------------------------- */
347
348pre {
349 overflow: auto;
350}
351
352td.linenos pre {
353 padding: 5px 0px;
354 border: 0;
355 background-color: transparent;
356 color: #aaa;
357}
358
359table.highlighttable {
360 margin-left: 0.5em;
361}
362
363table.highlighttable td {
364 padding: 0 0.5em 0 0.5em;
365}
366
367tt.descname {
368 background-color: transparent;
369 font-weight: bold;
370 font-size: 1.2em;
371}
372
373tt.descclassname {
374 background-color: transparent;
375}
376
377tt.xref, a tt {
378 background-color: transparent;
379 font-weight: bold;
380}
381
382h1 tt, h2 tt, h3 tt, h4 tt, h5 tt, h6 tt {
383 background-color: transparent;
384}
385
386/* -- math display ---------------------------------------------------------- */
387
388img.math {
389 vertical-align: middle;
390}
391
392div.body div.math p {
393 text-align: center;
394}
395
396span.eqno {
397 float: right;
398}
399
400/* -- printout stylesheet --------------------------------------------------- */
401
402@media print {
403 div.document,
404 div.documentwrapper,
405 div.bodywrapper {
406 margin: 0 !important;
407 width: 100%;
408 }
409
410 div.sphinxsidebar,
411 div.related,
412 div.footer,
413 #top-link {
414 display: none;
415 }
416}
0417
=== added file 'doc/source/_static/tweaks.css'
--- doc/source/_static/tweaks.css 1970-01-01 00:00:00 +0000
+++ doc/source/_static/tweaks.css 2011-04-07 00:17:24 +0000
@@ -0,0 +1,65 @@
1ul.todo_list {
2 list-style-type: none;
3 margin: 0;
4 padding: 0;
5}
6
7ul.todo_list li {
8 display: block;
9 margin: 0;
10 padding: 7px 0;
11 border-top: 1px solid #eee;
12}
13
14ul.todo_list li p {
15 display: inline;
16}
17
18ul.todo_list li p.link {
19 font-weight: bold;
20}
21
22ul.todo_list li p.details {
23 font-style: italic;
24}
25
26ul.todo_list li {
27}
28
29div.admonition {
30 border: 1px solid #8F1000;
31}
32
33div.admonition p.admonition-title {
34 background-color: #8F1000;
35 border-bottom: 1px solid #8E8E8E;
36}
37
38a {
39 color: #CF2F19;
40}
41
42div.related ul li a {
43 color: #CF2F19;
44}
45
46div.sphinxsidebar h4 {
47 background-color:#8E8E8E;
48 border:1px solid #255E6E;
49 color:white;
50 font-size:1em;
51 margin:1em 0 0.5em;
52 padding:0.1em 0 0.1em 0.5em;
53}
54
55em {
56 font-style: normal;
57}
58
59table.docutils {
60 font-size: 11px;
61}
62
63a tt {
64 color:#CF2F19;
65}
0\ No newline at end of file66\ No newline at end of file
167
=== added directory 'doc/source/_templates'
=== added directory 'doc/source/_theme'
=== added file 'doc/source/_theme/layout.html'
--- doc/source/_theme/layout.html 1970-01-01 00:00:00 +0000
+++ doc/source/_theme/layout.html 2011-04-07 00:17:24 +0000
@@ -0,0 +1,2 @@
1{% extends "sphinxdoc/layout.html" %}
2{% set css_files = css_files + ['_static/tweaks.css'] %}
03
=== added file 'doc/source/_theme/theme.conf'
--- doc/source/_theme/theme.conf 1970-01-01 00:00:00 +0000
+++ doc/source/_theme/theme.conf 2011-04-07 00:17:24 +0000
@@ -0,0 +1,5 @@
1[theme]
2inherit = sphinxdoc
3stylesheet = sphinxdoc.css
4pygments_style = friendly
5
06
=== added file 'doc/source/conf.py'
--- doc/source/conf.py 1970-01-01 00:00:00 +0000
+++ doc/source/conf.py 2011-04-07 00:17:24 +0000
@@ -0,0 +1,218 @@
1# Copyright (C) 2011 OpenStack LLC.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15# Burrow documentation build configuration file, created by
16# sphinx-quickstart on Wed Apr 6 13:19:31 2011.
17#
18# This file is execfile()d with the current directory set to its containing dir.
19#
20# Note that not all possible configuration values are present in this
21# autogenerated file.
22#
23# All configuration values have a default; values that are commented out
24# serve to show the default.
25
26import sys, os
27
28# If extensions (or modules to document with autodoc) are in another directory,
29# add these directories to sys.path here. If the directory is relative to the
30# documentation root, use os.path.abspath to make it absolute, like shown here.
31sys.path.append([os.path.abspath('../burrow'), os.path.abspath('..'), os.path.abspath('../bin')])
32
33# -- General configuration -----------------------------------------------------
34
35# Add any Sphinx extension module names here, as strings. They can be extensions
36# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
37extensions = ['sphinx.ext.autodoc', 'sphinx.ext.intersphinx', 'sphinx.ext.todo', 'sphinx.ext.coverage', 'sphinx.ext.pngmath', 'sphinx.ext.ifconfig']
38todo_include_todos = True
39
40# Add any paths that contain templates here, relative to this directory.
41templates_path = []
42if os.getenv('HUDSON_PUBLISH_DOCS'):
43 templates_path = ['_ga', '_templates']
44else:
45 templates_path = ['_templates']
46
47# The suffix of source filenames.
48source_suffix = '.rst'
49
50# The encoding of source files.
51#source_encoding = 'utf-8'
52
53# The master toctree document.
54master_doc = 'index'
55
56# General information about the project.
57project = u'Burrow'
58copyright = u'2011, OpenStack, LLC'
59
60# The version info for the project you're documenting, acts as replacement for
61# |version| and |release|, also used in various other places throughout the
62# built documents.
63#
64# The short X.Y version.
65import burrow
66version = burrow.__version__.rsplit('.', 1)[0]
67# The full version, including alpha/beta/rc tags.
68release = burrow.__version__
69
70# The language for content autogenerated by Sphinx. Refer to documentation
71# for a list of supported languages.
72#language = None
73
74# There are two options for replacing |today|: either, you set today to some
75# non-false value, then it is used:
76#today = ''
77# Else, today_fmt is used as the format for a strftime call.
78#today_fmt = '%B %d, %Y'
79
80# List of documents that shouldn't be included in the build.
81#unused_docs = []
82
83# List of directories, relative to source directory, that shouldn't be searched
84# for source files.
85exclude_trees = []
86
87# The reST default role (used for this markup: `text`) to use for all documents.
88#default_role = None
89
90# If true, '()' will be appended to :func: etc. cross-reference text.
91#add_function_parentheses = True
92
93# If true, the current module name will be prepended to all description
94# unit titles (such as .. function::).
95#add_module_names = True
96
97# If true, sectionauthor and moduleauthor directives will be shown in the
98# output. They are ignored by default.
99show_authors = True
100
101# The name of the Pygments (syntax highlighting) style to use.
102pygments_style = 'sphinx'
103
104# A list of ignored prefixes for module index sorting.
105modindex_common_prefix = ['burrow.']
106
107
108# -- Options for HTML output ---------------------------------------------------
109
110# The theme to use for HTML and HTML Help pages. Major themes that come with
111# Sphinx are currently 'default' and 'sphinxdoc'.
112html_theme = '_theme'
113
114# Theme options are theme-specific and customize the look and feel of a theme
115# further. For a list of options available for each theme, see the
116# documentation.
117#html_theme_options = {}
118
119# Add any paths that contain custom themes here, relative to this directory.
120html_theme_path = ['.']
121
122# The name for this set of Sphinx documents. If None, it defaults to
123# "<project> v<release> documentation".
124#html_title = None
125
126# A shorter title for the navigation bar. Default is the same as html_title.
127#html_short_title = None
128
129# The name of an image file (relative to this directory) to place at the top
130# of the sidebar.
131#html_logo = None
132
133# The name of an image file (within the static path) to use as favicon of the
134# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
135# pixels large.
136#html_favicon = None
137
138# Add any paths that contain custom static files (such as style sheets) here,
139# relative to this directory. They are copied after the builtin static files,
140# so a file named "default.css" will overwrite the builtin "default.css".
141html_static_path = ['_static']
142
143# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
144# using the given strftime format.
145#html_last_updated_fmt = '%b %d, %Y'
146
147# If true, SmartyPants will be used to convert quotes and dashes to
148# typographically correct entities.
149#html_use_smartypants = True
150
151# Custom sidebar templates, maps document names to template names.
152#html_sidebars = {}
153
154# Additional templates that should be rendered to pages, maps page names to
155# template names.
156#html_additional_pages = {}
157
158# If false, no module index is generated.
159#html_use_modindex = True
160
161# If false, no index is generated.
162#html_use_index = True
163
164# If true, the index is split into individual pages for each letter.
165#html_split_index = False
166
167# If true, links to the reST sources are added to the pages.
168#html_show_sourcelink = True
169
170# If true, an OpenSearch description file will be output, and all pages will
171# contain a <link> tag referring to it. The value of this option must be the
172# base URL from which the finished HTML is served.
173#html_use_opensearch = ''
174
175# If nonempty, this is the file name suffix for HTML files (e.g. ".xhtml").
176#html_file_suffix = ''
177
178# Output file base name for HTML help builder.
179htmlhelp_basename = 'burrowdoc'
180
181
182# -- Options for LaTeX output --------------------------------------------------
183
184# The paper size ('letter' or 'a4').
185#latex_paper_size = 'letter'
186
187# The font size ('10pt', '11pt' or '12pt').
188#latex_font_size = '10pt'
189
190# Grouping the document tree into LaTeX files. List of tuples
191# (source start file, target name, title, author, documentclass [howto/manual]).
192latex_documents = [
193 ('index', 'Burrow.tex', u'Burrow Documentation',
194 u'OpenStack, LLC', 'manual'),
195]
196
197# The name of an image file (relative to this directory) to place at the top of
198# the title page.
199#latex_logo = None
200
201# For "manual" documents, if this is true, then toplevel headings are parts,
202# not chapters.
203#latex_use_parts = False
204
205# Additional stuff for the LaTeX preamble.
206#latex_preamble = ''
207
208# Documents to append as an appendix to all manuals.
209#latex_appendices = []
210
211# If false, no module index is generated.
212#latex_use_modindex = True
213
214# Example configuration for intersphinx: refer to the Python standard library.
215intersphinx_mapping = {'python': ('http://docs.python.org/', None),
216 'glance': ('http://glance.openstack.org', None),
217 'nova': ('http://nova.openstack.org', None),
218 'swift': ('http://swift.openstack.org', None)}
0219
=== added file 'doc/source/index.rst'
--- doc/source/index.rst 1970-01-01 00:00:00 +0000
+++ doc/source/index.rst 2011-04-07 00:17:24 +0000
@@ -0,0 +1,38 @@
1..
2 Copyright (C) 2011 OpenStack LLC.
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15
16Welcome to Burrow's documentation!
17==================================
18
19Burrow is a highly available, distributed, multi-tenant message
20queue. Burrow can be used in a variety of environments, from simple
21in-process queues to cloud-based message queue services.
22
23This documentation is generated by the Sphinx toolkit and lives in the
24source tree. Additional documentation on Swift and other components
25of OpenStack can be found on the `OpenStack wiki`_.
26
27.. _`OpenStack wiki`: http://wiki.openstack.org
28
29.. toctree::
30 :maxdepth: 1
31
32Indices and tables
33==================
34
35* :ref:`genindex`
36* :ref:`modindex`
37* :ref:`search`
38

Subscribers

People subscribed via source and target branches