Merge "Initial commit for cyborg api-ref"

This commit is contained in:
Zuul 2019-03-29 12:30:33 +00:00 committed by Gerrit Code Review
commit 32272f3e8f
6 changed files with 132 additions and 0 deletions

90
api-ref/source/conf.py Normal file
View File

@ -0,0 +1,90 @@
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
# cyborg documentation build configuration file, created by
# sphinx-quickstart on Sat May 1 15:17:47 2010.
#
# This file is execfile()d with the current directory set to
# its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All configuration values have a default; values that are commented out
# serve to show the default.
from cyborg.version import version_info
extensions = [
'openstackdocstheme',
'os_api_ref',
]
# -- General configuration ----------------------------------------------------
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
# The suffix of source filenames.
source_suffix = '.rst'
# The master toctree document.
master_doc = 'index'
# General information about the project.
project = u'Acceleration API Reference'
copyright = u'2016-present, OpenStack Foundation'
# openstackdocstheme options
repository_name = 'openstack/cyborg'
bug_project = 'cyborg'
bug_tag = 'api-ref'
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The full version, including alpha/beta/rc tags.
release = version_info.release_string()
# The short X.Y version.
version = version_info.version_string()
# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'
# -- Options for HTML output --------------------------------------------------
# The theme to use for HTML and HTML Help pages. Major themes that come with
# Sphinx are currently 'default' and 'sphinxdoc'.
html_theme = 'openstackdocs'
# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
html_theme_options = {
"sidebar_mode": "toc",
}
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
# using the given strftime format.
html_last_updated_fmt = '%Y-%m-%d %H:%M'
# -- Options for LaTeX output -------------------------------------------------
# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title, author, documentclass
# [howto/manual]).
latex_documents = [
('index', 'Cyborg.tex', u'OpenStack Acceleration API Documentation',
u'OpenStack Foundation', 'manual'),
]

11
api-ref/source/index.rst Normal file
View File

@ -0,0 +1,11 @@
===========================
OpenStack Acceleration APIs
===========================
This is a reference for the OpenStack Acceleration API which is provided by
the Cyborg project.
.. toctree::
:maxdepth: 1
v1/index

View File

View File

View File

@ -0,0 +1,22 @@
==============================
OpenStack Acceleration v1 APIs
==============================
v1 APIs
#######
This is a reference for the OpenStack Acceleration v1 API which is provided by
the Cyborg project.
.. rest_expand_all::
.. include:: deployables.inc
Deprecated v1 APIs
##################
This section contains references for v1 APIs which are deprecated and usually
limited to some maximum microversion.
.. include:: accelerators.inc

View File

@ -79,6 +79,15 @@ commands = sphinx-build -a -W -E -d releasenotes/build/doctrees -b html releasen
basepython = python3
commands = oslo_debug_helper -t cyborg/tests {posargs}
[testenv:api-ref]
# This environment is called from CI scripts to test and publish
# the API Ref to developer.openstack.org.
deps = -r{toxinidir}/doc/requirements.txt
commands =
rm -rf api-ref/build
sphinx-build -W -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html
whitelist_externals = rm
[pep8]
# E123, E125 skipped as they are invalid PEP-8.