Skip to content
Myr

Merge pull request #3321 from greyli/fix-gh-link-generator

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Fix github link generator for docs

authored by David Lord · committed by GitHub · parents d0df619, 2a8ebc4 · Browse files · 1 file+3 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−1 removed

  • other:+3 added−1 removed

1 file+3 added−1 removed

modified:docs/conf.py+3 added-1 removed
1import packaging23from pallets_sphinx_themes import get_version4from pallets_sphinx_themes import ProjectLink56# Project --------------------------------------------------------------
68 unmodified lines
75 words = words.strip()76 else:77 words = None7877 if release.endswith("dev"):79 if packaging.version.parse(release).is_devrelease:80 url = "{0}master/{1}".format(base_url, text)81 else:82 url = "{0}{1}/{2}".format(base_url, release, text)83
14 unmodified lines