Commit Graph

266 Commits

Author SHA1 Message Date
Tony Breeds 0f5d0ee6b7 Retire Packaging Deb project repos
This commit is part of a series to retire the Packaging Deb
project. Step 2 is to remove all content from the project
repos, replacing it with a README notification where to find
ongoing work, and how to recover the repo if needed at some
future point (as in
https://docs.openstack.org/infra/manual/drivers.html#retiring-a-project).

Change-Id: I4d66bc8da65514468dc5d56b9003a639b6f48ac8
2017-09-12 16:10:26 -06:00
Akihiro Motoki ff2ca65e5c Clean up rendered HTML with openstackdocstheme
After migrating to openstackdocstheme, there are several points
to be improved in the rendered HTML files.

* Cleanup unnecessary vertical lines for quote blocks.
  Existing quote blocks are actually not intended and
  leading extra spaces cause this.
  This commit removes unnecessary leading spaces.
* Some quote blocks are converted into definition lists
  to clean up vertical lines for quote blocks.
* Use code-block for better code highlighting.
* Specify maxdepth in user/index toctree.

Change-Id: I9add5a317718e97abce15b5ddbfa3d1208a01570
2017-07-19 09:44:08 +00:00
chenxing ec2afa0b90 Update documention link for doc migration
Change-Id: I7bf4cf447a090657a8a9d6384fa858f1e261dbb8
2017-07-13 15:22:28 +00:00
Jenkins 0864c37b73 Merge "Allow users to change prelude section name" 2017-07-05 22:08:23 +00:00
Jenkins 7ab07f1d26 Merge "Support repodir config files" 2017-07-01 07:21:17 +00:00
Rajath Agasthya 4003fc1321 Allow users to change prelude section name
Convert note template to a format string. Also include prelude
section in the report generated and update docs.

Closes-Bug: #1698203
Change-Id: I7bef68bfb518dd8554d56cb200f2844e7d395fc8
2017-06-30 17:31:23 -07:00
Stephen Finucane b2aadef726 loader: Extract cache filename from config object
The only places that this is called, we already have a
reno.config.Config instance available. Simply use that instead.

We also include a note of the 'conf.notespath' property, because the odd
behavior of this caught me out for a bit, and call 'os.path.normpath',
because the default path included redundant up-level references.

Change-Id: I58948cd8fad55d29bd30c65653630bd466259cdc
2017-06-29 11:19:01 +01:00
Stephen Finucane ecd1a171ba Support repodir config files
Not everyone wants to use build release notes separately from their main
documentation. For these users, having a 'notes' directory inside the
'releasenotes' directory is unnecessary. However, this also means we
must be able to move the config file out of the 'releasesnotes'
directory to avoid it being picked up as a release note.

Make this possible by adding support for a 'reno.yaml' file in the root
directory of the project.

Sadly it is not possible to apply this change to reno itself - doing so
would cause the files to be picked up as belonging to the current
release - but other projects can benefit from this.

Change-Id: Ie96103b85d70592dd766e5174784b992fe7782c5
2017-06-29 11:17:01 +01:00
Doug Hellmann b6832f7a81 switch from oslosphinx to openstackdocstheme
Change-Id: Iba29f6743f5f12e7cb9624c499010f262e34fd01
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-06-28 14:46:09 -04:00
Doug Hellmann f4e2d83b00 rearrange the existing docs to follow the new standard layout
Change-Id: Ia033a9243a55f4a7dfd70d5e0515d6d3372d6e08
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-06-28 14:43:44 -04:00
liuxiaoyang ebfdb94a20 Block comment should start with '# '
Each line of a block comment starts with a # and a single space.

Change-Id: I9a36ecfa47d683a9cff43f54a04739686cf51740
2017-06-20 09:45:54 +08:00
liuxiaoyang 0d45aee7dc Replace http with https
The use of https and some of them are http.
Use https instead of http to ensure the safety without containing our
account/password information.
e.g. https://review.openstack.org/#/c/462890/

Change-Id: I545833e4d7ede4435e4f50bed792a60847e9a813
2017-06-19 08:59:07 +08:00
Jenkins 6ac23f1e40 Merge "Remove Babel from setup.cfg and requirements" 2017-06-18 17:20:40 +00:00
Jenkins 2045d999bb Merge "expand examples in documentation" 2017-06-18 17:20:34 +00:00
Stephen Finucane 18df043b5a Move notesdir default to 'defaults' module
We're going to use this shortly.

Change-Id: I7382ee143c7fb19b19e52ac6c37960242fde8628
2017-06-15 14:33:18 +01:00
Jenkins 208b87691a Merge "add option for ignoring some notes files" 2017-06-15 07:12:40 +00:00
Jenkins c96bfab4f1 Merge "allow release notes sections to be single strings" 2017-06-15 07:12:25 +00:00
Doug Hellmann a42a617350 fix an infinite loop in the topo traversal algorithm
When skipping null-merges, do not go back to the first parent node if we
have already processed it.

Fix a similar potential issue when handling parent nodes during regular
processing.

Change-Id: I10e531cdf3b203ca2e9249d89a37b61f79091311
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-06-14 08:06:07 -04:00
Doug Hellmann f957e74ff9 add option for ignoring some notes files
Make it easier to produce clean release notes by ignoring files
mistakenly edited on the wrong branch.

Change-Id: I74fb9e6c74af0b9de8cfe0d9c07ecfbd09cae925
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-06-13 13:42:07 -04:00
Jenkins 3b2b36fede Merge "ignore null-merges" 2017-06-13 00:53:08 +00:00
Doug Hellmann 8666d22065 expand examples in documentation
Add examples showing how sections that take lists of strings can also
include a single string, and expand on why the escaped rst formatting
works.

Change-Id: I26be8c3027aebbfb1bf4a6f17c6f995dc44aac1a
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-06-06 17:07:08 -04:00
Doug Hellmann bc3d1241dd allow release notes sections to be single strings
Release notes entries may now be made up of single strings. This
simplifies formatting for smaller notes, and eliminates a class of
errors associated with escaping reStructuredText inside YAML lists.

Change-Id: I7f2fb2d2fd16f49e7ee061582df7bcdd4116f215
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-06-05 15:42:06 -04:00
Jenkins 942bbd8427 Merge "do not assume the current branch is the most recent" 2017-06-02 16:02:11 +00:00
Doug Hellmann bd6fecc858 ignore null-merges
OpenStack used to use null-merges to bring final release tags from
stable branches back into the master branch. This confuses the regular
traversal because it makes that stable branch appear to be part of
master and/or the later stable branch. Update the scanner so that when
it hit one of those merge commits, it skips it and take the first parent
so it continues to traverse the branch being scanned.

Change-Id: I90722a3946f691e8f58a52e68ee455d6530f047a
Closes-Bug: #1695057
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-06-02 10:18:04 -04:00
Matt Riedemann a26e9820dd Document how reno handles eol branches in config
This comes up from time to time so we should probably
document it.

Change-Id: I58fef297612328ee1db61377c29e1cfe0ec6f5ab
2017-06-01 14:30:43 -04:00
Doug Hellmann ecca68b147 do not assume the current branch is the most recent
Look through the other branches to find the previous branch and
determine where to stop scanning, instead of assuming the current branch
is the most recent and trying to artificially compute the previous
branch.

Change-Id: If905575a47c828ebe43e79a6c0f363eaa3226f6e
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-06-01 14:14:42 -04:00
Doug Hellmann 5cefb37405 fix the way we handle deleted notes
The aggregated change information for a deleted note includes the SHA as
well as the filename. Extract both from the tuple separately so the path
value is set correctly to a filename.

Change-Id: I41fb4a7a0f6d24af47c8f059945b9bf45f859f15
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-06-01 11:00:15 -04:00
Julien Danjou 2f5ad2897f Remove Babel from setup.cfg and requirements
It's not imported by reno at runtime and no translation has been setup at all.

Change-Id: I0f36fc6b8d9112752b13028ba5b07f2a05504f5b
2017-06-01 09:59:33 +02:00
Thomas Bechtold e3dcbdd582 Make oslosphinx requirement optional
There is a build cycle between reno and oslosphinx. Now the
documentation can be build without oslosphinx installed.

Change-Id: Iae6abbe5b2991123f56bf2f4e852c57cd9ca6c11
2017-05-29 19:10:59 +02:00
Jenkins 5529882740 Merge "fix the logic for deciding what to show as the "current" series" 2017-05-29 09:01:47 +00:00
Thomas Bechtold 320736bdbf Remove oslotest from test-requirements.txt
It is not used.

Change-Id: I50604b19e603c4508ef61fdd32091a10235f1e5a
2017-05-25 07:05:59 +02:00
Doug Hellmann e2d60c0793 fix the logic for deciding what to show as the "current" series
Stop at the first version after the most recent branch was created,
instead of always only showing the most current version.

Change-Id: I58326c9e30349d2d7c473558b9aa2e8f7294c652
Closes-Bug: #1682147
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-05-24 15:44:20 -04:00
Doug Hellmann 2d0d05d301 add release note for log level fix
Change-Id: I7dff8aa13a414b7b625636c1793774da4638bd04
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-05-18 11:43:16 -04:00
Doug Hellmann 65a69398b8 lower the log level for an error message
Sphinx 1.6.1 now interprets error and warning log messages as reasons to
abort the build when strict mode is enabled. Change the log level for
some calls that weren't really errors to begin with.

Change-Id: I688ee8b57e839ba6146633365be9ba8f92e3c7df
Closes-Bug: #1691224
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-05-17 14:44:03 -04:00
Doug Hellmann c985f88a53 do not use sphinx 1.6.1
Change-Id: I91b606b8f46037b3f75ccbc51d921f060e055f09
Related-Bug: #465135
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-05-17 14:44:03 -04:00
Doug Hellmann 06d6574d46 add a lint command
Provide a tool for doing some basic input validation.

Related-Bug: #1688042
Change-Id: I850b57153c5286e19f4ac3af899b3d798aebd7d4
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-05-03 15:53:44 -04:00
Doug Hellmann 8b1a3c6527 do not allow multiple files with the same UID
Prevent someone from adding multiple files with the same UID in the same
commit. Ignore any existing commits with the problem as long as there
was a later commit to delete the files.

Closes-Bug: #1688042
Change-Id: Id62361f3aba195417b369293e411c36172d27229
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-05-03 13:49:48 -04:00
Doug Hellmann dd5487e5d3 modify the change aggregation api
Move _aggregate_changes() to a class so we can track state.

Related-Bug: #1688042
Change-Id: I23a7add3a65c65e74b8e5b7378031346fe2a75b3
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-05-03 12:58:54 -04:00
Doug Hellmann 3f02991ce7 deal with non-unique UIDs
When we find multiple files added with the same UID in one patch, ignore
them and emit a warning. That's bad input data, and we don't want to use
them.

Allow multiple files with the same UID to be deleted in a patch to
support cleaning up existing situations where the add case was not
caught properly.

Related-Bug: #1688042
Change-Id: I37fee0660ff541677d26770818764f7de2a2d863
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-05-03 12:58:46 -04:00
Jenkins b67361fdca Merge "Remove support for py34" 2017-04-14 16:17:28 +00:00
Doug Hellmann 079cfc0f74 comment out openstack governance badges
Comment out the governance badge link to avoid the warning from using a
remote image. This can be reverted when a version of pbr with the fix is
released.

Addresses-Bug: #1682467
Change-Id: I9caf5b22d075b4ff3f6be71e23a98f3b5044747c
Depends-On: If47e3ca6519cc9f70d62cd887707321fe9199f81
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-04-13 12:04:01 -04:00
Stephen Finucane 252b48f171 doc: Document the available configuration options
They're documented in the source. Let's document them in the actual
documentation.

Change-Id: Ia320808630281009c1700cb1ad25340761af86a0
2017-03-31 09:33:45 +01:00
gecong1973 378b305ca8 Remove support for py34
The gating on python 3.4 is restricted to <= Mitaka. This is due to
the change from Ubuntu Trusty to Xenial, where only python3.5 is
available. There is no need to continue to keep these settings.

Change-Id: Ia410cd56a57725aba1aad5e397e7915f1f773b6e
2017-03-23 15:46:22 +08:00
Jenkins 5fa63a0fca Merge "add a --title option to the report command" 2017-03-15 20:23:06 +00:00
Jenkins 131ae2b55b Merge "add --no-show-source option to report command" 2017-03-15 20:22:38 +00:00
Jenkins 79b37bcbaa Merge "fix bytes/str handling when looking for file content" 2017-03-15 20:21:10 +00:00
Doug Hellmann 371fb0ff76 add a --title option to the report command
Change-Id: I0ed8bbed995e637ef5526ae3fc8d7c3ac4214fb8
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-03-15 11:17:30 -04:00
Doug Hellmann 33b135fe9a add --no-show-source option to report command
Add a ``--no-show-source`` option to the report command to skip
including the note reference file names and SHA information in comments
in the output. This restores the previous format of the output for cases
where it is meant to be read by people directly, not just converted to
HTML.

Change-Id: Ie284b8a8e60d5a5f958d229c5972e8d9bf697d44
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-03-15 10:58:49 -04:00
Doug Hellmann f6dbe94907 fix bytes/str handling when looking for file content
The tests were passing unicode but in some cases the real code was
passing bytes, so accept both and do the encoding ourselves if we need
to.

Change-Id: I0f64d301b36207b1ffa6503e8c27f679cdf6516f
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-03-15 10:56:24 -04:00
Jenkins 75d7551b5e Merge "Using fixtures.MockPatch instead of mockpatch.Patch" 2017-03-14 15:31:49 +00:00