diff --git a/.gitignore b/.gitignore index 6bea9c7..d46727f 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ _*.css node_modules/ *.min.* /api/apis.json +/api/pages.json /api_hash diff --git a/TODO.md b/TODO.md index 57503b0..cd690a5 100644 --- a/TODO.md +++ b/TODO.md @@ -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 diff --git a/scripts/apis.sh b/scripts/apis.sh index 8c86eef..aa7f204 100755 --- a/scripts/apis.sh +++ b/scripts/apis.sh @@ -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' '['