From d514c8ab09f85130da28af80ccd90126d8ed5662 Mon Sep 17 00:00:00 2001 From: zkep <773683464@qq.com> Date: Tue, 25 Feb 2025 10:54:45 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=8Bupdate=20mkdocs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 2 +- mkdocs_template.yml | 13 ++++++------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/main.py b/main.py index dce9398893..a40a634d7c 100644 --- a/main.py +++ b/main.py @@ -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('('): diff --git a/mkdocs_template.yml b/mkdocs_template.yml index 8e6c6569a2..726b69e31a 100644 --- a/mkdocs_template.yml +++ b/mkdocs_template.yml @@ -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 @@ -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: @@ -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