Skip to content

Commit

Permalink
Merge pull request #106 from nedbat/patch-1
Browse files Browse the repository at this point in the history
Add a "Documentation" link to the sidebar on PyPI
  • Loading branch information
jph00 authored Jul 23, 2022
2 parents aa834d0 + c558a85 commit bb794bb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@
long_description = re.sub(r'!\['+ext+'\]\((.*)\)', '!['+ext+']('+'https://raw.githubusercontent.com/{}/{}'.format(cfg['user'],cfg['lib_name'])+'/'+cfg['branch']+'/\\1)', long_description)
long_description = re.sub(r'src=\"(.*)\.'+ext+'\"', 'src=\"https://raw.githubusercontent.com/{}/{}'.format(cfg['user'],cfg['lib_name'])+'/'+cfg['branch']+'/\\1.'+ext+'\"', long_description)

project_urls = {}
if cfg.get('doc_host'): project_urls["Documentation"] = cfg['doc_host'] + cfg.get('doc_baseurl', '')

setuptools.setup(
name = 'ghapi',
license = lic[0],
Expand All @@ -56,5 +59,6 @@
long_description_content_type = 'text/markdown',
zip_safe = False,
entry_points = { 'console_scripts': cfg.get('console_scripts','').split() },
project_urls = project_urls,
**setup_cfg)

0 comments on commit bb794bb

Please sign in to comment.