Merge "Add developer docs automatic produce support"

This commit is contained in:
Jenkins 2015-08-28 12:25:11 +00:00 committed by Gerrit Code Review
commit 3b5380ade0
8 changed files with 130 additions and 9 deletions

71
docs/conf.py Normal file
View File

@ -0,0 +1,71 @@
# -*- coding: utf-8 -*-
# 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.
import os
import sys
sys.path.insert(0, os.path.abspath('../..'))
# -- 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.
extensions = [
'sphinx.ext.autodoc',
'oslosphinx'
]
# autodoc generation is a bit aggressive and a nuisance when doing heavy
# text edit cycles.
# execute "export SPHINX_DEBUG=1" in your terminal to disable
# The suffix of source filenames.
source_suffix = '.rst'
# The master toctree document.
master_doc = 'index'
# General information about the project.
project = u'kolla'
copyright = u'2013, OpenStack Foundation'
# If true, '()' will be appended to :func: etc. cross-reference text.
add_function_parentheses = True
# If true, the current module name will be prepended to all description
# unit titles (such as .. function::).
add_module_names = True
# 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_path = ["."]
# html_theme = '_theme'
# html_static_path = ['static']
# Output file base name for HTML help builder.
htmlhelp_basename = '%sdoc' % project
# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title, author, documentclass
# [howto/manual]).
latex_documents = [
('index',
'%s.tex' % project,
u'%s Documentation' % project,
u'OpenStack Foundation', 'manual'),
]

View File

@ -99,7 +99,7 @@ be running at a time.
service libvirtd stop service libvirtd stop
Kolla deploys OpenStack using Kolla deploys OpenStack using
`Ansible <https://ansible.com>`__. Install Ansible from distribution `Ansible <http://www.ansible.com>`__. Install Ansible from distribution
packaging if the distro packaging has 1.8.4 or greater available. Currently packaging if the distro packaging has 1.8.4 or greater available. Currently
Ubuntu's version of Ansible is too old to use from packaging. On RPM Ubuntu's version of Ansible is too old to use from packaging. On RPM
based systems install from packaging using: based systems install from packaging using:
@ -185,12 +185,13 @@ seek help by filing a bug or contacting the developers via IRC.
Note some of the containers don't log to stdout at present so the above Note some of the containers don't log to stdout at present so the above
command will provide no information. Instead they log to files command will provide no information. Instead they log to files
in _/var_/log_/_<service_> inside the container. The Kolla community is in /var/log/<service_> inside the container. The Kolla community is
working to improve auditing and make things more consistent. The Kolla working to improve auditing and make things more consistent. The Kolla
community expects this work to complete by Liberty rc1. An example of community expects this work to complete by Liberty rc1. An example of
reading the logs for nova-api: reading the logs for nova-api:
:: ::
$ docker exec -t nova_api more /var/log/nova/nova-api.log $ docker exec -t nova_api more /var/log/nova/nova-api.log
Note reading the logs via an exec operation can only be done if the Note reading the logs via an exec operation can only be done if the

View File

@ -34,7 +34,7 @@ correct a bug with template validation when using the "Fn::Join"
function). function).
Create the Glance Image Create the Glance Image
======================= -----------------------
After cloning the project, run the get-image.sh script from the After cloning the project, run the get-image.sh script from the
project's devenv directory: project's devenv directory:
@ -56,7 +56,7 @@ Add the image to your Glance image store:
--is-public True --progress --is-public True --progress
Create the Stack Create the Stack
================ ----------------
Copy local.yaml.example to local.yaml and edit the contents to match Copy local.yaml.example to local.yaml and edit the contents to match
your deployment environment. Here is an example of a customized your deployment environment. Here is an example of a customized
@ -101,7 +101,7 @@ And then create the stack, referencing that environment file:
$ heat stack-create -f kollacluster.yaml -e local.yaml kolla-cluster $ heat stack-create -f kollacluster.yaml -e local.yaml kolla-cluster
Access the Kolla Nodes Access the Kolla Nodes
====================== ----------------------
You can get the ip address of the Kolla nodes using the You can get the ip address of the Kolla nodes using the
``heat output-show`` command: ``heat output-show`` command:
@ -150,7 +150,7 @@ If you want to start a container set by hand use this template
$ docker-compose -f glance-api-registry.yml up -d $ docker-compose -f glance-api-registry.yml up -d
Debugging Debugging
========= ---------
All Docker commands should be run from the directory of the Docker All Docker commands should be run from the directory of the Docker
binaray, by default this is ``/``. binaray, by default this is ``/``.

44
docs/index.rst Normal file
View File

@ -0,0 +1,44 @@
..
Copyright 2014-2015 OpenStack Foundation
All Rights Reserved.
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.
Welcome to Kolla's Documentation!
=================================
Kolla provides Docker containers and Ansible playbooks to meet Kolla's mission.
Kolla is highly opinionated out of the box, but allows for complete
customization. This permits operators with little experience to deploy
OpenStack quickly and as experience grows modify the OpenStack configuration to
suit the operator's exact requirements.
Developer Info
==============
.. toctree::
:maxdepth: 1
dev-quickstart
ansible-deployment
devenv-vagrant
devenv-heat
Services in Kolla
=================
.. toctree::
:maxdepth: 1
cinder-guide
swift-readme

View File

@ -1,4 +1,4 @@
pbr<2.0,>=1.4 pbr<2.0,>=1.6
docker-py>=1.1.0 # Apache-2.0 docker-py>=1.1.0 # Apache-2.0
Jinja2>=2.6 # BSD License (3 clause) Jinja2>=2.6 # BSD License (3 clause)
gitdb>=0.6.4 # BSD License (3 clause) gitdb>=0.6.4 # BSD License (3 clause)

View File

@ -46,5 +46,5 @@ setup-hooks =
[build_sphinx] [build_sphinx]
all_files = 1 all_files = 1
build-dir = doc/build build-dir = docs/build
source-dir = docs source-dir = docs/

View File

@ -1,6 +1,7 @@
hacking>=0.10.0 hacking>=0.10.0
oslo.log>=1.0.0 # Apache-2.0 oslo.log>=1.0.0 # Apache-2.0
oslotest>=1.5.1 # Apache-2.0 oslotest>=1.5.1 # Apache-2.0
oslosphinx>=2.5.0 # Apache-2.0
PyYAML PyYAML
python-barbicanclient>=3.0.1 python-barbicanclient>=3.0.1
python-ceilometerclient>=1.0.6 python-ceilometerclient>=1.0.6
@ -11,6 +12,7 @@ python-keystoneclient>=1.1.0
python-neutronclient>=2.3.11,<3 python-neutronclient>=2.3.11,<3
python-novaclient>=2.18.0,!=2.21.0 python-novaclient>=2.18.0,!=2.21.0
python-swiftclient>=2.2.0 python-swiftclient>=2.2.0
sphinx!=1.2.0,!=1.3b1,<1.3,>=1.1.2
testrepository>=0.0.18 testrepository>=0.0.18
testscenarios>=0.4 testscenarios>=0.4
testtools>=0.9.36,!=1.2.0 testtools>=0.9.36,!=1.2.0

View File

@ -12,6 +12,9 @@ deps = -r{toxinidir}/requirements.txt
commands = commands =
flake8 flake8
[testenv:docs]
commands = python setup.py build_sphinx
[testenv:validate-contents] [testenv:validate-contents]
commands = commands =
{toxinidir}/tools/validate-all-json.sh {toxinidir}/tools/validate-all-json.sh