Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

您好,没有配置文件config.ini导致错误,能否提供一下这个文件,谢谢您 #4

Open
felix2chow opened this issue Oct 30, 2022 · 2 comments

Comments

@felix2chow
Copy link

Traceback (most recent call last):
File "/main.py", line 399, in
main()
File "/main.py", line 346, in main
md_store_path_prefix = get_github_action_arg()
File "/utils.py", line 53, in get_github_action_arg
cfg["notion"]["token"]
File "/usr/local/lib/python3.7/configparser.py", line 958, in getitem
raise KeyError(key)
KeyError: 'notion'

@jacky10001
Copy link
Owner

Hi~ 用記事本建下面的內容並保存成 config.ini 即可

[notion]
token = YOUR_NOTION_API
database_id = YOUR_NOTION_DATABASE_ID

[img_store]
#local, github
type = local  
path_prefix = content/blogs
url_path_prefix = /blogs
github_token = 
github_repo = 
github_branch = 

[md_store]
path_prefix = content/blogs

為方便在本機端測試原作者的程式碼
因此將 akkuman/akkuman.github.io/.github/workflows/xxx.yml 裡的參數改到 config.ini 進行測試


以下簡易說明各 section 用法

  • [notion] 的部分我引用原作者的說明

  • [img_store] 的部分目前只有測試本地端儲存 (因為我沒有像原作者用github圖床,近期也沒時間測試 :< )

  • [md_store] 的部分就是文章儲存位置

@jacky10001
Copy link
Owner

please refer to file config.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants