From 211d08f9804c70943d7395175f25096483f006d0 Mon Sep 17 00:00:00 2001 From: Jieiku Date: Sat, 19 Aug 2023 10:39:52 -0700 Subject: Version 2.0.0 Refactor, Add PWA Support --- .github/workflows/actions.yml | 2 +- .gitignore | 2 +- .nojekyll | 1 - COPY-TO-ROOT-SASS/abridge.scss | 2 +- README.md | 22 ++++- config.toml | 28 ++++-- content/pages/offline.fr.md | 10 ++ content/pages/offline.md | 10 ++ netlify.toml | 6 +- package.json | 5 +- sass/abridge.scss | 15 +-- sass/fonts/_Abridge.scss | 31 ------ sass/fonts/_Arimo.scss | 17 ---- sass/fonts/_FiraCode.scss | 5 - sass/fonts/_Roboto-Mono.scss | 4 +- sass/fonts/_Roboto.scss | 6 +- screenshot.png | Bin 53621 -> 53618 bytes static/font/Abridge.woff2 | Bin 768 -> 0 bytes static/font/Arimo-Bold.woff2 | Bin 10008 -> 0 bytes static/font/Arimo-Italic.woff2 | Bin 10972 -> 0 bytes static/font/Arimo.woff2 | Bin 9988 -> 0 bytes static/font/FiraCode.woff2 | Bin 21096 -> 0 bytes static/font/Roboto-Bold.woff2 | Bin 15860 -> 0 bytes static/font/Roboto-Italic.woff2 | Bin 17368 -> 0 bytes static/font/Roboto-Mono-Italic.woff2 | Bin 13572 -> 0 bytes static/font/Roboto-Mono.woff2 | Bin 12312 -> 0 bytes static/font/Roboto.woff2 | Bin 15744 -> 0 bytes static/fonts/Roboto-Bold.woff2 | Bin 0 -> 15860 bytes static/fonts/Roboto-Italic.woff2 | Bin 0 -> 17368 bytes static/fonts/Roboto-Mono-Italic.woff2 | Bin 0 -> 13572 bytes static/fonts/Roboto-Mono.woff2 | Bin 0 -> 12312 bytes static/fonts/Roboto.woff2 | Bin 0 -> 15744 bytes static/js/sw_load.js | 13 +++ static/js/sw_load.min.js | 1 + static/manifest.json | 30 ++++++ static/site.webmanifest | 28 ------ static/stork.st | Bin 312789 -> 0 bytes static/stork.wasm | Bin 336673 -> 0 bytes static/sw.js | 175 ++++++++++++++++++++++++++++++++++ static/sw.min.js | 1 + static/tinysearch_engine_bg.wasm | Bin 96681 -> 0 bytes templates/404.html | 2 +- templates/base.html | 27 ++++-- templates/macros/head.html | 19 +++- templates/macros/social.html | 2 +- templates/page.html | 4 +- theme.toml | 2 +- 47 files changed, 334 insertions(+), 136 deletions(-) create mode 100644 content/pages/offline.fr.md create mode 100644 content/pages/offline.md delete mode 100644 sass/fonts/_Abridge.scss delete mode 100644 sass/fonts/_Arimo.scss delete mode 100644 sass/fonts/_FiraCode.scss delete mode 100644 static/font/Abridge.woff2 delete mode 100644 static/font/Arimo-Bold.woff2 delete mode 100644 static/font/Arimo-Italic.woff2 delete mode 100644 static/font/Arimo.woff2 delete mode 100644 static/font/FiraCode.woff2 delete mode 100644 static/font/Roboto-Bold.woff2 delete mode 100644 static/font/Roboto-Italic.woff2 delete mode 100644 static/font/Roboto-Mono-Italic.woff2 delete mode 100644 static/font/Roboto-Mono.woff2 delete mode 100644 static/font/Roboto.woff2 create mode 100644 static/fonts/Roboto-Bold.woff2 create mode 100644 static/fonts/Roboto-Italic.woff2 create mode 100644 static/fonts/Roboto-Mono-Italic.woff2 create mode 100644 static/fonts/Roboto-Mono.woff2 create mode 100644 static/fonts/Roboto.woff2 create mode 100644 static/js/sw_load.js create mode 100644 static/js/sw_load.min.js create mode 100644 static/manifest.json delete mode 100644 static/site.webmanifest delete mode 100644 static/stork.st delete mode 100644 static/stork.wasm create mode 100644 static/sw.js create mode 100644 static/sw.min.js delete mode 100644 static/tinysearch_engine_bg.wasm diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index 24d267d..af5250c 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -23,4 +23,4 @@ jobs: uses: JamesIves/github-pages-deploy-action@v4 with: branch: master - folder: '.' \ No newline at end of file + folder: '.' diff --git a/.gitignore b/.gitignore index 789108f..0933679 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,8 @@ .env public themes -storage build +storage static/demo.html static/tinysearch_engine.js static/tinysearch_engine.d.ts diff --git a/.nojekyll b/.nojekyll index 8b13789..e69de29 100644 --- a/.nojekyll +++ b/.nojekyll @@ -1 +0,0 @@ - diff --git a/COPY-TO-ROOT-SASS/abridge.scss b/COPY-TO-ROOT-SASS/abridge.scss index 103d91e..855d919 100644 --- a/COPY-TO-ROOT-SASS/abridge.scss +++ b/COPY-TO-ROOT-SASS/abridge.scss @@ -3,7 +3,7 @@ /// The things your less likely to need to override have been commented out. /// Enable a centered viewport for
,
,