-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.sswg
97 lines (67 loc) · 1.84 KB
/
index.sswg
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# left, bold, width 1000, size 5
Simple Static Website Generator
# size 1.5, normal
A Markdown inspired markup language.
Converts the text files in a folder into web pages.
Use the tags below to style it.
## Installation
1) Install Python
2) Install sswg:
```
pip install https://github.com/pokepetter/sswg/archive/refs/heads/master.zip
```
## How to Run
cd into the folder where your text files are and run:
```
python -m sswg
```
## Tags
```
- # size 1.25
- # width 900
- # left, right, center
- # normal, bold, bolder, lighter
- # image imagename
- # arial, times, helvetica, courier, verdana, tahoma, bookman, monospace
- # background colorname
- # code (start code block)
- # text (end code block)
- # insert some_file.txt
- ## (create header with size 2)
- ### (create header with size 3)
- #### (create header with size 6)
- [Button Name, https://pokepetter.github.io/sswg/]
- [Button Name, https://pokepetter.github.io/sswg/, image_name.jpg] (big button)
- [Button Name, header name]
- # insert other_file.txt
- # index other_file.text (creates links to all the headers(##) in the file)
```
## Style Override
Create a style.css file and it will get loaded automatically.
This will style all the pages in the project.
To style a specific page, you can include the style inside < style > tags at
the top of the document
## Example Website
```
# center, bold, arial, size 5
ursina engine
ʕ •ᴥ•ʔゝ□
# size 1.25, bold
--------------------------------------
# normal
pip install ursina
# bold
--------------------------------------
# left, width 900, size 2
Powered by Python
# normal, size 1
Lorem Ipsum sit dolor et amet.
```
# image example_website.jpg
## Made with sswg
https://www.ursinaengine.org/
https://pokepetter.github.io/sswg/
https://pokepetter.github.io/taptapir/website/sunsnake.html
(\_/)
(>.<)
(")_(")