diff --git a/docs/conf.py b/docs/conf.py index 4bffabd8..276a05d6 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -7,8 +7,9 @@ sys.path.append('.') def changelog_version(path, encoding='utf-8'): "Return the 1st *stable* (not pre, dev) version in the changelog" # See also grep_version() in setup.py + # e.g. "0.1.2, (1999-12-31)\n" version_pattern = re.compile( - r'^v(?P[0-9]+\.[0-9]+\.[0-9]+)', + r'^v(?P\d+\.\d+\.\d+) \((?P\d\d\d\d-\d\d-\d\d)\)$', re.MULTILINE, )