api/pages : add pages api

Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
This commit is contained in:
Ari Archer 2023-04-04 23:11:53 +03:00
parent a55acd0200
commit 1e02211e96
3 changed files with 15 additions and 4 deletions

1
.gitignore vendored
View file

@ -2,4 +2,5 @@ _*.css
node_modules/
*.min.*
/api/apis.json
/api/pages.json
/api_hash

View file

@ -5,14 +5,16 @@
- [x] Store files in IndexedDB
- [Overly complex API, i dont want to deliver this much JS, i already deliver quite a package](https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API)
- [x] Export/Import
- [ ] Python code runner
- [x] Python code runner
- `terminal` branch is not being worked on anymore
- [x] Minimal UI framework
- [x] Convert some of the pages to use that framework
- Stupid idea ngl
- [x] WASM
- Fun challenge, but will ruin browser support, although keeping this idea for some commands :)
- [ ] Custom ari-web assembler ?
- [x] Custom ari-web assembler ?
- Ari-web ASM -> (WAT ?) -> WASM -> run
- `terminal` branch is not being worked on anymore
- [ ] More theme generators
- [ ] ViM themes
- [ ] Suckless themes

View file

@ -9,11 +9,19 @@ mkdata() {
}
main() {
printf ' * %s... ' 'Generating pages api'
{
printf '%s' '['
for page in page/*; do
echo "$page" | mkdata | sed 's/,$//'
done
echo ']'
} >api/pages.json
printf ' * %s... ' 'Generating api list'
apis='api/apis.json'
: >"$apis"
# shellcheck disable=SC2094
{
printf '%s' '['