Skip to content

Commit

Permalink
update template
Browse files Browse the repository at this point in the history
  • Loading branch information
zehengl committed Mar 26, 2024
1 parent 4c3ae8e commit 8304c43
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
14 changes: 10 additions & 4 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,21 @@ theme:
font:
text: Roboto
palette:
- scheme: default
- media: "(prefers-color-scheme)"
toggle:
icon: material/brightness-auto
name: Switch to light mode
- media: "(prefers-color-scheme: light)"
scheme: default
primary: orange
accent: orange
toggle:
icon: material/toggle-switch
name: Switch to dark mode
- scheme: slate
primary: orange
accent: orange
- media: "(prefers-color-scheme: dark)"
scheme: slate
primary: amber
accent: amber
toggle:
icon: material/toggle-switch-off-outline
name: Switch to light mode
Expand Down
7 changes: 4 additions & 3 deletions update_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from bs4 import BeautifulSoup
from tqdm import tqdm


urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
language_map = {
"cpp": "C++",
Expand Down Expand Up @@ -86,13 +85,15 @@
num_contributors = len(json.load(f)["contributors"])

with open("docs/index.md", "w", encoding="utf-8") as f:
text = f"""
text = """
<figure markdown>
![Logo](https://open.kattis.com/images/site-logo){{ width="100" }}
</figure>
# kattis
About the solutions to [Kattis Problem Archive](https://open.kattis.com/)
## Summary by Difficulty
"""

Expand Down Expand Up @@ -224,5 +225,5 @@
"""
text += card

with open(f"docs/solutions.md", "w", encoding="utf-8") as f:
with open("docs/solutions.md", "w", encoding="utf-8") as f:
f.write(text)

0 comments on commit 8304c43

Please sign in to comment.