39 Commits

Author SHA1 Message Date
Frank Kloeker
138fdef0a6 Build translated docs in tox
As an early bird for project doc translation we build translated docs
here with an extra script. This procedure is usual in the main doc
project, but there are different versions of the same script.
Later we to centralize such things.

Change-Id: I906be044021c93b9aeb644bcd3c550df123a3c83
2018-10-08 17:19:10 +00:00
Frank Kloeker
9553e89e62 Remove non-working dynamic build of AIO scenario table
this disturbs still the translation job, so it's better to remove
the table, the content is already explained in the text
see: http://logs.openstack.org/periodic/git.openstack.org/openstack/openstack-ansible/master/propose-translation-update/d81e86d/job-output.txt.gz#_2018-09-16_06_23_07_166358

Change-Id: I129ebbeb40bc5d32ba01701b115437a1f0e9e625
2018-09-16 10:49:29 +02:00
Frank Kloeker
86fa326a0d Move dynamic documentation into extra directory (1/2)
This should solve translation import job error:
http://logs.openstack.org/periodic/git.openstack.org/openstack/openstack-ansible/master/propose-translation-update/561dd40/job-output.txt.gz#_2018-09-14_06_12_49_943140

Change-Id: I89298cc4fe39b866d307569276d7460625bf9e5e
2018-09-15 10:52:18 +02:00
Florian Haas
6e8904062f Update docs & upgrade scripts for Stein
Closes-Bug: #1790158
Change-Id: I37d8c90dedf0cf9e36c913ba7541440b9964e631
2018-09-04 17:20:29 +01:00
wangqi
40771a06c0 Replace deprecated library function os.popen() with subprocess
os.popen() is deprecated since version 2.6. Resolved with use of
subprocess module.

Change-Id: I895f12807b3823f649369f27495c9182f01a7a14
2018-05-17 13:44:15 +00:00
Jean-Philippe Evrard
90eb562645 [Docs] Fix docs for latest openstackdocstheme
The latest openstackdocs theme is now providing defaults for
project name, version. We shouldn't ship this in our code.

Change-Id: I7943b5bae40515d260be21edd82284e9638880b0
2018-03-29 18:34:50 +00:00
Zuul
916a98b69c Merge "[Docs] Fix doc building idempotency" 2018-03-17 05:27:09 +00:00
Jean-Philippe Evrard
8c94cf57c4 [Docs] Fix doc building idempotency
When running the doc building a new scenario was generated,
and appened to the scenario-table-gen.html page. We should instead
generate that page from scratch, and ensure it's always the
same content. This doesn't clean the scenario table gen, it simply
makes sure the generated content is always ordered the same way.

Change-Id: I9098f5d76b73be5ef28684027ff5039cd52d6ddb
2018-03-15 17:35:41 +00:00
Jean-Philippe Evrard
6442320b24 [Docs] Simplify and fix docs configuration
The documentation has currently multiple problems:
- The top left tag of the openstacktheme isn't consistent with
  the latest available tag, which confuses people (see
  related bug)
- There are unused variables that could deserve cleanup
- There are static content that can be discovered from files
- We don't leverage the dynamic nature of the configuration for
  conditional upgrade messages, while we should.

Change-Id: If8776ee54fda5cdcc27be36e2031150914aa32b2
Related-Bug: #1755241
2018-03-15 14:36:31 +00:00
Jean-Philippe Evrard
dc8d6256ce [Docs] Move AIO to first scenario
With the ability to now have scenarii as first class citizens, we
can move the AIO.

Change-Id: I7d21bc49128b49bd6b2e6cf1b31938f1b81706d6
2018-02-20 14:14:41 +00:00
Jean-Philippe Evrard
134ec81016 [Docs] Uniform landing text
When using the external links, we are sometimes referring with
the full link, sometimes with the macro. This standardizes to
use the proper macro links.

Change-Id: I9ce0df5d7d6348c5e0b01877ec259d36f9988067
2018-02-20 13:21:14 +00:00
Jean-Philippe Evrard
f391d52e2f Bump upstream SHAs
Bumping shas to head of stable/queens. For projects that don't
have that branch yet, a reminder was written on the same line as
the SHA.

Updates documentation to the appropriate branching.

On top of that:
- Placement API now only accepts GET, not HEAD
- Placement API now returns HTTP 200
- Designate returns the API versions under /, not under
  /versions [1]
- Cloudwatch was disabled upstream [2], so all references are
  removed.

[1]: https://developer.openstack.org/api-ref/dns/
[2]: https://bugs.launchpad.net/heat/+bug/1743707

Change-Id: I29e63008bf5c3cd8ed2deb8dcd13bc6a988891f5
2018-02-13 13:24:59 +00:00
Jesse Pretorius
e8abf19647 Fix sources-branch-updater and add docs
Problems resolved:

- Errors relating to 'etc' folders which did not exist in the
  target repositories have been eliminated.

- Some repositories were not being excluded from evaluation
  for file/template updates. All appropriate exclusions are
  now implemented.

- If an OSA role repository did not have the required folder
  to copy rootwrap files into, the copy would fail and the
  rootwrap files therefore be left out of the patch.

- When executed on Mac OS X, python2 is not found.

- Documentation is added to describe how to use the script
  to handle periodic SHA bumps.

Change-Id: I628cd2c3156d118c17ca2f90d4ccf0bc5a080bbf
2018-01-15 12:29:19 +00:00
Jimmy McCrory
c5551f2c8c Move inventory files to folder in root of repo
Move the playbooks/inventory folder, group_vars, and host_vars to
inventory/ in the root of the OpenStack-Ansible repo. This helps better
organize the repo structure since playbooks/ will now only contain
playbooks, shared task files, and included repo package var files.

group_vars and host_vars are moved alongside the inventory since that's
the default place that Ansible expects those folders and to help better
prepare for Ansible 2.4 where multiple inventories can be loaded,
automatically including relative group and host var files.

Effected docs, scripts, and variables have been updated with the new
paths.

Change-Id: If50e2412c3fd6575d7041deb8ecc9480b04184cc
2017-12-16 02:34:33 -08:00
Kevin Carter
fdf33902c2 Add dynamic table for our tested Scenarios
This change adds in a dynamic table to our documentation so that we're
able to generate a table of all available scenarios and mark where
services are tested within. To make the dynamic scenario generation
easier the AIO scenario conf setup has been moved into it's own variable
file.

The file doc/source/contributor/scenario-table-gen.html has been touched
allowing sphinx to import and generate the required table as needed.

Change-Id: Ief5d180491d3a330890d6bfa06d43f565dd26103
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2017-11-22 05:07:59 +00:00
Marc Gariepy
f828133438 Fix variable def.
current_release_branch_name is already defined a few line above, it's
not needed there.

Change-Id: Ib92602b24bd6abd8d428d455c427352de5521aac
Closes-Bug: #1717500
2017-09-19 10:51:44 -04:00
Jesse Pretorius
ae96fb100c Update documentation redirects
In order to ensure that the deploy guide and
other doc references point to the right places
we update the URL's accordingly.

Change-Id: I8360c47d108ac673ed744c659ba9d34a3ef4c33e
Closes-Bug: #1711108
2017-08-29 18:14:23 +01:00
Jesse Pretorius
956e829111 Update docs/tooling for Queens
In the upgrade tooling and the docs references we use
the series name in a few places. This updates them all
for development in the Queens cycle.

In the docs there are many references to Ocata manuals
which are left alone as the upstream Pike docs have not
been published yet.

Change-Id: Ice2169bd40f5712dd9ec9a9eb946fe0244f32294
2017-08-23 09:08:32 +00:00
Jesse Pretorius
315780f350 March to the beat of the new docs drum
Boss drum, motivating rhythm of life with the
healing, rhythmic synergy.

More seriously, this patch re-arranges the
documentation structure to conform to the
structure outlined in [1].

With it, some changes are made to effectively
transition the links and simplify the sphinx
configuration.

The Mitaka/Liberty documentation links are
removed as they are no longer available.

[1] http://specs.openstack.org/openstack/docs-specs/specs/pike/os-manuals-migration.html
Change-Id: Icc985de3af4de5ea7a5aa01b6e6f6e524c67f11b
2017-07-05 09:13:13 +00:00
liuxiaoyang
324857eaf5 Block comment should start with '# '
Each line of a block comment starts with a # and a single space.

Change-Id: Ib52023f906513c7e3e27543b4957999d84b44d08
2017-06-20 14:07:31 +08:00
Jean-Philippe Evrard
5afc0aa13c [DOCS] Have different release/git branch name
git checkout master is release Pike.
Therefore git branch name != release branch name and
git branch name != stable/git branch name.

Therefore we introduce another config item for generating this.

Change-Id: Ied955d318f3dbf9d4d30a8ac56f61abb1734a63d
2017-04-18 08:46:47 +00:00
Jesse Pretorius
ef70b6f64a [docs] Update doc references for Ocata/Pike
Change-Id: I098801b25e8c390b4157a57596431ed4b78e3a38
2017-03-08 18:04:18 +00:00
gecong1973
a687052023 Use https instead of http for git.openstack.org
TrivialFix

Change-Id: Ia69034ea3b571e88d6e8e9f12c3b974bb81e4bb2
2017-02-06 11:53:49 +08:00
Nolan Brubaker
a1a25002ba Add conditional branch names for docs links
Since the deploy guide moved to a separate directory structure, relative
links throughout the docs have been pointing to nothing. This change
applies some logic to figure out the correct format for URLs based on
the current branch and the deploy guide/dev docs conventions.

The actual link generation is done via the sphinx.ext.extlinks
extension, which allows for defining custom link generation roles. This
achieves the desired behavior in terms of dynamic link construction, but
does alter the standard linking conventions.

Another side effect is that docs generate this way will always point
to the live URLs, not to HTML generated for a gate job. It may be
worthwhile using relative links within the deploy guide/developer docs
and only using these automatic external ones for cross-references.

Usage for dev docs looks like this:

    :dev_docs:`Link title text <last-part-of-url.html>`

And for the deploy guide:

    :deploy_guide:`Link title text <last-part-of-url.html>`

Some examples inline have been provided, to demonstrate how these fit in
different contexts.

Some small code style fixes are also included.

Change-Id: I4d065f1f2d7c1372f3f829ab9e5297d5028f2ee6
2017-01-10 13:04:22 -05:00
Jesse Pretorius
929034d328 [docs] Update branch names for Ocata
This patch adjust the branch names for Ocata to ensure that
the install guide and upgrade guide references are correct.

Also, the word TAG is replaced with the substitution reference
to ensure that the latest tag is always shown once the docs
move into a stable branch.

Finally, the developer note regarding the supported platform
for an AIO has been updated to reflect the Newton platform
support.

Change-Id: I1a8464917343c9533fe5698ab8da18bf1e1529d7
2016-11-03 15:51:39 +00:00
Jimmy McCrory
2869cc8973 [DOCS] Adjust watermark color
The default watermark color is distracting and makes the content
difficult to read. Tone it down to a light gray.

Change-Id: I2ca547dca93f89edb1416ac44169749028037621
2016-10-05 12:33:40 -07:00
Nish Patwa
62028d063e [DOCS] Added release-name as a watermark to Docs.
Added a water mark to install-guide, developer-docs, upgrade-guide
and releasenotes to make clear to deployers which release they're
working with.

Modified conf.py that adds watermark to the documentation according
to particular branch. If the current branch is master than
watermark is 'Pre-release' and if the current branch is
stable/<release-name> than watermark is <release-name>.

As global-requirements does not have sphinxmark included in
stable/newton [1], the requirements is added in tox.ini.

I will replicate this patch to all the role documentation once its
gets merged to master.

[1] https://review.openstack.org/376429

Closes-Bug:1624489
Change-Id: If454938abb4990764076436cd428673b456eab3c
2016-09-28 12:00:42 +00:00
Jesse Pretorius
10a7d80b79 [docs] Resolve errors and simplify sphinx config
This patch does the following:

- Simplifies the sphinx configuration introduced in
  https://review.openstack.org/371722 to reduce the
  number of variables involved. The variables are
  also ordered in the same way everywhere to make it
  easier to read and troubleshoot.

- Simplifies some of the CLI guides to be more explicit
  about the tag to checkout when cloning the git repo.

- Cleaned up some references which went to non-existant
  documents.

- Added a link to the networking appendix.

- As per https://review.openstack.org/369650 the
  backup directory for the upgrade process is now
  the name of the source version the upgrade process is
  working with.

Change-Id: Iee30a32f99a66d9facb049311cadf1b9a8b2170e
2016-09-19 15:28:58 +00:00
Nish Patwa
39280be7dd [DOCS] Added dynamic content to Upgrade guide from conf.py
Modified conf.py that replaces certain variables with the strings
as per the release name. Thus it makes easier to update the document
whenever release changes.

Closes-Bug: 1620275

Change-Id: I3b9457fc9e193e6a4b417d935b8588b4d0a7e450
2016-09-18 19:46:42 +00:00
Nolan Brubaker
f7babef5bb Implement inventory API docs
The docstrings for public functions within dynamic_inventory.py are
passed through Sphinx and added to the inventory documentation page.

This change also corrects some of the syntax for the docstrings to fix
warnings and errors.

Change-Id: Ic461b5cff1351111ce3221093f1d6627d2b10aab
2016-08-21 00:11:26 +00:00
root
b921676523 [DOC] Modified conf.py to fetch the latest tag automatically
Closes-Bug: 1611957
Change-Id: Ia0efaa57addb9ce1dee05509260e6694874a4104
2016-08-12 14:46:08 +00:00
Jesse Pretorius
78369112b9 Resolve 'E501 line too long' linters error
Change-Id: I30201bbcbf41d07b6ddf3f4d6f67747c76b1ce1a
2016-07-15 11:44:34 +01:00
Jesse Pretorius
03041378f2 Docs: Implement Manuals Theme and doc8 checks
This patch implements:

- The OpenStack Manuals documentation theme.
- Some minor content changes to the index pages to ensure
  that they render correctly.
- Adjustments to the tox/requirements configuration in order
  to implement doc8 checks to facilitate improved documentation
  checking for incoming patches.
- Adjustments to the sphinx configuration for easier
  maintenance.

Note:
The bug_title in the openstackdocstheme is not currently
customisable. A patch to implement the ability to do so
has been submitted: https://review.openstack.org/338299

Partially-Implements: blueprint osa-install-guide-overhaul
Change-Id: I8af1a7ce9008e70abad00be96614c9997f59596b
2016-07-10 00:30:22 +01:00
Jesse Pretorius
57b2114d7d Doc: Remove 'indices and tables' and correctly spell OpenStack-Ansible
This updates the use of OpenStack-Ansible in various docs to ensure that they
are all correctly capitalised.

This also removes 'indices and tables' from the Dev Docs as none of the links
work.

Change-Id: I30a16a2d6d6ac355c794de563afd4b3f661a9b32
2016-01-22 16:58:51 +00:00
Jesse Pretorius
21b9fda88a Add theme fix for browsable source code
This adds a fix to ensure that the published docs have the correct
link to the browsable source code as implemented in
https://review.openstack.org/236091

It also includes an exclusion of the doc directory from the pep8
check as the documentation conf.py requires the lengthy line.

It also updates the dev-requirements for the docs jobs to ensure
that the requirements are in line with upstream.

Change-Id: I52b5ede12667cf454d99a053e20eba4461b8ee75
2015-10-21 16:37:24 +01:00
Kevin Carter
35ec780515 Rename everything for the osad to osa name change
This change updates all fo the names that we were using to the post
openstack migration name for openstack-ansible.

Change-Id: I6524af53ed02e19a0f56908e42a65d2dae8b71e3
2015-09-12 02:31:21 +01:00
David Stanek
0ec3ce3d31 Uses tox for automating documentation builds
Change-Id: I8012889aa6938378b5e5e85fb443cf13be460d61
Closes-Bug: #1469870
2015-08-12 06:32:40 +01:00
kevin
f9f907732e Port basic installation guide
Convert RPC installation guide from DocBook to RST,
remove content specific to Rackspace, and create initial
OSAD installation guide.

Change-Id: I3eedadc8ba441b4d931720dd6e3f7f3489302a9c
Co-Authored-By: Matt Kassawara <mkassawara@gmail.com>
2015-06-11 09:17:56 -05:00
Nolan Brubaker
9012a748d3 Add Sphinx machinery and initial docs.
This commit gets the doc directory and Sphinx configuration started.

Further documentation will depend on the Sphinx files and the index.rst
file at the very least.

The dev-requirements were updated to install Sphinx, and a gating script
was added to do the building for when we move to actually do gating on
the docs. The docs gate script is currently set to treat warning as
errors.

Change-Id: I977a2e53f1b0981cbc702ac53f2198d9f6a9da9d
Implements: blueprint developer-docs
2015-05-14 10:50:05 -04:00