diff --git a/README.md b/README.md index a6d3c1e..10ee5ab 100644 --- a/README.md +++ b/README.md @@ -3,12 +3,10 @@ ## Links - [Demo site](https://salif.github.io/linkita/en/) -- [Demo source on Codeberg](https://codeberg.org/salif/linkita-demo) -- [Demo source on GitHub](https://github.com/salif/linkita/tree/demo) - -- [Linkita source on Codeberg](https://codeberg.org/salif/linkita) -- [Linkita source on GitHub](https://github.com/salif/linkita) - +- [Demo source](https://codeberg.org/salif/linkita-demo) +- [Demo source mirror](https://github.com/salif/linkita/tree/demo) +- [Theme source](https://codeberg.org/salif/linkita) +- [Theme source mirror](https://github.com/salif/linkita) - [Matrix chat room](https://matrix.to/#/#linkita:mozilla.org) - [Zola Themes Collection](https://salif.github.io/zola-themes-collection/) diff --git a/justfile b/justfile index 41c372f..be04c9c 100755 --- a/justfile +++ b/justfile @@ -1,28 +1,31 @@ #!/usr/bin/env -S just --justfile -just := just_executable() + " --justfile '" + justfile() + "'" +just := just_executable() zola := "zola" git := "git" browser := "brave" screenshot_url := "http://127.0.0.1:1111" _: - @command {{ just }} --list --unsorted + @command {{ just }} --list --list-heading 'Available recipes for demo:{{ "\n" }}' [group('dev')] [private] serve-and args='': command {{ zola }} serve {{ args }} --interface 0.0.0.0 --base-url \ - $(ip -o route get to 8.8.8.8 | sed -n 's/.*src \([0-9.]\+\).*/\1/p') + "$(ip -o route get to 8.8.8.8 | sed -n 's/.*src \([0-9.]\+\).*/\1/p')" +[doc('Serve the demo site')] [group('dev')] -serve: (serve-and) +serve: serve-and +[doc('git push')] [group('dev')] push-demo: command {{ git }} push codeberg-demo demo command {{ git }} push github demo +[doc('Format source code')] [group('dev')] format: command {{ just }} --fmt --unstable @@ -39,8 +42,9 @@ set-screenshot-mode mode='light' schema='org.x.apps.portal': fi [group('dev')] -add-screenshot screenshot_url=screenshot_url browser=browser: - command {{ browser }} --headless --disable-gpu --screenshot=static/images/screenshot.png --window-size=1400,936 \ - --hide-scrollbars --force-device-scale-factor=1.2 "{{ screenshot_url }}/en/" +update-screenshot screenshot_url=screenshot_url browser=browser: + command {{ browser }} --headless --disable-gpu --screenshot=static/images/screenshot.png \ + --window-size=1400,936 --hide-scrollbars --force-device-scale-factor=1.2 "{{ screenshot_url }}/en/" magick static/images/screenshot.png -gravity north -crop '1360x765+0+0' static/images/screenshot.png -mat2 --inplace static/images/screenshot.png + cp static/images/screenshot.png ./themes/linkita/screenshot.png diff --git a/static/processed_images/04-gutenberg.faa753e9bf9c7908.jpg b/static/processed_images/04-gutenberg.faa753e9bf9c7908.jpg index 593fb78..f3c6cb5 100644 Binary files a/static/processed_images/04-gutenberg.faa753e9bf9c7908.jpg and b/static/processed_images/04-gutenberg.faa753e9bf9c7908.jpg differ diff --git a/static/processed_images/05-example.ae15f30d897ab593.jpg b/static/processed_images/05-example.ae15f30d897ab593.jpg index 084ed0b..e5df1c1 100644 Binary files a/static/processed_images/05-example.ae15f30d897ab593.jpg and b/static/processed_images/05-example.ae15f30d897ab593.jpg differ diff --git a/static/processed_images/06-example.c154d01e3ae79960.jpg b/static/processed_images/06-example.c154d01e3ae79960.jpg index be4c4a3..23fa0f8 100644 Binary files a/static/processed_images/06-example.c154d01e3ae79960.jpg and b/static/processed_images/06-example.c154d01e3ae79960.jpg differ diff --git a/static/processed_images/07-example.0bae5e2aea7a32b4.jpg b/static/processed_images/07-example.0bae5e2aea7a32b4.jpg index b4d3422..5367ad9 100644 Binary files a/static/processed_images/07-example.0bae5e2aea7a32b4.jpg and b/static/processed_images/07-example.0bae5e2aea7a32b4.jpg differ diff --git a/static/processed_images/08-example.5c0108fc0d117d1c.jpg b/static/processed_images/08-example.5c0108fc0d117d1c.jpg index 6b6f170..fe2767e 100644 Binary files a/static/processed_images/08-example.5c0108fc0d117d1c.jpg and b/static/processed_images/08-example.5c0108fc0d117d1c.jpg differ diff --git a/themes/linkita b/themes/linkita index 7fb96c1..663cdb9 160000 --- a/themes/linkita +++ b/themes/linkita @@ -1 +1 @@ -Subproject commit 7fb96c1c986bb5449bef19953cc9ed353822450f +Subproject commit 663cdb93a1f391f02a6352e35fee7ef9a764adf6