Mercurial > yakumo_izuru > aya
comparison README.md @ 60:cf7277e42ece draft
Add serve function, update documentation accordingly
Signed-off-by: Izuru Yakumo <yakumo.izuru@chaotic.ninja>
author | yakumo.izuru |
---|---|
date | Fri, 21 Apr 2023 23:06:28 +0000 |
parents | c6785950280e |
children | 0716397c44e8 |
comparison
equal
deleted
inserted
replaced
59:ed3aa9aaad0a | 60:cf7277e42ece |
---|---|
15 | 15 |
16 ## Installation | 16 ## Installation |
17 | 17 |
18 Build it manually assuming you have Go installed: | 18 Build it manually assuming you have Go installed: |
19 | 19 |
20 $ go install marisa.chaotic.ninja/aya@latest | 20 $ go install marisa.chaotic.ninja/aya/cmd/aya@latest |
21 | 21 |
22 ## Ideology | 22 ## Ideology |
23 | 23 |
24 Keep your texts in markdown, or HTML format right in the main directory | 24 Keep your texts in markdown, or HTML format right in the main directory |
25 of your blog/site. | 25 of your blog/site. |
64 title=`$AYA var $f title | tr A-Z a-z` | 64 title=`$AYA var $f title | tr A-Z a-z` |
65 descr=`$AYA var $f description` | 65 descr=`$AYA var $f description` |
66 echo $timestamp \ | 66 echo $timestamp \ |
67 "<item>" \ | 67 "<item>" \ |
68 "<title>$title</title>" \ | 68 "<title>$title</title>" \ |
69 "<link>http://ayaerge.com/$url</link>" \ | 69 "<link>http://zserge.com/$url</link>" \ |
70 "<description>$descr</description>" \ | 70 "<description>$descr</description>" \ |
71 "<pubDate>$(date --date @$timestamp -R)</pubDate>" \ | 71 "<pubDate>$(date --date @$timestamp -R)</pubDate>" \ |
72 "<guid>http://ayaerge.com/$url</guid>" \ | 72 "<guid>http://zserge.com/$url</guid>" \ |
73 "</item>" | 73 "</item>" |
74 fi | 74 fi |
75 done | sort -r -n | cut -d' ' -f2- | 75 done | sort -r -n | cut -d' ' -f2- |
76 ``` | 76 ``` |
77 | 77 |
91 | 91 |
92 `aya build` re-builds your site. | 92 `aya build` re-builds your site. |
93 | 93 |
94 `aya build <file>` re-builds one file and prints resulting content to stdout. | 94 `aya build <file>` re-builds one file and prints resulting content to stdout. |
95 | 95 |
96 `aya watch` rebuilds your site every time you modify any file. | 96 `aya serve` serves your site over HTTP. |
97 | 97 |
98 `aya var <filename> [var1 var2...]` prints a list of variables defined in the | 98 `aya var <filename> [var1 var2...]` prints a list of variables defined in the |
99 header of a given markdown file, or the values of certain variables (even if | 99 header of a given markdown file, or the values of certain variables (even if |
100 it's an empty string). | 100 it's an empty string). |
101 | 101 |
102 `aya watch` rebuilds your site every time you modify any file. | |
103 | |
102 ## License | 104 ## License |
103 | 105 |
104 The software is distributed under the MIT license. | 106 The software is distributed under the MIT license. |