-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontent.amd
41 lines (30 loc) · 1.27 KB
/
content.amd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
$TITLE Auto HTML
$STYLE basic-dark.css
# About Auto HTML
## Usage
To use auto HTML fork this repo, change `content.amd` to whatever you want and commit+push the changes. First two lines of `content.amd` should specify the title and the theme of the website, then the content comes. Content should be written in [markdown](https://daringfireball.net/projects/markdown/syntax "Markdown syntax").
### Example of `content.amd`
#!markdown
$TITLE Hello World
$STYLE basic-dark.css
# Hello World
Some normal text...
#!python
# this is a code block
for i in range (len("Hello World")):
print("Hello World")
- this
- is
- a
- list
`$STYLE` should be name of a file from `themes` and `$TITLE` title of your page (it will be used to set the main title on the website and name of the tab)
## How does it work?
When `content.amd` is changed in a push action, `actions.yml` will run `build.py`. `build.py` will, using markdown module, translate markdown from `content.amd` into HTML and write it to `index.html`. At the end changes will be pushed to repo. Pushing to `index.html` will trigger action `static.yml`, which will deploy `index.html` to github pages.
- hello
- bullet
- sub list
- asdasd
- asd
1. hello
1. world
1. !