Skip to content

Commit 4b13879

Browse files
Cloud Userajaeger
authored andcommitted
Adds migrated API reference files
This brings in RST plus YAML files, migrated from the source for [0]. The migration explanation is found on the openstack-dev mailing list [1]. Project instruction is in the OpenStack Documentation Contributor Guide [2]. A patch for publishing this source is in [3]. The conf.py and the tox environment are standard across other projects. [0]http://developer.openstack.org/api-ref-objectstorage-v1.html [1]http://lists.openstack.org/pipermail/openstack-dev/2016-May/093765.html [2]http://docs.openstack.org/contributor-guide/api-guides.html [3]https://review.openstack.org/#/c/313015/ Change-Id: Ifebc65b188c4f2ba35b61c0deae5ec24401df7f9
1 parent c0217a4 commit 4b13879

27 files changed

+3006
-0
lines changed

api-ref/source/conf.py

Lines changed: 221 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,221 @@
1+
# -*- coding: utf-8 -*-
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License"); you may
4+
# not use this file except in compliance with the License. You may obtain
5+
# 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, WITHOUT
11+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12+
# License for the specific language governing permissions and limitations
13+
# under the License.
14+
#
15+
# swift documentation build configuration file
16+
#
17+
# This file is execfile()d with the current directory set to
18+
# 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+
26+
import os
27+
from swift import __version__
28+
import subprocess
29+
import sys
30+
import warnings
31+
32+
# If extensions (or modules to document with autodoc) are in another directory,
33+
# add these directories to sys.path here. If the directory is relative to the
34+
# documentation root, use os.path.abspath to make it absolute, like shown here.
35+
sys.path.insert(0, os.path.abspath('../../'))
36+
sys.path.insert(0, os.path.abspath('../'))
37+
sys.path.insert(0, os.path.abspath('./'))
38+
39+
# -- General configuration ----------------------------------------------------
40+
41+
# Add any Sphinx extension module names here, as strings. They can be
42+
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
43+
44+
extensions = [
45+
'os_api_ref',
46+
'oslosphinx',
47+
]
48+
49+
# The suffix of source filenames.
50+
source_suffix = '.rst'
51+
52+
# The encoding of source files.
53+
#
54+
# source_encoding = 'utf-8'
55+
56+
# The master toctree document.
57+
master_doc = 'index'
58+
59+
# General information about the project.
60+
project = u'Object Storage API Reference'
61+
copyright = u'2010-present, OpenStack Foundation'
62+
63+
# The version info for the project you're documenting, acts as replacement for
64+
# |version| and |release|, also used in various other places throughout the
65+
# built documents.
66+
#
67+
# The short X.Y version.
68+
version = __version__.rsplit('.', 1)[0]
69+
# The full version, including alpha/beta/rc tags.
70+
release = __version__
71+
72+
# The language for content autogenerated by Sphinx. Refer to documentation
73+
# for a list of supported languages.
74+
#
75+
# language = None
76+
77+
# There are two options for replacing |today|: either, you set today to some
78+
# non-false value, then it is used:
79+
# today = ''
80+
# Else, today_fmt is used as the format for a strftime call.
81+
# today_fmt = '%B %d, %Y'
82+
83+
# The reST default role (used for this markup: `text`) to use
84+
# for all documents.
85+
# default_role = None
86+
87+
# If true, '()' will be appended to :func: etc. cross-reference text.
88+
# add_function_parentheses = True
89+
90+
# If true, the current module name will be prepended to all description
91+
# unit titles (such as .. function::).
92+
add_module_names = False
93+
94+
# If true, sectionauthor and moduleauthor directives will be shown in the
95+
# output. They are ignored by default.
96+
show_authors = False
97+
98+
# The name of the Pygments (syntax highlighting) style to use.
99+
pygments_style = 'sphinx'
100+
101+
# -- Options for man page output ----------------------------------------------
102+
103+
# Grouping the document tree for man pages.
104+
# List of tuples 'sourcefile', 'target', u'title', u'Authors name', 'manual'
105+
106+
107+
# -- Options for HTML output --------------------------------------------------
108+
109+
# The theme to use for HTML and HTML Help pages. Major themes that come with
110+
# Sphinx are currently 'default' and 'sphinxdoc'.
111+
# html_theme_path = ["."]
112+
# html_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.
120+
# html_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".
141+
#html_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+
git_cmd = ["git", "log", "--pretty=format:'%ad, commit %h'", "--date=local",
147+
"-n1"]
148+
try:
149+
html_last_updated_fmt = subprocess.Popen(
150+
git_cmd, stdout=subprocess.PIPE).communicate()[0]
151+
except OSError:
152+
warnings.warn('Cannot get last updated time from git repository. '
153+
'Not setting "html_last_updated_fmt".')
154+
155+
# If true, SmartyPants will be used to convert quotes and dashes to
156+
# typographically correct entities.
157+
# html_use_smartypants = True
158+
159+
# Custom sidebar templates, maps document names to template names.
160+
# html_sidebars = {}
161+
162+
# Additional templates that should be rendered to pages, maps page names to
163+
# template names.
164+
# html_additional_pages = {}
165+
166+
# If false, no module index is generated.
167+
# html_use_modindex = True
168+
169+
# If false, no index is generated.
170+
# html_use_index = True
171+
172+
# If true, the index is split into individual pages for each letter.
173+
# html_split_index = False
174+
175+
# If true, links to the reST sources are added to the pages.
176+
# html_show_sourcelink = True
177+
178+
# If true, an OpenSearch description file will be output, and all pages will
179+
# contain a <link> tag referring to it. The value of this option must be the
180+
# base URL from which the finished HTML is served.
181+
# html_use_opensearch = ''
182+
183+
# If nonempty, this is the file name suffix for HTML files (e.g. ".xhtml").
184+
# html_file_suffix = ''
185+
186+
# Output file base name for HTML help builder.
187+
htmlhelp_basename = 'swiftdoc'
188+
189+
190+
# -- Options for LaTeX output -------------------------------------------------
191+
192+
# The paper size ('letter' or 'a4').
193+
# latex_paper_size = 'letter'
194+
195+
# The font size ('10pt', '11pt' or '12pt').
196+
# latex_font_size = '10pt'
197+
198+
# Grouping the document tree into LaTeX files. List of tuples
199+
# (source start file, target name, title, author, documentclass
200+
# [howto/manual]).
201+
latex_documents = [
202+
('index', 'swift.tex', u'OpenStack Object Storage API Documentation',
203+
u'OpenStack Foundation', 'manual'),
204+
]
205+
206+
# The name of an image file (relative to this directory) to place at the top of
207+
# the title page.
208+
# latex_logo = None
209+
210+
# For "manual" documents, if this is true, then toplevel headings are parts,
211+
# not chapters.
212+
# latex_use_parts = False
213+
214+
# Additional stuff for the LaTeX preamble.
215+
# latex_preamble = ''
216+
217+
# Documents to append as an appendix to all manuals.
218+
# latex_appendices = []
219+
220+
# If false, no module index is generated.
221+
# latex_use_modindex = True

api-ref/source/index.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
:tocdepth: 2
2+
3+
===================
4+
Object Storage API
5+
===================
6+
7+
.. rest_expand_all::
8+
9+
.. include:: storage-account-services.inc
10+
.. include:: storage_endpoints.inc
11+
.. include:: storage-object-services.inc
12+
.. include:: storage-container-services.inc
13+
.. include:: storage_info.inc

0 commit comments

Comments
 (0)