Repository: yetus Updated Branches: refs/heads/master 25bf9ec75 -> 9d12713aa
YETUS-433 releasedocmaker generates empty index and readme for non-semver versioning Signed-off-by: Kengo Seki <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/yetus/repo Commit: http://git-wip-us.apache.org/repos/asf/yetus/commit/9d12713a Tree: http://git-wip-us.apache.org/repos/asf/yetus/tree/9d12713a Diff: http://git-wip-us.apache.org/repos/asf/yetus/diff/9d12713a Branch: refs/heads/master Commit: 9d12713aafe33dbfcc65a9554e830aab2964f994 Parents: 25bf9ec Author: Ajay Yadava <[email protected]> Authored: Sat Jul 23 23:50:24 2016 +0530 Committer: Kengo Seki <[email protected]> Committed: Sat Jul 30 00:16:25 2016 +0900 ---------------------------------------------------------------------- asf-site-src/source/documentation/in-progress/releasedocmaker.md | 3 ++- release-doc-maker/releasedocmaker.py | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/yetus/blob/9d12713a/asf-site-src/source/documentation/in-progress/releasedocmaker.md ---------------------------------------------------------------------- diff --git a/asf-site-src/source/documentation/in-progress/releasedocmaker.md b/asf-site-src/source/documentation/in-progress/releasedocmaker.md index d30c634..a996efd 100644 --- a/asf-site-src/source/documentation/in-progress/releasedocmaker.md +++ b/asf-site-src/source/documentation/in-progress/releasedocmaker.md @@ -192,7 +192,8 @@ This will do the normal JIRA querying, looking for items it considers problemati # Index Mode -There is basic support for an autoindexer. It will create two files that contain links to all directories that have a major.minor.micro-style version numbering system, where all fields are numeric. +There is basic support for an autoindexer. It will create two files that contain links to all directories that have a major.minor*-style version numbering system. +For example directories with names like 0.6, 1.2.2, 1.2alpha etc. will all be linked. * index.md: a file suitable for conversion to HTML via mvn site * README.md: a file suitable for display on Github and other Markdown rendering websites http://git-wip-us.apache.org/repos/asf/yetus/blob/9d12713a/release-doc-maker/releasedocmaker.py ---------------------------------------------------------------------- diff --git a/release-doc-maker/releasedocmaker.py b/release-doc-maker/releasedocmaker.py index 72a2091..5f32491 100755 --- a/release-doc-maker/releasedocmaker.py +++ b/release-doc-maker/releasedocmaker.py @@ -137,7 +137,7 @@ def mstr(obj): def buildindex(title, asf_license): """Write an index file for later conversion using mvn site""" - versions = glob("[0-9]*.[0-9]*.[0-9]*") + versions = glob("[0-9]*.[0-9]*") versions.sort(key=LooseVersion, reverse=True) with open("index.md", "w") as indexfile: if asf_license is True: @@ -152,7 +152,7 @@ def buildindex(title, asf_license): def buildreadme(title, asf_license): """Write an index file for Github using README.md""" - versions = glob("[0-9]*.[0-9]*.[0-9]*") + versions = glob("[0-9]*.[0-9]*") versions.sort(key=LooseVersion, reverse=True) with open("README.md", "w") as indexfile: if asf_license is True:
