97 Commits

Author SHA1 Message Date
KATO Tomoyuki
b80b303178 remove unused path from checkniceness ignore-path
Change-Id: I7366882be2c45eece3608bc7bb1c00507822b559
2016-07-21 23:52:54 +09:00
Andreas Jaeger
5fe5fedd48 Revert "Add zuul-cloner-test environment"
Testing was done successfully.

This reverts commit d50faa7acdb3dd91194122ebfe21df5e9809144c.

Change-Id: Ifa339785f1e9d73ee45ffb91faad90f5db2d4143
2016-07-17 14:06:27 +00:00
Andreas Jaeger
d50faa7acd Add zuul-cloner-test environment
This is needed for some OpenStack CI testing, it will be removed once
the job is working correctly.

Related Change: I7343d54185a896b847d6340532bdab22465e98f0
Change-Id: Ib6d45031866790ee73000cf514e1263a7e8dff69
2016-07-15 08:17:43 +02:00
KATO Tomoyuki
31b31410f9 Factor out Install Guide for Debian with debconf
To simplify the build tool chain,
factor out Install Guide for Debian with debconf.
Continueously, keep Install Guide for Debian without debconf
in the doc/install-guide directory. Also, use the contents
at doc/install-guide as possible for consistency.

On the following patches, clean up doc/install-guide sources
to cleanup the contents and build tool chains.

Change-Id: I8df6b3b382137d08d60f85bc41bcd98ac1f4eb47
2016-05-19 17:37:53 +09:00
KATO Tomoyuki
07396af70a Remove work around for fix released problem
Change-Id: I7478cc99adec8c1f421c043fd2daaba6ef4ca913
2016-05-05 19:59:27 +09:00
Andreas Jaeger
48b407ef99 Cleanup tox environment
Since we do not build DocBook XML anymore, we have removed the jobs for
this and thus can remove the support for these also from tox.ini.

checksyntax, checklinks and checkdeletions are DocBook XML only targets,
so remove them.

Change-Id: Iaa663c03fd6e2976208e20ba03dbab4d8d82b2ce
Depends-On: I9f5944eb9db06fe2ff9088f22048c198b2921237
2016-05-02 10:05:41 +02:00
Andreas Jaeger
ed100316b4 Convert glossary to RST
We do not need the DocBook XML glossary anymore, since we do not build
any DocBook guides that use it.

Add instead the RST version of the document to git.
Adjust scripts to not build or publish the glossary anymore.

Change-Id: Id4bfef7666690e6d08291f664751db7a4d4d5983
2016-05-02 09:20:30 +02:00
Andreas Jaeger
6a01aa42d1 Prepare releasenotes for publishing
Move release notes into releasenotes and add tox target so that
infra scripts will publish them to
docs.openstack.org/releasenotes/openstack-manuals

Infra change: Icbe135e37c78e0a3a1c6d3243f7128c0b881325d

Note that the directory layout here is this way on purpose - we want to
reuse the same jobs other repos use, just the difference is we're not
using reno for this.

Change-Id: I00a53d8b3d9bef28b480be22af2e6647fa26448a
2016-03-18 12:46:15 +01:00
zhangguoqing
ee6853461a [install-guides] make pipeline configuration actual one line
"pipeline" must be only one line in ceilometer-swift.rst, which it
easy to misguide deployer to four lines before this patch set.

Change-Id: I2c2af5d026b335394660780913c9bbb2392e3b7c
2016-03-17 22:52:18 +08:00
KATO Tomoyuki
f6ce6bd328 Rename common-rst to common
Keep the sync target repo path "common-rst" as of now.

Change-Id: I552d2c0a422c4824632b11fa273629004b889306
2016-02-11 21:18:59 +09:00
Matthew Kassawara
6e74e65392 [network] Preparation for Liberty/Mitaka updates
Prepare the networking guide for Liberty/Mitaka updates as
follows:

1) Change "legacy" to "classic" to provide a more positive
   connotation of such scenarios. Legacy should refer to
   nova-network.
2) Replace underscore with hyphen in filenames to meet
   conventions.
3) Replace :doc: with :ref: to minimize impact of future
   file renames.

Change-Id: I95bdd84b4a01cd9cbd06cad66821ad810295394f
backport: Liberty
2016-01-14 06:58:29 -07:00
chenghang
fb75840d3c Fix typo in tox.ini
tox.ini Line:133
lineos -> linenos

Change-Id: If2b19b065bec2c1b6ee9e30ffb75fa03e9bcb0a9
2015-12-31 10:51:11 +00:00
Andreas Jaeger
cbeb4d5c5b Revert "Add reno for release-notes"
As discussed via email, let's do this on a smaller scale.

This reverts commit 9432a6da0cc341a879bc6f4ac48380248355e77a.

Change-Id: I27e9cd06c5d69917abe452e873873683e10c282a
2015-11-10 14:49:13 +00:00
Andreas Jaeger
9432a6da0c Add reno for release-notes
Add renote to automatically generate release notes - the same way other
OpenStack projects do it.
For details see
http://lists.openstack.org/pipermail/openstack-dev/2015-November/078301.html

Change-Id: Iac8f34ae3490b7788c989b17be3e6a616e65c676
2015-11-07 17:34:29 +01:00
Christian Berendt
08b31a9c18 tox: add a generic environment to build a RST guide
With this environment it is possible to build a single RST guide with
the following common: tox -e build -- NAME

E.g. to build the contributor guide run the following command:

tox -e build -- contributor-guide

Change-Id: I94cf504eece14b2b8d2734cb5b4c16a1b409026f
2015-10-08 19:30:11 +02:00
Andreas Jaeger
34823b69ff Enhance generatepot-rst for reuse
Enhance file so that it can be used by other documentation repos as
well.
Update invocation of it.

Change-Id: I93a6d8ccb8c314c0961b87a239462183712cdd26
2015-10-06 20:11:17 +02:00
Andreas Jaeger
8750c28ab1 Set giturl for openstackdocstheme 1.2.3
Also whitelist conf.py by flake8.

Co-Authored-By: Bernd Bausch <berndbausch@gmail.com>
Change-Id: I9899fde4586a44aa4dd4e48402a3f25933bebc4a
2015-10-06 13:45:57 +02:00
Christian Berendt
721139f880 Add environments to build install guides individually
Change-Id: I0741098b99c4d05cb38cf38a604f549f21a49916
2015-09-16 19:36:20 +02:00
Andreas Jaeger
0c8798bf2d Add linkcheck for RST
Check RST files for valid links.

This is a separte target for now to evaluate how useful it is.
Whitelist build.opensuse.org URL for user-guide.
Remove also checklang from default tox invocation since it's not needed
to run by default.

Change-Id: I6c275518b9e55ab3b6bcea52894ea851924bee94
2015-08-25 06:29:37 +02:00
Sam Stoelinga
27abd34177 Add advanced SR-IOV section to networking guide
Co-Authored-By: Moshe Levi <moshele@mellanox.com>

Closes-bug: #1476242

Change-Id: Idf85af2153da2ce51383542f4c2616c62b56bafb
2015-08-22 01:23:49 +08:00
Andreas Jaeger
0a4e814f50 Gate at RST line length of 79 chars
With this patch, the RST files have no line longer than 79 chars -
as discussed on the docs mailing list - and we
can gate on it. Previously this limit was 100 chars.

Change-Id: I23f550db81e9264649d0444f5f1ba1be0d6d343d
2015-06-20 21:17:26 +02:00
Jenkins
6621f65d32 Merge "[install-guide-rst] Set up conditionals for distros" 2015-06-18 07:26:59 +00:00
Andreas Jaeger
52bbdc220f [install-guide-rst] Set up conditionals for distros
Add support for conditionals for the Install Guide.

This uses the tags:
* rdo
* obs
* ubuntu

Note that this is changed from the spec since sphinx does not accept a
"-". Also, I changed from opensuse to suse for brevity.

Adds new tox target so that "tox -e install-guides" builds only the
RST Install Guide.

implements bp installguide-liberty

Change-Id: Ibdfbc7ff294e56f52cd6f4ef59ceeb7b6af3e28a
2015-06-17 20:37:05 +02:00
Andreas Jaeger
21d93118f0 Avoid really overlooooooooong lines in RST
We aim to have no lines longer than 79 characters, enable the line
checking niceness check but set it to 100 as current maximum.

Convert files that fail this line length.

Convert one table to a definition list, convert two tables to use
list-table directive.

Change-Id: I8d0a95cc1c8e72965b3e0e69445e7b2bc6d77f0f
2015-06-12 19:28:23 +02:00
Andreas Jaeger
c2cac00294 Cleanup builds
Remove separate build-user-guides.sh and create a new build-all-rst.sh
tool.

Remove networking tox environment, since the RST guides share files, we
should always build them together using the docs tox environment.

Change-Id: I7ef98ca5e134096e14c79d58b0fc62a07747e471
2015-05-29 17:10:41 +00:00
Andreas Jaeger
f69c489346 User Guides: Enable translations
openstack-doc-tools 0.28 contains a fix for translation of RST guides
and the User Guides. Require that version and enable the User Guides for
translation.

Add building of glossary for translation environments to tox.ini.

Change-Id: I645bf98b68603811a9a978e508d1f492e44da738
2015-05-13 22:13:41 +02:00
Andreas Jaeger
1713dabf56 Unify checkbuild and publishdocs
The two tox environments were large and mostly duplicated, use a shell
script instead and use the build-rst.sh script to simplify building and
publishing.

For copying to /kilo, use the tools/copy-to-branch.sh script instead of
the simple commands since that is more robust. Merge that script into
this script, no need for a second script.

Update requirements: We need 0.27 at least to not have to delete the
Debian Install Guide, sync also pbr with global-requirements.txt.

Change-Id: Ieba77b4e3d0bbe58db041206d9725c523b3bb43a
2015-05-13 20:01:56 +02:00
Andreas Jaeger
2e1b8d1d32 Move User Guides into separate directories
Separate User Guides cleanly, there's little benefit in having them in
one directory and it causes quite some strange sphinx challenges.

Temporarily disable translation of the guides since first a new release
of openstack-doc-tools is needed.

Partial implements bp reorganise-user-guides

Change-Id: I9e41bb67397c5bc26c1940f67387f3e42a9c5cbc
2015-05-12 11:56:08 +02:00
Andreas Jaeger
2dd2472967 Move RST Glossary to common-rst
Build glossary only once and put it into common-rst directory so that
all RST guides can use it.

Change-Id: I2d3acf25a3af48349b7c10b7e9fea86d5f16444e
2015-05-12 11:56:08 +02:00
Andreas Jaeger
16f7398bef Do not fail on publishing command
If no documents are published to /draft, the "cp -a" would fail, rewrite
it so that it always succeeds.

If any command fails, nothing gets uploaded ;(

Change-Id: Ib9c6254504f868fd1a8eb772d5df9651448adc42
2015-05-09 20:40:54 +02:00
Andreas Jaeger
dab9cf0dbe Publish draft language guides under /draft
Publish draft documentation on docs.openstack.org/draft.

For now these are all Install Guides and the French Image Guide.

Update wiki pages for new links.

Partially implements bp draft-publishing

Change-Id: I319a52f7bc9982ab172fbbbaeb0a22a7642b5b07
2015-05-06 20:32:44 +02:00
Andreas Jaeger
5e09a5b4cc Remove obsolete Networking DocBook XML files
Since we're publishing now the RST files, it's time to remove
the XML files.

Change-Id: Ia8ba03fc56590951036ee86cda96d153f90614b4
2015-05-01 11:38:01 +02:00
Andreas Jaeger
75c5b45173 Update for openstack-doc-tools 0.25
Require openstack-doc-tools 0.25. This allows us to remove the content
directory for RST checkbuild.

Change-Id: Iffbdbb312c4e74902aec3cd4ebbfb5e4a4d83a76
2015-04-30 07:34:02 +02:00
Andreas Jaeger
09f830c511 Fix publishdocs
publishdocs failed when there was no content in publish-docs/draft and
then did not publish any files.

Failing is fine for the sed command, so add a "|| true". Also use
"mkdir -p" to ignore errors if publish-docs already exists.

Change-Id: I2cdcf155f583057fc56392ec44d8affffceafc9c
2015-04-29 19:38:21 +02:00
Andreas Jaeger
6a548ba7f9 Do not publish Debian Install Guide
The guide is still build by our toolchain, do not publish it anymore.

Change-Id: I67aa6c95762148184fdc10fe9ebbc9e905ecd526
2015-04-29 13:16:24 +02:00
Andreas Jaeger
a9f1fb28a0 Publish for Kilo
Copy over the Config Ref and Install Guide to kilo locations until
we branch of Kilo.

Publish networking guide continously.

Change-Id: Icdd1c5a841b804309e4c04f03c7b5607d670719e
2015-04-29 08:59:49 +02:00
Andreas Jaeger
32590c05a9 Don't publish www-index.html
Our tools were copying this file to docs.openstack.org, do not publish
it anymore.

Change-Id: I4293881efa5135dea1694edfb81d8ea92dced350
2015-04-28 11:06:30 +02:00
Andreas Jaeger
21ea9aff19 Reenable some doc8 tests
Enable doc8 but disable D000 (RST validation) and
D001 test (overlong lines). This also disables
all the problems we had in the past with doc8 checking, the current
files pass doc8 after fixing a few minor problems (part of change).

This basically tests for whitespace.

Change-Id: I648ac7f78b3a31f3b1434dc7d7d0b887ce4d5128
2015-04-21 16:32:06 +02:00
Andreas Jaeger
9b0740f098 Publish to /draft/ instead of /trunk
Publish Install Guide to docs.openstack.org/draft/install-guide

Publish Networking Guide to docs.openstack.org/draft/networking-guide
Publish Configuration Reference to /draft as well.

Update link /trunk/index.html

Partial implements bp draft-publishing

Change-Id: I620339c45e07bc492328f8df908e7b9f5f5ef9fa
2015-04-18 09:33:46 +02:00
Andreas Jaeger
fa3477a19d Remove DocBook User Guides
Remove DocBook User Guides and also the moved hot-guide.

Publish RST User Guides instead.
Remove workarounds for old tools.

Change-Id: I3fcc3972452959183c099daaf8226d7734445650
2015-04-17 06:45:37 +02:00
Andreas Jaeger
a8224a68b5 Add RST Glossary
Automatically convert the glossary from DocBook XML to RST with each
build and use it for building the RST guides.

Add the glossary to User Guides and Networking Guide.

Use glossary in User Guides in places where it was used before. This
removes one TODO.

Fix CORS capitalization.

Partial-Bug: #1421813
Change-Id: I3fba6d54b01759f39f8e1467a7606cdbd2dd0165
2015-04-14 19:57:35 +00:00
Andreas Jaeger
acd8a98540 Publish User Guides under /draft/ for now
Publish User Guides as:
docs.openstack.org/draft/user-guide/index.html
docs.openstack.org/draft/user-guide-admin/index.html

This allows us to review that everything works. Once we stop publishing
the "old" guides, we have to adjust the publish location.

Fix also location for the check queue.

Change-Id: I3dd0a5fc3ed9d253af0fbc201a03cd45e5be75fd
2015-04-03 21:51:10 +02:00
Andreas Jaeger
5db746f9e8 User Guides: Rename playground-user-guide to user-guides
Move files to final place.

Change-Id: I3e88ce145f05daafb23c0516cd9da75a92b62e3c
2015-04-03 19:19:10 +02:00
Andreas Jaeger
babd749f66 User Guides: Fix titles for guides
Create titles for both guides to differentiate them.
This needs a separate top-level index file and some moving of files
around so that the finished guide has an index.html file.

Change-Id: Ibe23d0c466b5c5f7d0b909548b55f6c5382f8992
2015-03-30 18:55:09 +02:00
Andreas Jaeger
d217ef4335 User Guides: Add SDK and cheat sheet only to User Guide
Exclude the SDK and Cheat Sheet chapters from Admin Guide with
marking them as user_only.
Use user_only tag for this for building the User Guide.

Change-Id: If0b9ef8c374f5a4ef2a0fadc8cda9b063d0c44ae
2015-03-25 21:06:35 +01:00
Anne Gentle
07540b4cf0 Adds Admin User Guide build to tox file
- Uses -t admin_only tag for building the admin version of the user guide.
- Add files to cli.rst that were not included anywhere.
- Add flag -E to sphinx-build to ignore old content which might lead to
  strange local build bugs.
- Add build-admin directory to .gitignore.
- Fix scope.py extension to properly remove files from toctree.


Co-Authored-By: Andreas Jaeger <aj@suse.de>
Change-Id: Ide51cf83c148060d3064ebcb9535b3d3a29c83cf
2015-03-24 20:11:24 +00:00
Anne Gentle
e6170e08a4 Remove doc8 from niceness check
- We're not at a point where the value proposition in consistent markup is
worth the pain in troubleshooting.
- Plus I think the current checks aren't sophisticated enough to replace humans.

Change-Id: Idb4e4acaf6b274024853847aa1d77324e251349f
2015-03-06 22:02:00 +01:00
daisy-ycguo
670c7af1ad First step for translation of RST files
Set locale_dirs in conf.py to support translated documents building.
Add a config variable SPECIAL_BOOKS to list documents in RST format.
Add new generatepot-rst tox environment to generate all pot file,
invoke using "tox -e generatepot-rst -- playground-user-guide".

Add new script to generate the pot files.

Co-Authored-By: Andreas Jaeger <aj@suse.de>

Change-Id: I3124cf65b254c1c5aefce59447bb94240d96a742
2015-03-06 21:31:01 +01:00
Andreas Jaeger
d82793e156 Move networking-guide source to a source directory
Patch was originally trying to use python setup.py build_sphinx to build the RST guides.
Thinking it'd give us better debugging info. But now translation needs a /source subdir.

Change-Id: I5e4f85846301bb14fcd9fb1445b08a0d34d16cae
2015-03-05 20:33:42 +01:00
Andreas Jaeger
752ec2d669 Error out on warnings when building RST
Treat warnings as errors when building RST.

Fix warning about wrong reference in sdk files and about
file not included anywhere.

Change-Id: I3cfd054b6bacc205991e2f57795d183a21275c21
2015-02-24 18:08:13 +01:00