-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
121 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
|
||
blog_md_file_dir = './source/_posts' | ||
blog_public_dir = './public' | ||
|
||
user = '' | ||
repo = '' | ||
branch = 'main' | ||
is_refresh_tag = False # 如果开启需要token | ||
token = '' | ||
|
||
|
||
cdn_list = ['https://jsd.cdn.zzko.cn/gh/', 'https://cdn.jsdelivr.us/gh/', | ||
'https://cdn.jsdelivr.ren/gh/', 'https://cdn.jsdelivr.net/gh/', 'https://raw.githubusercontent.com/'] | ||
|
||
is_output_to_txt = False # 输出md文件中的url到txt文件urls_in_md.txt | ||
|
||
is_import_html_to_conf = True # 导入“blog_public_dir”中的html到pic.conf | ||
html_file_to_ignore = [''] | ||
|
||
is_use_proxy = False # 使用代理 | ||
if is_use_proxy: | ||
proxies_dict = {'http': 'socks5://127.0.0.1:10808', | ||
'https': 'socks5://127.0.0.1:10808'} | ||
else: | ||
proxies_dict = {} | ||
dir_for_custom_conf = 'dir_for_custom_conf' # 储存文件的文件夹名称 | ||
headers = { | ||
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36', | ||
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7', | ||
'Accept-Language': 'ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3', | ||
'Accept-Encoding': 'gzip, deflate, br', | ||
'Sec-Ch-Ua-Platform': "Windows", | ||
'Cache-Control': 'no-cache', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters