Skip to content

Commit

Permalink
Fix bug in docs scraper
Browse files Browse the repository at this point in the history
  • Loading branch information
JOJ0 committed Sep 3, 2024
1 parent 0b290ba commit c1e6b3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scrape_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ def scrape(output, url):
if output == 'default':
print(f'{e.text} {link}')
if output in ['rst', 'csv']:
parts = chapter.split('admin_api')
fulllink = f'{parts[0]}admin_api{parts[1]}{link}'
parts = chapter.split('/admin_api/')
fulllink = f'{parts[0]}/admin_api/{parts[1]}{link}'
if output == 'rst':
rst = f'`{e.text} <{fulllink}>`_'
print(rst)
Expand Down

0 comments on commit c1e6b3b

Please sign in to comment.