Update README.rst
Change-Id: I69ad8a7818244c565df09327fe41018826682e7d author: diane fleming
This commit is contained in:
parent
1027614cee
commit
287bc2c119
87
README.rst
87
README.rst
@ -1,4 +1,4 @@
|
|||||||
API-Site Repository
|
API-Site repository
|
||||||
+++++++++++++++++++
|
+++++++++++++++++++
|
||||||
|
|
||||||
This repository contains documentation for the OpenStack project.
|
This repository contains documentation for the OpenStack project.
|
||||||
@ -6,18 +6,20 @@ This repository contains documentation for the OpenStack project.
|
|||||||
For more details, see the `OpenStack Documentation wiki page
|
For more details, see the `OpenStack Documentation wiki page
|
||||||
<http://wiki.openstack.org/Documentation>`_.
|
<http://wiki.openstack.org/Documentation>`_.
|
||||||
|
|
||||||
It includes these manuals:
|
It includes these pages and PDFs:
|
||||||
|
|
||||||
* API Quick Start
|
* API Quick Start
|
||||||
* API Complete Reference
|
* API Complete Reference (web pages)
|
||||||
|
* API Reference PDFs
|
||||||
|
* API Guide (in progress)
|
||||||
|
|
||||||
In addition to these, this repository contains:
|
In addition to these, this repository contains:
|
||||||
|
|
||||||
* api.openstack.org: ``www``
|
* api.openstack.org: ``www``
|
||||||
|
|
||||||
|
|
||||||
Prerequisites
|
Prerequisites
|
||||||
=============
|
=============
|
||||||
|
|
||||||
`Apache Maven <http://maven.apache.org/>`_ must be installed to build the
|
`Apache Maven <http://maven.apache.org/>`_ must be installed to build the
|
||||||
documentation.
|
documentation.
|
||||||
|
|
||||||
@ -29,27 +31,64 @@ On Fedora 15 and later::
|
|||||||
|
|
||||||
yum install maven3
|
yum install maven3
|
||||||
|
|
||||||
Building
|
Build and update API docs
|
||||||
========
|
=========================
|
||||||
The manuals are in the ``api-quick-start`` and ``api-ref``
|
|
||||||
directories.
|
|
||||||
|
|
||||||
To build a specific guide, look for a ``pom.xml`` file within a subdirectory,
|
For more details about the Gerrit workflow, see `Gerrit Workflow <https://wiki.openstack.org/wiki/GerritWorkflow>`_.
|
||||||
then run the ``mvn`` command in that directory. For example::
|
|
||||||
|
To build and updates any of the API documents:
|
||||||
|
|
||||||
|
#. Open a Terminal window.
|
||||||
|
|
||||||
|
#. Change into a directory where you want to clone api-site.
|
||||||
|
|
||||||
|
#. Run this command to clone openstack/api-site::
|
||||||
|
|
||||||
|
git clone https://github.com/openstack/api-site
|
||||||
|
|
||||||
|
#. CD into the api-site directory.
|
||||||
|
|
||||||
|
#. Run these commands to ensure you have the latest changes::
|
||||||
|
|
||||||
|
git remote update
|
||||||
|
git checkout master
|
||||||
|
git pull origin master
|
||||||
|
|
||||||
|
#. To checkout a new branch::
|
||||||
|
|
||||||
|
git checkout -b "*my_branch*"
|
||||||
|
|
||||||
|
Otherwise, to checkout an existing review::
|
||||||
|
|
||||||
|
git review –d change-number /* where change-number is the change number of the review
|
||||||
|
|
||||||
|
#. Make your changes.
|
||||||
|
|
||||||
|
#. Run this command to build the docs locally::
|
||||||
|
|
||||||
cd api-quick-start
|
|
||||||
mvn clean generate-sources
|
mvn clean generate-sources
|
||||||
|
|
||||||
The generated PDF documentation file is::
|
#. To check in your changes, see `Gerrit Workflow <https://wiki.openstack.org/wiki/GerritWorkflow>`_.
|
||||||
|
|
||||||
api-quick-start/target/docbkx/webhelp/api-quick-start-onepager-external/api-quick-start-onepager.pdf
|
- The root of the generated HTML (API site) documentation is::
|
||||||
|
|
||||||
The root of the generated HTML documentation is::
|
api-site/api-ref/target/docbkx/html/api-ref.html
|
||||||
|
|
||||||
api-quick-start/target/docbkx/webhelp/api-quick-start-onepager-external/content/index.html
|
- The root of the generated API guide (in progress) is::
|
||||||
|
|
||||||
Testing of changes and building of the manual
|
api-site/api-guide/target/docbkx/webhelp/api-guide/index.html
|
||||||
=============================================
|
|
||||||
|
- The generated PDFs for the API pages are at::
|
||||||
|
|
||||||
|
api-site/api-ref-guides/target/docbkx/pdf/*.pdf
|
||||||
|
|
||||||
|
- The root of the API quick start is at::
|
||||||
|
|
||||||
|
api-site/api-quick-start/target/docbkx/webhelp/api-quick-start-onepager-external/api-quick-start-onepager.pdf
|
||||||
|
|
||||||
|
|
||||||
|
Run tests
|
||||||
|
=========
|
||||||
|
|
||||||
Install the python tox package and run ``tox`` from the top-level
|
Install the python tox package and run ``tox`` from the top-level
|
||||||
directory to use the same tests that are done as part of our Jenkins
|
directory to use the same tests that are done as part of our Jenkins
|
||||||
@ -68,8 +107,8 @@ these tests. openstack-doc-tools has a requirement on maven for the
|
|||||||
build check.
|
build check.
|
||||||
|
|
||||||
|
|
||||||
Contributing
|
Contribute
|
||||||
============
|
==========
|
||||||
|
|
||||||
Our community welcomes all people interested in open source cloud
|
Our community welcomes all people interested in open source cloud
|
||||||
computing, and encourages you to join the `OpenStack Foundation
|
computing, and encourages you to join the `OpenStack Foundation
|
||||||
@ -89,12 +128,12 @@ If you would like to contribute to the documents, please see the
|
|||||||
Bugs
|
Bugs
|
||||||
====
|
====
|
||||||
|
|
||||||
Bugs should be filed on Launchpad, not GitHub:
|
Bugs should be filed on Launchpad, and not GitHub:
|
||||||
|
|
||||||
https://bugs.launchpad.net/openstack-api-site/
|
https://bugs.launchpad.net/openstack-api-site/
|
||||||
|
|
||||||
|
|
||||||
Installing
|
Install
|
||||||
==========
|
=======
|
||||||
Refer to http://docs.openstack.org to see where these documents are published
|
|
||||||
and to learn more about the OpenStack project.
|
See `OpenStack <http://www.openstack.org/>`_ to learn more about the OpenStack project.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user