Skip to content

Commit

Permalink
👋update mkdocs
Browse files Browse the repository at this point in the history
  • Loading branch information
zkep committed Feb 25, 2025
1 parent a549a89 commit d514c8a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ def make_pdf(source, output, timeout, compress, power, port):
matches = re.findall(pattern, mk_data)
images = []
for match in matches:
if 'static001.geekbang.org' not in match:
if 'static001.geekbang.org/' not in match:
continue
match = match if match.count(')') <= 0 else match[:match.index(')')]
if match.count('('):
Expand Down
13 changes: 6 additions & 7 deletions mkdocs_template.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Site metadata
site_name: Geek Time Docs
site_description: 极客时间在线文档
site_url:
site_name: 极客时间文档
site_description: 极客时间文档
site_url: https://github.com/uaxe/geektime-docs
site_author: zkep
repo_url: https://github.com/uaxe/geektime-docs
repo_name: zkep/mygeektime
repo_url: https://github.com/zkep/mygeektime
edit_uri: https://github.com/uaxe/geektime-docs
repo_name: uaxe/geektime-docs
remote_name: https://github.com/uaxe/geektime-docs
docs_dir: "dist/" # where to find the markdown files
site_dir: "site/" # where to publish to
Expand All @@ -14,7 +14,7 @@ use_directory_urls: true # don't display 'index.html' in slugs
# Theme customization
theme:
name: material
language: en
language: zh
custom_dir: overrides/
logo:
favicon:
Expand Down Expand Up @@ -43,7 +43,6 @@ theme:
icon: material/brightness-7
name: Switch to dark mode
features:
- content.action.edit
- content.code.annotate
- content.code.copy
- content.tooltips
Expand Down

0 comments on commit d514c8a

Please sign in to comment.