Skip to content

Commit

Permalink
Set TERM=dumb (#110)
Browse files Browse the repository at this point in the history
Co-authored-by: Jay Qi <[email protected]>
  • Loading branch information
jayqi and jayqi committed Mar 31, 2024
1 parent d87d57a commit ee77822
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def on_page_read_source(page, **kwargs):

def _inject_cli_help(markdown: str):
logger.info("Injecting CLI --help output into page markdown")
result = runner.invoke(app, ["--help"], prog_name="erdantic")
result = runner.invoke(app, ["--help"], prog_name="erdantic", env={"TERM": "dumb"})
help_text = result.stdout
return markdown.replace("{{INJECT CLI HELP}}", help_text)

Expand Down
1 change: 1 addition & 0 deletions docs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,4 @@ extra_css:

watch:
- ../erdantic
- ./hooks.py

0 comments on commit ee77822

Please sign in to comment.