squash merge readme-update
This commit is contained in:
parent
ae6650c775
commit
9fea7d8275
25
README.md
25
README.md
@ -5,7 +5,7 @@ Simple and stylish text-to-html microblog generator.
|
|||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
python3 make dateutil toml curl pycurl urllib
|
python3 dateutil toml make curl pycurl urllib
|
||||||
|
|
||||||
* `dateutil`, `toml` are Python modules.
|
* `dateutil`, `toml` are Python modules.
|
||||||
* `make` (optional), method for invoking the script.
|
* `make` (optional), method for invoking the script.
|
||||||
@ -13,19 +13,20 @@ Simple and stylish text-to-html microblog generator.
|
|||||||
|
|
||||||
### Usage
|
### Usage
|
||||||
|
|
||||||
Send three arguments minimum to `python`. The fourth argument for an e-mail address is optional.
|
The following generates a sample page `result.html`.
|
||||||
|
|
||||||
python microblog.py ./template.html ./content.txt
|
|
||||||
|
|
||||||
The resulting web page is outputted from standard output. Therefore:
|
|
||||||
|
|
||||||
python microblog.py ./template.html ./content.txt > result.html
|
|
||||||
|
|
||||||
Use a Makefile (or another script) to simplify invocation.
|
|
||||||
|
|
||||||
cp example/Makefile .
|
cp example/Makefile .
|
||||||
|
make
|
||||||
|
|
||||||
|
Using `make` is uptional; it does the following within a new directory:
|
||||||
|
|
||||||
|
cp example/timeline.css ./timeline.css
|
||||||
|
cp example/default.tpl ./template.tpl
|
||||||
|
cp example/demo.txt ./content.txt
|
||||||
|
python microblog.py ./template.tpl ./content.txt > result.html
|
||||||
|
|
||||||
This script generate a text file after operation.
|
This script generate a text file after operation.
|
||||||
|
|
||||||
* `updatedfiles.txt`, a list of files updated by the script for use in automated uploads.
|
* `updatedfiles.txt`, a list of files updated by the script for use in automated uploads.
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
@ -46,7 +47,7 @@ The content file is a plain text file of posts. Each post has two types of infor
|
|||||||
|
|
||||||
Thu Mar 16 2:22:22 PM EDT 2022
|
Thu Mar 16 2:22:22 PM EDT 2022
|
||||||
I took these pictures.
|
I took these pictures.
|
||||||
./images/1.jpg ./images/2.jpg ./images/3.jpg
|
/images/1.jpg /images/2.jpg /images/3.jpg
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -58,4 +59,4 @@ The content file is a plain text file of posts. Each post has two types of infor
|
|||||||
|
|
||||||
This is a script I wrote for personal use. The output can be seen on [https://likho.neocities.org/microblog/index.html](https://likho.neocities.org/microblog/index.html). I figure someone else may want to use it for their own personal websites, so it is published.
|
This is a script I wrote for personal use. The output can be seen on [https://likho.neocities.org/microblog/index.html](https://likho.neocities.org/microblog/index.html). I figure someone else may want to use it for their own personal websites, so it is published.
|
||||||
|
|
||||||
It works for me and my workflow; therefore, it is simple and involves little lines of code. But I am still open to comments, questions, or suggetions.
|
It works for me and my workflow; therefore, it is simple and involves little lines of code. But I am still open to comments, questions, or suggestions.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user