Skip to content

Commit 0c54781

Browse files
committed
Initial commit
1 parent 3d765ab commit 0c54781

32 files changed

+682
-46
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ permissions:
44
contents: write
55

66
jobs:
7-
report:
7+
deploy:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Checkout
@@ -13,11 +13,12 @@ jobs:
1313
- name: Install Deps
1414
run: |
1515
sudo apt-get install libcmark-dev curl
16-
curl -L https://codeberg.org/0ref/jelly/releases/download/0.1.0/jelly-linux-x86_64 --output jelly
16+
curl -L https://codeberg.org/0ref/jelly/releases/download/0.1.1/jelly-linux-x86_64 --output jelly
1717
curl -L https://github.com/wilsonzlin/minify-html/releases/download/v0.15.0/minhtml-0.15.0-x86_64-unknown-linux-gnu --output minhtml
1818
chmod +x ./jelly
1919
chmod +x ./minhtml
2020
./jelly -i src -o build
21+
cp -r ./public/* build/
2122
./minhtml --keep-closing-tags --minify-css --minify-js \
2223
--keep-spaces-between-attributes \
2324
--keep-input-type-text-attr \

build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ if [ "$CMD" = "clean" ]; then
99
rm -rf $BUILD
1010
exit 0
1111
elif [ "$CMD" = "serve" ]; then
12-
find src/ | entr -rs "jelly -i src -o $BUILD && python3 -m http.server -d $BUILD 4000"
12+
find src/ public/ | entr -rs "jelly -i src -o $BUILD && ln -sf "$PWD/public/*" $BUILD/ && python3 -m http.server -d $BUILD 4000"
1313
exit 0
1414
else
15-
echo "Invalid command '$CMD', Available commands are: clean/serve/release."
15+
echo "Invalid command '$CMD', Available commands are: clean/serve."
1616
exit 1
1717
fi

public/css/styles.css

Lines changed: 158 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,158 @@
1+
@font-face {
2+
font-family: 'Liberation Mono';
3+
src: url('/fonts/liberation-mono/LiberationMono.woff2') format('woff2'), url('/fonts/liberation-mono/LiberationMono.woff') format('woff');
4+
font-weight: 400;
5+
font-style: normal;
6+
font-display: swap
7+
}
8+
@font-face {
9+
font-family: 'Liberation Mono';
10+
src: url('/fonts/liberation-mono/LiberationMono-Italic.woff2') format('woff2'), url('/fonts/liberation-mono/LiberationMono-Italic.woff') format('woff');
11+
font-weight: 400;
12+
font-style: italic;
13+
font-display: swap
14+
}
15+
@font-face {
16+
font-family: 'Liberation Mono';
17+
src: url('/fonts/liberation-mono/LiberationMono-Bold.woff2') format('woff2'), url('/fonts/liberation-mono/LiberationMono-Bold.woff') format('woff');
18+
font-weight: 700;
19+
font-style: normal;
20+
font-display: swap
21+
}
22+
@font-face {
23+
font-family: 'Liberation Mono';
24+
src: url('/fonts/liberation-mono/LiberationMono-BoldItalic.woff2') format('woff2'), url('/fonts/liberation-mono/LiberationMono-BoldItalic.woff') format('woff');
25+
font-weight: 700;
26+
font-style: italic;
27+
font-display: swap
28+
}
29+
30+
* {
31+
margin: 0;
32+
padding: 0;
33+
box-sizing: border-box;
34+
font-smooth: never;
35+
font-kerning: normal;
36+
font-feature-settings: kern;
37+
text-rendering: optimizeLegibility;
38+
-webkit-font-smoothing: antialiased;
39+
-moz-osx-font-smoothing: grayscale;
40+
scroll-behavior: smooth;
41+
}
42+
43+
:root {
44+
font-size: 110%;
45+
letter-spacing: -0.5px;
46+
line-height: 1.3;
47+
font-family: "Liberation Mono", monospace;
48+
tab-size: 2;
49+
}
50+
51+
body {
52+
color: #000;
53+
background: #FFF;
54+
margin: 1rem auto 3rem auto;
55+
padding: 0 0.75rem;
56+
max-width: 600px;
57+
}
58+
59+
body, p, pre, code {
60+
font-size: 1rem;
61+
}
62+
h1, h2, h3, h4, h5, h6 {
63+
text-transform: capitalize;
64+
font-weight: 400;
65+
letter-spacing: 0.5px;
66+
margin-top: 1.75rem;
67+
}
68+
p {
69+
margin-top: 1.5rem;
70+
}
71+
h1 + p, h2 + p, h3 + p, h4 + p, h5 + p, h6 + p {
72+
margin-top: 0.5rem;
73+
}
74+
75+
ul, ol {
76+
margin-top: 1rem;
77+
}
78+
ul {
79+
padding-left: 1.25rem;
80+
}
81+
ol {
82+
padding-left: 1.75rem;
83+
}
84+
ul > li:not(:first-of-type), ol > li:not(:first-of-type) {
85+
margin-top: 0.25rem;
86+
}
87+
ul {
88+
list-style: none;
89+
}
90+
ul li:before {
91+
content: "- ";
92+
margin-left: -2ch;
93+
width: 2ch;
94+
display: inline-block;
95+
}
96+
97+
a, a:visited {
98+
color: #000;
99+
text-decoration-color: #000 !important;
100+
line-height: 1.5 !important;
101+
text-decoration: underline;
102+
text-underline-offset: 0.17rem;
103+
}
104+
a:hover {
105+
text-decoration: none;
106+
}
107+
108+
hr {
109+
border-top: 1px solid #000;
110+
}
111+
112+
img {
113+
display: block;
114+
margin: 0 auto;
115+
max-width: 100%;
116+
height: auto;
117+
}
118+
119+
pre {
120+
overflow: auto;
121+
scrollbar-width: thin;
122+
white-space: pre;
123+
margin-top: 1rem;
124+
margin-left: 0.5rem;
125+
}
126+
pre code, pre {
127+
background: none !important;
128+
}
129+
pre code {
130+
padding: 0 !important;
131+
}
132+
code:not(pre code) {
133+
color: #000 !important;
134+
font-weight: bold;
135+
}
136+
137+
body > nav > a:not(:first-of-type) {
138+
margin-left: 1ch;
139+
}
140+
141+
body > header > div > time {
142+
display: inline;
143+
font-size: 0.9rem;
144+
opacity: 0.75;
145+
}
146+
body > header > div > time.modified_on {
147+
font-style: italic;
148+
margin-left: 0.5rem;
149+
}
150+
body > header > div > time:empty {
151+
display: none;
152+
}
153+
body > header > div > time.modified_on:before {
154+
content: "(Edited: "
155+
}
156+
body > header > div > time.modified_on:after {
157+
content: ")";
158+
}

public/favicon.png

3.86 KB
Loading
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)