Skip to content

Commit

Permalink
scrape_docs explain indentation space replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
JOJ0 committed Oct 3, 2024
1 parent 9d96193 commit 7cfbadf
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions scrape_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@
type=click.Choice(['debug', 'rst', 'csv']), show_choices=True,
help='''Output format "debug" prints headline level, headline text and the
scraped link/anchor; "rst" gives a restructuredText formatted hyperlink
including space-indentation according to headline levels; "csv" is a
two-column comma separated value format that includes the results of "rst"
as the left column's contents. Additionally "csv" adds a restructuredText
formatted headline above the table''')
including indentation according to headline levels. Spaces at the beginning
of lines have a special meaning in rst documents, thus the hardcoded
replacement marker "|indent|" is used; "csv" is a two-column comma
separated value format that includes the results of "rst" as the left
column's contents.''')
@click.argument('URL')
def scrape(output, url):
'''Scrape one chapter of Admin API docs and spit out in various formats.
Expand Down

0 comments on commit 7cfbadf

Please sign in to comment.