359 Commits

Author SHA1 Message Date
Andreas Jaeger
01943b0637 Fix setup.cfg for rename of main in doctest
A recent change renamed main in doctest.py to doctest, this needs a
corresponding change in setup.cfg to fix package building.

Change-Id: Ic75db791af98b775a212e93b25548028f6d7ca53
2014-05-19 18:31:42 +02:00
Andreas Jaeger
ccb51b7432 Fix error in build-ha-guide.sh
Add missing "," so that the sed replace works.

Change-Id: I700467bc48b29f6bf67421fffce1870998eaaae1
2014-05-18 21:08:39 +02:00
Jenkins
4fb4906e9e Merge "fixed several pep8 issues" 2014-05-18 13:50:11 +00:00
Andreas Jaeger
ff2a921194 Remove some pylint warnings
Remove some warnings noticed by pylint.

There're still a lot of warnings, this is just an iterative improvement.

Change-Id: Iafecf55176f230b91353ecd5b5014ba749056f89
2014-05-18 15:25:56 +02:00
Christian Berendt
dfa10c5c5d fixed several pep8 issues
* E129 visually indented line with same indent as next logical line
  * E129 visually indented line with same indent as next logical line
  * E265 block comment should start with '# '
  * E713 test for membership should be 'not in'

Change-Id: I8488f7ad4399153d99325806fe87919c0b4cda7e
2014-05-17 08:37:07 +02:00
Andreas Jaeger
bd36d6f4b8 Do not special case publish flag for www only change
If only www files are changed, do not build all books unless
--force is given.

Change-Id: I5fd67679ee86e3b83594d057ddfce7b42f4567b3
2014-05-16 11:51:40 -04:00
Andreas Jaeger
a79e547a5b Only print properties in verbose mode
Only print the properties out if verbose is requested.

Change-Id: I82a04a787a42aeedc75607639154706c0847ac5d
2014-05-13 20:36:22 -04:00
Christian Berendt
70fb1ca1fc fixed pep8 issues in doc/source/conf.py
* E265 block comment should start with '# '
  * E101 indentation contains mixed spaces and tabs
  * W191 indentation contains tabs
  * E126 continuation line over-indented for hanging indent
  * W391 blank line at end of file

Also enabled doc/ to be checked by flake8 in tox.ini.

Change-Id: I6ef75ccffb94dd2df346e844d351ea477e560a42
2014-05-13 22:51:56 +02:00
Jenkins
c545d83fce Merge "Fix generation of ha localized guide" 2014-05-13 15:38:05 +00:00
Andreas Jaeger
9622f376cb Fix generation of ha localized guide
The generatedocbook tool only works on XML files.
For the high-availability guide, we first need to generate the XML file
and then integrate translations - and take care that the build job not
regenerates the XML file.

Change-Id: Iab7a72d2819b4fc5d0bac53b8a9ccba2ba9ef0ef
2014-05-13 10:23:00 -04:00
Gauvain Pocentek
ded3788ff3 autohelp.py: update the paramters handling
- generate the tables in the doc/common/tables dir by default
- make the -i switch optional, and assume that git git repositories are
  in a ./sources/ dir
- use elif's instead of multiple return statements in the subcommand
  test

Change-Id: If96ac9df247cea5061c056328307ec88ab74a4f3
2014-05-13 07:28:08 -04:00
Gauvain Pocentek
fa80be3495 Don't use a common file
The common.py file is only used by autohelp.py, so is not really a
common file. Include its content in autohelp.py.

Also remove the unused _() definition.

Change-Id: I4e228637e3f6287fd2770ba386dd0fdba6977a81
2014-05-10 21:32:05 +02:00
Andreas Jaeger
f9cfc13fda Display more information with -v
Display release path and comments enabled status with "-v".

Change-Id: I8c99e46a0fb9784a5c89c96c975395b9dc1008d4
2014-05-10 13:17:37 +02:00
Roger Luethi
3d61e98305 Add new script jsoncheck.py
Add a new script that can reformat JSON files and check for niceness.
We can use this later as niceness check for openstack-doc-test.

Change-Id: I33c5309bfa2e1abfa6a35d1cfcdc984775e85f05
2014-05-07 22:11:21 +02:00
Jenkins
461e712588 Merge "Warn about usage of non-breaking space" 2014-05-01 16:33:38 +00:00
Andreas Jaeger
930ddbac27 Warn about usage of non-breaking space
Non-breaking space is often not visible in our tools, or shown as normal
space. We should use   instead. Warn about non-breaking space like
we warn about tabs.

Change-Id: I1bbbb1f19c56d3cc1b949df151b41886a0c46042
Related-Bug: #1314498
2014-05-01 09:58:45 +02:00
Andreas Jaeger
8bf05b2267 auto-commands: Improve swift display
Remove Usage: from paragraph and add separate line with the command.

Change-Id: I24bdf4fa7226978cdaa000803b238ffe701abfc4
2014-05-01 08:56:53 +02:00
Jenkins
f16a785f4a Merge "Place </screen> on proper line, fix swift usage" 2014-05-01 01:47:41 +00:00
OpenStack Proposal Bot
488921e7f1 Updated from global requirements
Change-Id: I93c18057c2118b51fd08ec28cd908534fd4802e6
2014-04-30 02:43:55 +00:00
Andreas Jaeger
b42cf18bab Place </screen> on proper line, fix swift usage
Change way on how the screens are generated so that we really
have </screen> on the closing line.

Also, update swift usage line so that it is not inside a screen but in a
normal para.

Add new option --output-directory for defining the directory where the
files will be written to.

Change-Id: Ie5d039ad673290720993586bd137c51183afa822
2014-04-29 19:29:52 +02:00
Andreas Jaeger
7f4c2f4720 Update README
0.14 is not released, merge changes back to 0.13 and cleanup a bit.

Change-Id: I619f975321d88011cd6af4e12ecf19bbe9ba0b8a
2014-04-26 09:21:46 +02:00
Gauvain Pocentek
8b6edc10fe extract_swift_flags: Improve the output
Since we need to edit the generated tables manually, a nicer
output will help a little. I hope...

Change-Id: I85222cb52d6f4ed2523729e7c31ddb7efaaab979
2014-04-25 23:21:10 +02:00
Gauvain Pocentek
5dcedd48d3 extract_swift_flags: fix the tables parsing
The code for parsing existing tables didn't find all the options because
of spaces and new lines. This patch should now handle those characters.

Change-Id: If6a5d8812e6e6f46e14944578cc5eb94d8374ccf
2014-04-25 23:07:50 +02:00
Jenkins
a8cb0407d8 Merge "Handle translations for api-site" 0.13 2014-04-25 14:10:47 +00:00
Andreas Jaeger
0a5f7e5c3b Handle translations for api-site
The generatedocbook command only handled books in subdirectories of
./doc. This assumption only works for operations-guide and
openstack-manuals but not for the api-site. Add parameter --root to give
the root directory. For the api-site, this would be "--root ./".

Change-Id: I9f477239677ca5a32b19bd565f8a37288f7e869e
2014-04-25 15:47:00 +02:00
Andreas Jaeger
2a967e5bb9 Update client-requirements.txt
trove is now at 1.0.5.

Change-Id: Ie68afc0e0d928edda8d495863e5dcfb9a85774ef
2014-04-25 15:18:55 +02:00
Andreas Jaeger
b298591901 Remove compatibility names
These names are not used anymore, all usage has been adapted.

Change-Id: I8bf369956fbdd55a2696e28ae033837c6513fcca
2014-04-24 19:27:54 +02:00
Andreas Jaeger
6659c80435 Improve api-site handling for openstack-doc-test
Find books that need to be rebuild for api-site better:
* Handle include of wadl resources.
* Handle file layout of api-site.

Add new option --print-unused-files.

Change-Id: I8ad61cf53728e3b5ba71077bf53b1780a2535c2e
0.12
2014-04-23 14:42:52 +02:00
Gauvain Pocentek
4b76183aa3 Discover keystone_authtoken options
These options are not directly imported in the projects, but instead
used as a middleware in the paste configuration. We force and import of
the middleware to discover the options.

Change-Id: I6e8a7abca63a86db9dd215c012b10ef2d89c18df
2014-04-21 09:50:40 +02:00
Jenkins
3863236602 Merge "Handle www pages properly when publishing" 0.11 2014-04-17 08:25:43 +00:00
Andreas Jaeger
53f0b0e0e7 Keystone 0.8 is recent
Change-Id: I10c0177041f3e122d1a3c10da952352c8db54566
2014-04-17 08:59:54 +02:00
Andreas Jaeger
cbd65025c9 Handle www pages properly when publishing
www is copied to publish-dir/www but this is not desired when publishing
for our external website - only for drafts.

Add option --publish for publishing to external website
that does not copy www over and also always builds manuals.

Change-Id: I9972a690c6c714fbe028b47ff1da2884d058282b
2014-04-17 07:34:37 +02:00
Jenkins
ee98d2a64d Merge "Update versions of clients" 2014-04-15 05:25:57 +00:00
Gauvain Pocentek
dacf5862f7 Use option.dest instead of option.name
The oslo CLI options are defined using dashed, but should appear with
underscores in the tables (as in config files). Using the dest attribute
will fixed this problem.

Change-Id: I82d56ba6f62f840e757413f7c996b927fede107d
2014-04-14 21:28:25 +02:00
Andreas Jaeger
9e61274a5a Update versions of clients
Update versions for tracking auto-commands.

Change-Id: Ied1c45316bd28190077eab257c559cb57ff8cc45
2014-04-14 14:22:04 +02:00
OpenStack Jenkins
26afb11903 Updated from global requirements
Change-Id: If762d2f24887005749f459846a327966aa749dd9
2014-04-07 21:13:51 +00:00
Jenkins
dd2a779b50 Merge "Generate docs for projects' rootwrap.conf file" 2014-04-07 07:30:37 +00:00
Gauvain Pocentek
dece1e7a4c autohelp: add a hook mechanism
Autodiscovery has limits, and it seems easier to handle some special
cases than adding more complexity in the parsing code.

This patch provides a hook mechanism allowing to execute methods for
some modules.

Add a hook for keystone.common.config.

Change-Id: I6791afbebbc329a5731f0fcfa452c34baaa2905d
2014-04-07 07:05:24 +02:00
Shaun McCance
eb51a3d4bf Generate docs for projects' rootwrap.conf file
There's nothing introspectable in the projects or oslo.rootwrap, but all
projects that use rootwrap have a sample etc/($project/)?rootwrap.conf
file. This file is relatively simple to parse for allowed options and
comments.  It's not the best solution, but it's a solution.

Closes-Bug: #1253690
Change-Id: I51973a4b8f0ac6ea047c4ffc07647a10bdea92ee
2014-04-06 14:02:01 +02:00
Andreas Jaeger
df0fe3061e Update Service spelling for commands
It's Identity service and Database Service.

Also, update latest sahara version.

Change-Id: I8ebc3af68133504260c1b478905227047bc84b86
2014-03-30 19:50:54 +02:00
Andreas Jaeger
77eda53a1f Fix README formatting
The latest release looks strange on pypi, update formatting.

Change-Id: Ia9386108fe3f00c347a0d119bcf2e64db74042a1
2014-03-28 16:31:13 +01:00
Jenkins
0efad09483 Merge "Update for keystone client 0.7.1" 0.10 2014-03-28 14:36:14 +00:00
Andreas Jaeger
8e9b027bd8 Update for keystone client 0.7.1
Change-Id: If9f66d9dd846fb93c7f5e7583c94501f01c7c8d8
2014-03-28 12:53:06 +01:00
Andreas Jaeger
197fcbdde9 Handle api-ref-guides publishing
Do not publish wadls directories at all.
Do not publish .fo files.
Create in our docs-draft index.html file a list of the api-ref-guides
PDF files.

Update README.rst for 0.10 release.

Change-Id: I049456530431dd855395ca255b4f06c954720ae0
2014-03-28 09:59:28 +01:00
Gauvain Pocentek
c753fe8af7 Minor README.md update
Include heat and trove in the supported projects.

Add dependencies to install using pip.

Change-Id: Idb9e3e60373a5da56a2dcb02bc2f5c91f87bd35e
2014-03-23 17:59:53 +01:00
Gauvain Pocentek
968a931c1e Fix ListOpt output
Make sure that ListOpt default values are actually lists when converting
them to strings.

Change-Id: Ic12dcb0a75ed127793cb84b398eded969c4ec8d9
2014-03-20 18:04:27 +01:00
Gauvain Pocentek
cdaeb37b5e Remove code for flapmappings file compatibility
An older format of the flagmappings file required to handle options that
moved from a section to another. This older format is no longer used
and might genereate incorrect default values for new options in groups
other than DEFAULT. Remove the code to avoid this problem.

Change-Id: Iacd55a278f33c05cc6dffbbfedc2ceffedd6ad05
2014-03-16 08:32:14 +01:00
Jenkins
cfab9601aa Merge "Handle CLI commands for ironic and sahara" 2014-03-13 10:34:26 +00:00
Jenkins
a98de6e262 Merge "Fix sorting of flagmapping files" 2014-03-11 23:49:17 +00:00
Gauvain Pocentek
62e2d211f2 Minor cleanup
Remove unused modules dict.

Change-Id: Ieabffe4450a75beb45a1374b046fa32b65105868
2014-03-11 17:40:37 +01:00