This is a concise framework for github blog writing. There exists many framworks, i.e. Hexo, Jekyll, etc.. But in my workflow, though makrdown is simple enough, I usually use note software, like Evernote, Wiz, Youdao Note which record my thoughts and good articles, alternatively, they are suitable for a editor. Therefore, I think that maybe I can make a software to generate static pages like Hexo, but the content is generated by note software.
You can Google it easily.
Clone the repo and put it in a floder. Then run
python deploy.py
Just Google the software U used. Maybe you are requested to be a paid user.
The json file have 3 keys: url, file and delay.
- url. url is a string or an array of strings. You put the sharing links here.
- file. file is a string or an array of strings. You put the file names here.
- delay. delay is an integer which shows the delay time.
python noteshare.py
The html files store in ./public/articles/.
-Note-:
The noteshare also supports arguments for single html generation. If the arguments aren't empty, the arguments first.
- --mode default is 1 item generation. If --mode is not 0, it means many items generation.
- --file
- --url
- --delay
You can put your favicon in public folder. python noteshare.py --mode=2 --delay=3
The json file have 3 keys: items_of_every_page, css and title.
- items_of_every_page. The number of items shown in each main page.
- css. The markdown css render file. link
- title. The blog title.
index file is the file written titles, descriptions and links. The format is:
title1
desp1
/articles/my_blog1
---
title2
desp2
/articles/my_blog2
"---" is the separator or comment symbol.
python gindex.py
Then open browser, input localhost:8888.