rearrange content to fit the new standard layout
Part of doc-migration work The proposed document strucutre is documented at: http://specs.openstack.org/openstack/docs-specs/specs/pike/os-manuals-migration.html Change-Id: Idea4f21bb66fbdf4b4f8925f2260f43374a108f3
This commit is contained in:
@@ -1,17 +1,14 @@
|
|||||||
If you would like to contribute to the development of OpenStack, you must
|
If you would like to contribute to the development of OpenStack, you must
|
||||||
follow the steps in this page:
|
follow the steps in this page:
|
||||||
|
http://docs.openstack.org/infra/manual/developers.html
|
||||||
http://docs.openstack.org/infra/manual/developers.html
|
|
||||||
|
|
||||||
If you already have a good understanding of how the system works and your
|
If you already have a good understanding of how the system works and your
|
||||||
OpenStack accounts are set up, you can skip to the development workflow
|
OpenStack accounts are set up, you can skip to the development workflow
|
||||||
section of this documentation to learn how changes to OpenStack should be
|
section of this documentation to learn how changes to OpenStack should be
|
||||||
submitted for review via the Gerrit tool:
|
submitted for review via the Gerrit tool:
|
||||||
|
http://docs.openstack.org/infra/manual/developers.html#development-workflow
|
||||||
http://docs.openstack.org/infra/manual/developers.html#development-workflow
|
|
||||||
|
|
||||||
Pull requests submitted through GitHub will be ignored.
|
Pull requests submitted through GitHub will be ignored.
|
||||||
|
|
||||||
Bugs should be filed on Launchpad, not GitHub:
|
Bugs should be filed on Launchpad, not GitHub:
|
||||||
|
https://bugs.launchpad.net/neutron-lib
|
||||||
https://bugs.launchpad.net/neutron-lib
|
|
||||||
|
@@ -1,7 +1,8 @@
|
|||||||
============
|
============
|
||||||
Contributing
|
Contributing
|
||||||
============
|
============
|
||||||
.. include:: ../../CONTRIBUTING.rst
|
|
||||||
|
.. include:: ../../../CONTRIBUTING.rst
|
||||||
|
|
||||||
As your code is subject to the `review guidelines <./review-guidelines.html>`_,
|
As your code is subject to the `review guidelines <./review-guidelines.html>`_,
|
||||||
please take the time to familiarize yourself with those guidelines.
|
please take the time to familiarize yourself with those guidelines.
|
||||||
@@ -25,7 +26,7 @@ The rehoming workflow procedure has four main phases:
|
|||||||
Phase 1: Rehome
|
Phase 1: Rehome
|
||||||
~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
#. Identify the chunk of code for rehoming. Applicable code includes common
|
#. Identify the chunk of code for rehoming. Applicable code includes common
|
||||||
classes/functions/modules/etc. that are consumed by networking project(s) outside of
|
classes/functions/modules/etc. that are consumed by networking project(s) outside of
|
||||||
neutron. Optimal consumption patterns of the code at hand must also be considered to
|
neutron. Optimal consumption patterns of the code at hand must also be considered to
|
||||||
ensure the rehomed code addresses any technical debt. Finally, leave low-hanging
|
ensure the rehomed code addresses any technical debt. Finally, leave low-hanging
|
||||||
@@ -33,11 +34,11 @@ Phase 1: Rehome
|
|||||||
about the applicability of code for rehoming, reach out to one of the neutron core
|
about the applicability of code for rehoming, reach out to one of the neutron core
|
||||||
developers before digging in.
|
developers before digging in.
|
||||||
|
|
||||||
#. Find and identify any unit tests for the code being rehomed. These unit tests
|
#. Find and identify any unit tests for the code being rehomed. These unit tests
|
||||||
can often be moved into neutron-lib with minimal effort. After inspecting the
|
can often be moved into neutron-lib with minimal effort. After inspecting the
|
||||||
applicable unit tests, rewrite any that are non-optimal.
|
applicable unit tests, rewrite any that are non-optimal.
|
||||||
|
|
||||||
#. Search and understand the consumers of the code being rehomed. This must include other
|
#. Search and understand the consumers of the code being rehomed. This must include other
|
||||||
networking projects in addition to neutron itself. At this point it may be determined
|
networking projects in addition to neutron itself. At this point it may be determined
|
||||||
that the code should be refactored before it is consumed. There are a few common
|
that the code should be refactored before it is consumed. There are a few common
|
||||||
strategies for refactoring, and the one chosen will depend on the nature of the code
|
strategies for refactoring, and the one chosen will depend on the nature of the code
|
||||||
@@ -50,20 +51,20 @@ Phase 1: Rehome
|
|||||||
as-is into a private module according to our `conventions <./conventions.html>`_. This
|
as-is into a private module according to our `conventions <./conventions.html>`_. This
|
||||||
approach is slower, but may be necessary in some cases.
|
approach is slower, but may be necessary in some cases.
|
||||||
|
|
||||||
#. Understand existing work underway which may impact the rehomed code, for example,
|
#. Understand existing work underway which may impact the rehomed code, for example,
|
||||||
in-flight patch sets that update the code being rehomed. In some cases it may make
|
in-flight patch sets that update the code being rehomed. In some cases it may make
|
||||||
sense to let the in-flight patch merge and solidify a bit before rehoming.
|
sense to let the in-flight patch merge and solidify a bit before rehoming.
|
||||||
|
|
||||||
#. Prepare the code for neutron-lib. This may require replacing existing imports
|
#. Prepare the code for neutron-lib. This may require replacing existing imports
|
||||||
with those provided by neutron-lib and/or rewriting/rearchitecting non-optimal
|
with those provided by neutron-lib and/or rewriting/rearchitecting non-optimal
|
||||||
code (see above). The interfaces in the rehomed code are subject to our
|
code (see above). The interfaces in the rehomed code are subject to our
|
||||||
`conventions <./conventions.html>`_.
|
`conventions <./conventions.html>`_.
|
||||||
|
|
||||||
#. Prepare the unit test code for neutron-lib. As indicated in the `review guidelines
|
#. Prepare the unit test code for neutron-lib. As indicated in the `review guidelines
|
||||||
<./review-guidelines.html>`_ we are looking for a high code coverage by tests. This may
|
<./review-guidelines.html>`_ we are looking for a high code coverage by tests. This may
|
||||||
require adding additional tests if neutron was lacking in coverage.
|
require adding additional tests if neutron was lacking in coverage.
|
||||||
|
|
||||||
#. Submit and shepherd your patch through its neutron-lib review. Include a
|
#. Submit and shepherd your patch through its neutron-lib review. Include a
|
||||||
`release note <http://docs.openstack.org/developer/reno/>`_ that describes the code's
|
`release note <http://docs.openstack.org/developer/reno/>`_ that describes the code's
|
||||||
old neutron location and new neutron-lib location. Also note that in some cases it makes
|
old neutron location and new neutron-lib location. Also note that in some cases it makes
|
||||||
sense to prototype a change in a consumer project to better understand the impacts of
|
sense to prototype a change in a consumer project to better understand the impacts of
|
36
doc/source/contributor/index.rst
Normal file
36
doc/source/contributor/index.rst
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
..
|
||||||
|
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.
|
||||||
|
|
||||||
|
Convention for heading levels in Neutron lib devref:
|
||||||
|
======= Heading 0 (reserved for the title in a document)
|
||||||
|
------- Heading 1
|
||||||
|
~~~~~~~ Heading 2
|
||||||
|
+++++++ Heading 3
|
||||||
|
''''''' Heading 4
|
||||||
|
(Avoid deeper levels because they do not render well.)
|
||||||
|
|
||||||
|
|
||||||
|
Contributor Guide
|
||||||
|
=================
|
||||||
|
|
||||||
|
In the Contributor Guide, you will find information on the Neutron Library
|
||||||
|
components and in how to use them, from a development standpoint.
|
||||||
|
|
||||||
|
.. toctree::
|
||||||
|
:maxdepth: 2
|
||||||
|
|
||||||
|
conventions
|
||||||
|
review-guidelines
|
||||||
|
contributing
|
||||||
|
releasing
|
||||||
|
internals
|
@@ -19,16 +19,10 @@
|
|||||||
''''''' Heading 4
|
''''''' Heading 4
|
||||||
(Avoid deeper levels because they do not render well.)
|
(Avoid deeper levels because they do not render well.)
|
||||||
|
|
||||||
|
=====================
|
||||||
Developer Guide
|
|
||||||
===============
|
|
||||||
|
|
||||||
In the Developer Guide, you will find information on the Neutron Library
|
|
||||||
components and in how to use them, from a development standpoint.
|
|
||||||
|
|
||||||
|
|
||||||
Neutron Lib Internals
|
Neutron Lib Internals
|
||||||
---------------------
|
=====================
|
||||||
|
|
||||||
.. toctree::
|
.. toctree::
|
||||||
:maxdepth: 3
|
:maxdepth: 3
|
||||||
|
|
||||||
@@ -37,20 +31,3 @@ Neutron Lib Internals
|
|||||||
api_converters
|
api_converters
|
||||||
api_validators
|
api_validators
|
||||||
callbacks
|
callbacks
|
||||||
|
|
||||||
|
|
||||||
Module Reference
|
|
||||||
----------------
|
|
||||||
.. toctree::
|
|
||||||
:maxdepth: 3
|
|
||||||
|
|
||||||
.. todo::
|
|
||||||
|
|
||||||
Add in all the big modules as automodule indexes.
|
|
||||||
|
|
||||||
|
|
||||||
Indices and tables
|
|
||||||
------------------
|
|
||||||
|
|
||||||
* :ref:`genindex`
|
|
||||||
* :ref:`search`
|
|
@@ -11,8 +11,8 @@
|
|||||||
License for the specific language governing permissions and limitations
|
License for the specific language governing permissions and limitations
|
||||||
under the License.
|
under the License.
|
||||||
|
|
||||||
Welcome to Neutron Lib developer documentation!
|
Welcome to Neutron Lib documentation!
|
||||||
===============================================
|
=====================================
|
||||||
|
|
||||||
Neutron-lib is an OpenStack library project used by Neutron, Advanced Services,
|
Neutron-lib is an OpenStack library project used by Neutron, Advanced Services,
|
||||||
and third-party projects that aims to provide common functionality across all
|
and third-party projects that aims to provide common functionality across all
|
||||||
@@ -39,24 +39,10 @@ The `Neutron Development wiki`_ is also a good resource for new contributors.
|
|||||||
|
|
||||||
Enjoy!
|
Enjoy!
|
||||||
|
|
||||||
|
|
||||||
Programming HowTos and Tutorials
|
|
||||||
--------------------------------
|
|
||||||
.. toctree::
|
.. toctree::
|
||||||
:maxdepth: 3
|
:maxdepth: 2
|
||||||
|
|
||||||
conventions
|
install/index
|
||||||
installation
|
user/index
|
||||||
usage
|
contributor/index
|
||||||
review-guidelines
|
reference/index
|
||||||
contributing
|
|
||||||
releasing
|
|
||||||
|
|
||||||
|
|
||||||
Developer Docs
|
|
||||||
==============
|
|
||||||
|
|
||||||
.. toctree::
|
|
||||||
:maxdepth: 1
|
|
||||||
|
|
||||||
devref/index
|
|
||||||
|
34
doc/source/reference/index.rst
Normal file
34
doc/source/reference/index.rst
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
..
|
||||||
|
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.
|
||||||
|
|
||||||
|
Convention for heading levels in Neutron lib devref:
|
||||||
|
======= Heading 0 (reserved for the title in a document)
|
||||||
|
------- Heading 1
|
||||||
|
~~~~~~~ Heading 2
|
||||||
|
+++++++ Heading 3
|
||||||
|
''''''' Heading 4
|
||||||
|
(Avoid deeper levels because they do not render well.)
|
||||||
|
|
||||||
|
================
|
||||||
|
Module Reference
|
||||||
|
================
|
||||||
|
|
||||||
|
.. toctree::
|
||||||
|
:maxdepth: 1
|
||||||
|
|
||||||
|
.. todo::
|
||||||
|
|
||||||
|
Add in all the big modules as automodule indexes.
|
||||||
|
|
||||||
|
* :ref:`genindex`
|
||||||
|
* :ref:`search`
|
@@ -1,14 +1,6 @@
|
|||||||
========
|
==============
|
||||||
Usage
|
|
||||||
========
|
|
||||||
|
|
||||||
To use neutron-lib in a project::
|
|
||||||
|
|
||||||
import neutron_lib
|
|
||||||
|
|
||||||
|
|
||||||
Hacking Checks
|
Hacking Checks
|
||||||
--------------
|
==============
|
||||||
|
|
||||||
The ``neutron_lib.hacking`` package implements a number of public
|
The ``neutron_lib.hacking`` package implements a number of public
|
||||||
`hacking checks <https://github.com/openstack-dev/hacking>`_ intended to help
|
`hacking checks <https://github.com/openstack-dev/hacking>`_ intended to help
|
8
doc/source/user/index.rst
Normal file
8
doc/source/user/index.rst
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
=====
|
||||||
|
Usage
|
||||||
|
=====
|
||||||
|
|
||||||
|
.. toctree::
|
||||||
|
:maxdepth: 2
|
||||||
|
|
||||||
|
hacking
|
Reference in New Issue
Block a user