From 232666e69b8a4163033f5d3386a8802d681207c2 Mon Sep 17 00:00:00 2001 From: Salif Mehmed Date: Sat, 14 Dec 2024 14:13:35 +0200 Subject: [PATCH] Remove zola-pulladidoks-theme --- .gitmodules | 3 -- content/home/data.toml | 53 ----------------------------------- justfile | 27 ++++++++++++++++++ themes/zola-pulladidoks-theme | 1 - 4 files changed, 27 insertions(+), 57 deletions(-) delete mode 160000 themes/zola-pulladidoks-theme diff --git a/.gitmodules b/.gitmodules index 683c7dde..12520b21 100644 --- a/.gitmodules +++ b/.gitmodules @@ -13,9 +13,6 @@ [submodule "themes/linkita"] path = themes/linkita url = https://codeberg.org/salif/linkita-demo.git -[submodule "themes/zola-pulladidoks-theme"] - path = themes/zola-pulladidoks-theme - url = https://github.com/ShawnPConroy/zola-pulladidoks-theme.git [submodule "themes/researchlab"] path = themes/researchlab url = https://codeberg.org/plaublin/researchlab.git diff --git a/content/home/data.toml b/content/home/data.toml index 06b97941..c7c0e24b 100644 --- a/content/home/data.toml +++ b/content/home/data.toml @@ -208,59 +208,6 @@ theme = "linkita" url = "#info-linkita" js = "const b=document.getElementById('info-linkita').parentElement;if(!b.hasAttribute('open')) b.setAttribute('open', true); this.style.display='none'" -[[project]] -theme = "zola-pulladidoks-theme" -name = "adidoks" -desc = "AdiDoks is a Zola theme helping you build modern documentation." -tags = [ ] -details = """ -
- -### Installation -0. Create a new Zola site: `zola init` and initialize a Git repository: `git init` -1. Download the theme - - Option A. Add the theme as a git submodule: -```sh -git submodule add https://github.com/ShawnPConroy/zola-pulladidoks-theme.git themes/zola-pulladidoks-theme -``` - - Option B. Clone the theme into your themes directory: -```sh -git clone https://github.com/ShawnPConroy/zola-pulladidoks-theme.git themes/zola-pulladidoks-theme -``` -2. Set theme in your `config.toml` -```toml -theme = "zola-pulladidoks-theme" -``` - -
- -### Info -- **Author**: [Aaran Xu](https://github.com/aaranxu) -- **License**: MIT -- **Homepage**: -- **Off. Live Demo**: -- **Min version**: 0.15.0 -- **Original**: -
""" - - [[project.links]] - name = "Live Demo" - url = "https://salif.github.io/zola-themes-collection/demo/zola-pulladidoks-theme/" - - [[project.links]] - name = "Repository" - url = "https://github.com/ShawnPConroy/zola-pulladidoks-theme" - - [[project.links]] - name = "Install" - url = "#install-zola-pulladidoks-theme" - js = "const b=document.getElementById('install-zola-pulladidoks-theme').parentElement;if(!b.hasAttribute('open')) b.setAttribute('open', true); this.style.display='none'" - - [[project.links]] - name = "Info" - url = "#info-zola-pulladidoks-theme" - js = "const b=document.getElementById('info-zola-pulladidoks-theme').parentElement;if(!b.hasAttribute('open')) b.setAttribute('open', true); this.style.display='none'" - [[project]] theme = "researchlab" name = "researchlab" diff --git a/justfile b/justfile index 7852b4d2..1c1b9776 100755 --- a/justfile +++ b/justfile @@ -72,6 +72,33 @@ screenshots-missing: console.error(output.join("\n")) } +[group('screenshot'), script('zx'), private] +screenshots-to-remove: + /* + #!/usr/bin/env node */ + const screenshots = await glob("static/screenshots/*") + const output = [] + for (const screenshotPath of screenshots) { + const screenshot = path.basename(screenshotPath) + if (screenshot.startsWith("light-") && screenshot.endsWith(".webp")) { + const demo = screenshot.substring(6, screenshot.length-5) + if (!(await fs.pathExists(path.join("static", "demo", demo)))) { + output.push(screenshot) + } + } else if (screenshot.startsWith("dark-") && screenshot.endsWith(".webp")) { + const demo = screenshot.substring(5, screenshot.length-5) + if (!(await fs.pathExists(path.join("static", "demo", demo)))) { + output.push(screenshot) + } + } else { + output.push(screenshot) + } + } + if (output.length > 0) { + console.error("screenshots to remove:") + console.error(output.join("\n")) + } + [private] local-test-all: command {{ just }} build-demo-all '{{ local_base_url }}' update-data '{{ local_base_url }}' diff --git a/themes/zola-pulladidoks-theme b/themes/zola-pulladidoks-theme deleted file mode 160000 index 214c1b2b..00000000 --- a/themes/zola-pulladidoks-theme +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 214c1b2bf88646d4a20661b89312cb6d64cd84f8