Skip to content

Commit

Permalink
🔧 Make pre-commit hook happy
Browse files Browse the repository at this point in the history
  • Loading branch information
pypae committed Aug 5, 2024
1 parent f6ab37a commit 8ee3e7e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 16 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<p align="center">
<a href="https://typer.tiangolo.com">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://typer.tiangolo.com/img/logo-margin/logo-margin-white-vector.svg">
<img src="https://typer.tiangolo.com/img/logo-margin/logo-margin-vector.svg" alt="Typer">
</picture>

<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://typer.tiangolo.com/img/logo-margin/logo-margin-white-vector.svg">
<img src="https://typer.tiangolo.com/img/logo-margin/logo-margin-vector.svg" alt="Typer">
</picture>

</a>
</p>
Expand Down
20 changes: 10 additions & 10 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@

<p align="center">
<a href="https://typer.tiangolo.com">
<!-- only-readme
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://typer.tiangolo.com/img/logo-margin/logo-margin-white-vector.svg">
<img src="https://typer.tiangolo.com/img/logo-margin/logo-margin-vector.svg" alt="Typer">
</picture>
/only-readme -->
<!-- only-mkdocs -->
<img src="img/logo-margin/logo-margin-vector.svg#only-light" alt="Typer">
<img src="img/logo-margin/logo-margin-white-vector.svg#only-dark" alt="Typer">
<!-- /only-mkdocs -->
<!-- only-readme
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://typer.tiangolo.com/img/logo-margin/logo-margin-white-vector.svg">
<img src="https://typer.tiangolo.com/img/logo-margin/logo-margin-vector.svg" alt="Typer">
</picture>
/only-readme -->
<!-- only-mkdocs -->
<img src="img/logo-margin/logo-margin-vector.svg#only-light" alt="Typer">
<img src="img/logo-margin/logo-margin-white-vector.svg#only-dark" alt="Typer">
<!-- /only-mkdocs -->
</a>
</p>
<p align="center">
Expand Down
2 changes: 1 addition & 1 deletion scripts/docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def generate_readme_content() -> str:
flags=re.DOTALL,
)
new_content = re.sub(
r"<!-- only-readme\s*(.*)\s*/only-readme -->",
r"<!-- only-readme\s*(.*?)\s*/only-readme -->",
r"\1",
new_content,
flags=re.DOTALL,
Expand Down

0 comments on commit 8ee3e7e

Please sign in to comment.