From 574cba06511ce4d4d8ef868f02cd2c4294876b49 Mon Sep 17 00:00:00 2001 From: Joris Mertz Date: Tue, 11 Jun 2024 02:42:23 +0200 Subject: [PATCH 1/6] create styles directory s --- build.sh | 2 +- {4get => styles/4get}/readme.md | 0 {4get => styles/4get}/rose-pine.user.css | 0 {brave-search => styles/brave-search}/readme.md | 4 ++-- {brave-search => styles/brave-search}/rose-pine.user.css | 2 +- {chatgpt => styles/chatgpt}/readme.md | 4 ++-- {chatgpt => styles/chatgpt}/rose-pine.user.css | 2 +- {github => styles/github}/readme.md | 0 {github => styles/github}/rose-pine.user.css | 2 +- {jira => styles/jira}/readme.md | 4 ++-- {jira => styles/jira}/rose-pine.user.css | 2 +- {octopus => styles/octopus}/readme.md | 4 ++-- {octopus => styles/octopus}/rose-pine.user.css | 2 +- {proton => styles/proton}/readme.md | 4 ++-- {proton => styles/proton}/rose-pine.user.css | 2 +- {scribe => styles/scribe}/readme.md | 0 {scribe => styles/scribe}/rose-pine.user.css | 0 {twitch => styles/twitch}/readme.md | 4 ++-- {twitch => styles/twitch}/rose-pine.user.css | 2 +- {wikiwand => styles/wikiwand}/readme.md | 2 +- {wikiwand => styles/wikiwand}/rose-pine.user.css | 2 +- {youtube => styles/youtube}/readme.md | 2 +- {youtube => styles/youtube}/rose-pine.user.css | 2 +- {zimbra => styles/zimbra}/readme.md | 0 {zimbra => styles/zimbra}/rose-pine.user.css | 0 25 files changed, 24 insertions(+), 24 deletions(-) rename {4get => styles/4get}/readme.md (100%) rename {4get => styles/4get}/rose-pine.user.css (100%) rename {brave-search => styles/brave-search}/readme.md (91%) rename {brave-search => styles/brave-search}/rose-pine.user.css (99%) rename {chatgpt => styles/chatgpt}/readme.md (91%) rename {chatgpt => styles/chatgpt}/rose-pine.user.css (99%) rename {github => styles/github}/readme.md (100%) rename {github => styles/github}/rose-pine.user.css (99%) rename {jira => styles/jira}/readme.md (94%) rename {jira => styles/jira}/rose-pine.user.css (99%) rename {octopus => styles/octopus}/readme.md (91%) rename {octopus => styles/octopus}/rose-pine.user.css (99%) rename {proton => styles/proton}/readme.md (95%) rename {proton => styles/proton}/rose-pine.user.css (99%) rename {scribe => styles/scribe}/readme.md (100%) rename {scribe => styles/scribe}/rose-pine.user.css (100%) rename {twitch => styles/twitch}/readme.md (91%) rename {twitch => styles/twitch}/rose-pine.user.css (99%) rename {wikiwand => styles/wikiwand}/readme.md (93%) rename {wikiwand => styles/wikiwand}/rose-pine.user.css (99%) rename {youtube => styles/youtube}/readme.md (98%) rename {youtube => styles/youtube}/rose-pine.user.css (99%) rename {zimbra => styles/zimbra}/readme.md (100%) rename {zimbra => styles/zimbra}/rose-pine.user.css (100%) diff --git a/build.sh b/build.sh index 0893e3a..01f0bfc 100644 --- a/build.sh +++ b/build.sh @@ -1,2 +1,2 @@ -npx prettier@latest --parser=less --write ./**/*.css +npx prettier@latest --parser=less --write ./styles/**/*.css npx prettier@latest --write ./**/*.md diff --git a/4get/readme.md b/styles/4get/readme.md similarity index 100% rename from 4get/readme.md rename to styles/4get/readme.md diff --git a/4get/rose-pine.user.css b/styles/4get/rose-pine.user.css similarity index 100% rename from 4get/rose-pine.user.css rename to styles/4get/rose-pine.user.css diff --git a/brave-search/readme.md b/styles/brave-search/readme.md similarity index 91% rename from brave-search/readme.md rename to styles/brave-search/readme.md index 93b738f..1c6eb8d 100644 --- a/brave-search/readme.md +++ b/styles/brave-search/readme.md @@ -9,12 +9,12 @@ - +

## Usage -1. Make sure you have the [Stylus](https://github.com/openstyles/stylus) browser extension installed, then visit [this link](https://github.com/rose-pine/userstyles/raw/main/brave-search/rose-pine.user.css) +1. Make sure you have the [Stylus](https://github.com/openstyles/stylus) browser extension installed, then visit [this link](https://github.com/rose-pine/userstyles/raw/main/styles/brave-search/rose-pine.user.css) 2. Configure your preferred accent color and theme variant 3. Click install on the top left diff --git a/brave-search/rose-pine.user.css b/styles/brave-search/rose-pine.user.css similarity index 99% rename from brave-search/rose-pine.user.css rename to styles/brave-search/rose-pine.user.css index 84335b9..742eee0 100644 --- a/brave-search/rose-pine.user.css +++ b/styles/brave-search/rose-pine.user.css @@ -6,7 +6,7 @@ @author Adrian Karlén (https://github.com/adriankarlen/) @namespace https://github.com/rose-pine/ @homepageURL https://github.com/rose-pine/userstyles - @updateURL https://github.com/rose-pine/userstyles/raw/main/brave-search/rose-pine.user.css + @updateURL https://github.com/rose-pine/userstyles/raw/main/styles/brave-search/rose-pine.user.css @preprocessor less @var select lightVariant "Light variant" ["default:Rosé Pine*", "moon:Rosé Pine Moon", "dawn:Rosé Pine Dawn"] diff --git a/chatgpt/readme.md b/styles/chatgpt/readme.md similarity index 91% rename from chatgpt/readme.md rename to styles/chatgpt/readme.md index d63e191..29edaa2 100644 --- a/chatgpt/readme.md +++ b/styles/chatgpt/readme.md @@ -9,12 +9,12 @@ - +

## Usage -1. Make sure you have the [Stylus](https://github.com/openstyles/stylus) browser extension installed, then visit [this link](https://github.com/rose-pine/userstyles/raw/main/chatgpt/rose-pine.user.css) +1. Make sure you have the [Stylus](https://github.com/openstyles/stylus) browser extension installed, then visit [this link](https://github.com/rose-pine/userstyles/raw/main/styles/chatgpt/rose-pine.user.css) 2. Configure your preferred accent color and theme variant 3. Click install on the top left diff --git a/chatgpt/rose-pine.user.css b/styles/chatgpt/rose-pine.user.css similarity index 99% rename from chatgpt/rose-pine.user.css rename to styles/chatgpt/rose-pine.user.css index 05f18b3..d6dd267 100644 --- a/chatgpt/rose-pine.user.css +++ b/styles/chatgpt/rose-pine.user.css @@ -6,7 +6,7 @@ @author Adrian Karlén (https://github.com/adriankarlen/) @namespace https://github.com/rose-pine/ @homepageURL https://github.com/rose-pine/userstyles - @updateURL https://github.com/rose-pine/userstyles/raw/main/chatgpt/rose-pine.user.css + @updateURL https://github.com/rose-pine/userstyles/raw/main/styles/chatgpt/rose-pine.user.css @preprocessor less @var select variant "Variant" ["default:Rosé Pine*", "moon:Rosé Pine Moon", "dawn:Rosé Pine Dawn"] diff --git a/github/readme.md b/styles/github/readme.md similarity index 100% rename from github/readme.md rename to styles/github/readme.md diff --git a/github/rose-pine.user.css b/styles/github/rose-pine.user.css similarity index 99% rename from github/rose-pine.user.css rename to styles/github/rose-pine.user.css index 228c57a..eb23b16 100644 --- a/github/rose-pine.user.css +++ b/styles/github/rose-pine.user.css @@ -6,7 +6,7 @@ @author Joris Mertz (https://github.com/jorismertz/) @namespace https://github.com/rose-pine/ @homepageURL https://github.com/rose-pine/userstyles -@updateURL https://github.com/rose-pine/userstyles/raw/main/github/rose-pine.user.css +@updateURL https://github.com/rose-pine/userstyles/raw/main/styles/github/rose-pine.user.css @preprocessor less @var select lightFlavor "Light Flavor" ["main:Rosé Pine", "moon:Rosé Pine Moon", "dawn:Rosé Pine Dawn*"] @var select darkFlavor "Dark Flavor" ["main:Rosé Pine*", "moon:Rosé Pine Moon", "dawn:Rosé Pine Dawn"] diff --git a/jira/readme.md b/styles/jira/readme.md similarity index 94% rename from jira/readme.md rename to styles/jira/readme.md index b0291ad..bb13dc5 100644 --- a/jira/readme.md +++ b/styles/jira/readme.md @@ -6,14 +6,14 @@ - +

## Usage -1. Make sure you have the [Stylus](https://github.com/openstyles/stylus) browser extension installed, then visit [this link](https://github.com/rose-pine/userstyles/raw/main/jira/rose-pine.user.css). +1. Make sure you have the [Stylus](https://github.com/openstyles/stylus) browser extension installed, then visit [this link](https://github.com/rose-pine/userstyles/raw/main/styles/jira/rose-pine.user.css). 2. Configure your preferred accent color and theme variant. 3. Click install on the top left. diff --git a/jira/rose-pine.user.css b/styles/jira/rose-pine.user.css similarity index 99% rename from jira/rose-pine.user.css rename to styles/jira/rose-pine.user.css index 0ed2886..4029af0 100644 --- a/jira/rose-pine.user.css +++ b/styles/jira/rose-pine.user.css @@ -6,7 +6,7 @@ @author Adrian Karlén (https://github.com/adriankarlen/) @namespace https://github.com/rose-pine/ @homepageURL https://github.com/rose-pine/userstyles -@updateURL https://github.com/rose-pine/userstyles/raw/main/jira/rose-pine.user.css +@updateURL https://github.com/rose-pine/userstyles/raw/main/styles/jira/rose-pine.user.css @preprocessor less @var select flavor "Flavor" ["default:Rosé Pine*", "moon:Rosé Pine Moon", "dawn:Rosé Pine Dawn"] diff --git a/octopus/readme.md b/styles/octopus/readme.md similarity index 91% rename from octopus/readme.md rename to styles/octopus/readme.md index 8a78290..e0fe61e 100644 --- a/octopus/readme.md +++ b/styles/octopus/readme.md @@ -9,12 +9,12 @@ - +

## Usage -1. Make sure you have the [Stylus](https://github.com/openstyles/stylus) browser extension installed, then visit [this link](https://github.com/rose-pine/userstyles/raw/main/octopus/rose-pine.user.css) +1. Make sure you have the [Stylus](https://github.com/openstyles/stylus) browser extension installed, then visit [this link](https://github.com/rose-pine/userstyles/raw/main/styles/octopus/rose-pine.user.css) 2. Configure your preferred accent color and theme variant 3. Click install on the top left diff --git a/octopus/rose-pine.user.css b/styles/octopus/rose-pine.user.css similarity index 99% rename from octopus/rose-pine.user.css rename to styles/octopus/rose-pine.user.css index 6c37cdf..61943c4 100644 --- a/octopus/rose-pine.user.css +++ b/styles/octopus/rose-pine.user.css @@ -6,7 +6,7 @@ @author Adrian Karlén (https://github.com/adriankarlen/) @namespace https://github.com/rose-pine/ @homepageURL https://github.com/rose-pine/userstyles -@updateURL https://github.com/rose-pine/userstyles/raw/main/octopus/rose-pine.user.css +@updateURL https://github.com/rose-pine/userstyles/raw/main/styles/octopus/rose-pine.user.css @preprocessor less @var select flavor "Flavor" ["default:Rosé Pine*", "moon:Rosé Pine Moon", "dawn:Rosé Pine Dawn"] diff --git a/proton/readme.md b/styles/proton/readme.md similarity index 95% rename from proton/readme.md rename to styles/proton/readme.md index 23289f4..161e6a9 100644 --- a/proton/readme.md +++ b/styles/proton/readme.md @@ -6,14 +6,14 @@ - +

## Usage -1. Make sure you have the [Stylus](https://github.com/openstyles/stylus) browser extension installed, then visit [this link](https://github.com/rose-pine/userstyles/raw/main/proton/rose-pine.user.css). +1. Make sure you have the [Stylus](https://github.com/openstyles/stylus) browser extension installed, then visit [this link](https://github.com/rose-pine/userstyles/raw/main/styles/proton/rose-pine.user.css). 2. Configure your preferred accent color and theme variant. 3. Click install on the top left. 4. Go to proton mail settings and under "Theme" select Carbon. This should be the middle one. diff --git a/proton/rose-pine.user.css b/styles/proton/rose-pine.user.css similarity index 99% rename from proton/rose-pine.user.css rename to styles/proton/rose-pine.user.css index e2e0914..4f3c1b4 100644 --- a/proton/rose-pine.user.css +++ b/styles/proton/rose-pine.user.css @@ -6,7 +6,7 @@ @author Joris Mertz (https://github.com/jorismertz/) @namespace https://github.com/rose-pine/ @homepageURL https://github.com/rose-pine/userstyles -@updateURL https://github.com/rose-pine/userstyles/raw/main/proton/rose-pine.user.css +@updateURL https://github.com/rose-pine/userstyles/raw/main/styles/proton/rose-pine.user.css @preprocessor less @var select flavor "Flavor" ["default:Rosé Pine*", "moon:Rosé Pine Moon", "dawn:Rosé Pine Dawn"] diff --git a/scribe/readme.md b/styles/scribe/readme.md similarity index 100% rename from scribe/readme.md rename to styles/scribe/readme.md diff --git a/scribe/rose-pine.user.css b/styles/scribe/rose-pine.user.css similarity index 100% rename from scribe/rose-pine.user.css rename to styles/scribe/rose-pine.user.css diff --git a/twitch/readme.md b/styles/twitch/readme.md similarity index 91% rename from twitch/readme.md rename to styles/twitch/readme.md index 19113e2..4b3f840 100644 --- a/twitch/readme.md +++ b/styles/twitch/readme.md @@ -9,12 +9,12 @@ - +

## Usage -1. Make sure you have the [Stylus](https://github.com/openstyles/stylus) browser extension installed, then visit [this link](https://github.com/rose-pine/userstyles/raw/main/twitch/rose-pine.user.css) +1. Make sure you have the [Stylus](https://github.com/openstyles/stylus) browser extension installed, then visit [this link](https://github.com/rose-pine/userstyles/raw/main/styles/twitch/rose-pine.user.css) 2. Configure your preferred accent color and theme variant 3. Click install on the top left diff --git a/twitch/rose-pine.user.css b/styles/twitch/rose-pine.user.css similarity index 99% rename from twitch/rose-pine.user.css rename to styles/twitch/rose-pine.user.css index 9b12c33..833e982 100644 --- a/twitch/rose-pine.user.css +++ b/styles/twitch/rose-pine.user.css @@ -6,7 +6,7 @@ @author Adrian Karlén (https://github.com/adriankarlen/) @namespace https://github.com/rose-pine/ @homepageURL https://github.com/rose-pine/userstyles -@updateURL https://github.com/rose-pine/userstyles/raw/main/twitch/rose-pine.user.css +@updateURL https://github.com/rose-pine/userstyles/raw/main/styles/twitch/rose-pine.user.css @preprocessor less @var select lightFlavor "Light flavor" ["default:Rosé Pine", "moon:Rosé Pine Moon", "dawn:Rosé Pine Dawn*"] diff --git a/wikiwand/readme.md b/styles/wikiwand/readme.md similarity index 93% rename from wikiwand/readme.md rename to styles/wikiwand/readme.md index fe6ed0f..5f7d4df 100644 --- a/wikiwand/readme.md +++ b/styles/wikiwand/readme.md @@ -9,7 +9,7 @@ - +

## Usage diff --git a/wikiwand/rose-pine.user.css b/styles/wikiwand/rose-pine.user.css similarity index 99% rename from wikiwand/rose-pine.user.css rename to styles/wikiwand/rose-pine.user.css index d015e4f..1d5b1e4 100644 --- a/wikiwand/rose-pine.user.css +++ b/styles/wikiwand/rose-pine.user.css @@ -6,7 +6,7 @@ @author Adrian Karlén (https://github.com/adriankarlen/) @namespace https://github.com/rose-pine/ @homepageURL https://github.com/rose-pine/userstyles -@updateURL https://github.com/rose-pine/userstyles/raw/main/wikiwand/rose-pine.user.css +@updateURL https://github.com/rose-pine/userstyles/raw/main/styles/wikiwand/rose-pine.user.css @preprocessor less @var select lightVariant "Light variant" ["default:Rosé Pine", "moon:Rosé Pine Moon", "dawn:Rosé Pine Dawn*"] diff --git a/youtube/readme.md b/styles/youtube/readme.md similarity index 98% rename from youtube/readme.md rename to styles/youtube/readme.md index 1317135..3412b66 100644 --- a/youtube/readme.md +++ b/styles/youtube/readme.md @@ -15,7 +15,7 @@ 1. Install Stylus extension on your browser. [Firefox](https://addons.mozilla.org/en-US/firefox/addon/styl-us), [Chrome](https://chrome.google.com/webstore/detail/stylus/clngdbkpkpeebahjckkjfobafhncgmne) or [Opera](https://addons.opera.com/en-gb/extensions/details/stylus/) 2. In the main manager interface on the extension, check the box `as Usercss`. -3. Download the theme [here](https://github.com/rose-pine/userstyles/raw/main/youtube/rose-pine.user.css). +3. Download the theme [here](https://github.com/rose-pine/userstyles/raw/main/styles/youtube/rose-pine.user.css). 4. Click install style. ### Changing theme and accent color diff --git a/youtube/rose-pine.user.css b/styles/youtube/rose-pine.user.css similarity index 99% rename from youtube/rose-pine.user.css rename to styles/youtube/rose-pine.user.css index d86a2f9..cbda2f2 100644 --- a/youtube/rose-pine.user.css +++ b/styles/youtube/rose-pine.user.css @@ -6,7 +6,7 @@ @author artilate & Papa Quill @namespace https://github.com/rose-pine/ @homepageURL https://github.com/rose-pine/userstyles -@updateURL https://github.com/rose-pine/userstyles/raw/main/wikiwand/rose-pine.user.css +@updateURL https://github.com/rose-pine/userstyles/raw/main/styles/wikiwand/rose-pine.user.css @preprocessor stylus diff --git a/zimbra/readme.md b/styles/zimbra/readme.md similarity index 100% rename from zimbra/readme.md rename to styles/zimbra/readme.md diff --git a/zimbra/rose-pine.user.css b/styles/zimbra/rose-pine.user.css similarity index 100% rename from zimbra/rose-pine.user.css rename to styles/zimbra/rose-pine.user.css From ee76094f196bb9cd209ae58c0e75af3e4bbb52de Mon Sep 17 00:00:00 2001 From: Joris Mertz Date: Tue, 11 Jun 2024 02:46:53 +0200 Subject: [PATCH 2/6] feat: import list generator script fix fixes a --- .gitignore | 3 ++ build.sh | 3 ++ scripts/generate-imports.js | 57 +++++++++++++++++++++++++++++++++++++ scripts/package.json | 7 +++++ 4 files changed, 70 insertions(+) create mode 100644 .gitignore mode change 100644 => 100755 build.sh create mode 100644 scripts/generate-imports.js create mode 100644 scripts/package.json diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1415a48 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +scripts/node_modules +package-lock.json +bun.lockb diff --git a/build.sh b/build.sh old mode 100644 new mode 100755 index 01f0bfc..bcd6d6f --- a/build.sh +++ b/build.sh @@ -1,2 +1,5 @@ npx prettier@latest --parser=less --write ./styles/**/*.css npx prettier@latest --write ./**/*.md + +cd ./scripts && npm install && cd .. +node ./scripts/generate-imports.js diff --git a/scripts/generate-imports.js b/scripts/generate-imports.js new file mode 100644 index 0000000..d4496de --- /dev/null +++ b/scripts/generate-imports.js @@ -0,0 +1,57 @@ +import * as fs from "fs"; +import usercssMeta from "usercss-meta"; + +const settings = { + updateInterval: 24, + updateOnlyEnabled: true, + patchCsp: true, +}; + +const result = []; +const ignored = []; + +console.log("Generating import list..."); + +const themes = fs.readdirSync("./styles"); +for (const theme of themes) { + const data = fs.readFileSync(`./styles/${theme}/rose-pine.user.css`); + const metaDataRegex = /\/\*\s*==UserStyle==.*==\/UserStyle==\s*\*\//is; + const metaData = metaDataRegex.exec(data.toString()); + + if (!metaData) { + ignored.push(theme); + continue; + } + + const usercssData = usercssMeta.parse(metaData[0]).metadata; + result.push({ + enabled: true, + name: usercssData.name ?? "", + description: usercssData.description ?? "", + author: "Rose Piné", + updateUrl: usercssData.updateURL ?? "", + usercssData, + sourceCode: data.toString(), + }); +} + +fs.writeFileSync( + "import.json", + JSON.stringify( + [ + { + settings, + }, + ...result, + ], + null, + 2, + ), +); + +if (ignored.length) { + console.log( + "The following themes were ignored because they are missing UserCSS metadata:", + ignored.join(", "), + ); +} diff --git a/scripts/package.json b/scripts/package.json new file mode 100644 index 0000000..a5f4b83 --- /dev/null +++ b/scripts/package.json @@ -0,0 +1,7 @@ +{ + "name": "scripts", + "type": "module", + "dependencies": { + "usercss-meta": "^0.12.0" + } +} From 5a6907906f8a7c9c2d415f7d6f803e29f17415d0 Mon Sep 17 00:00:00 2001 From: Joris Mertz Date: Tue, 11 Jun 2024 17:01:21 +0200 Subject: [PATCH 3/6] feat: release workflow s s s --- .github/workflows/release.yml | 25 +++++++++++++++++++++++++ .gitignore | 1 + 2 files changed, 26 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..f8cd6e9 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,25 @@ +name: Create release + +on: + push: + branches: + - main + paths: + - 'styles/**/rose-pine.user.css' + +permissions: + contents: write + +jobs: + release: + name: Release userstyle import list + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Build + run: bash ./build.sh + - name: Update release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: gh release upload userstyle-imports import.json --clobber diff --git a/.gitignore b/.gitignore index 1415a48..e02bb70 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ scripts/node_modules package-lock.json bun.lockb +import.json From 22bf177beb9f65ed6b7b57ca3f14154097515141 Mon Sep 17 00:00:00 2001 From: Joris Mertz Date: Tue, 11 Jun 2024 17:43:32 +0200 Subject: [PATCH 4/6] docs: add link to import list release s --- readme.md | 1 + 1 file changed, 1 insertion(+) diff --git a/readme.md b/readme.md index 8bc87f8..012eb85 100644 --- a/readme.md +++ b/readme.md @@ -15,6 +15,7 @@ 2. Downloading Userstyles: - Open the folder of the userstyle you want to install. - Then, click on the "Stylus Install" button or open `rose-pine.user.css` and click on "Raw." + > To download all userstyles at once, go to the [releases](https://github.com/rose-pine/userstyles/releases/tag/userstyle-imports) page and follow the instructions listed there. 3. Optionally, you can configure any available options that you want to change. Then, click on the "Install Style" button. 4. Some might require extra steps to work correctly, so make sure to check its readme page for additional information. From d45e522c1702defcaa74f47c060085e10c3e67f3 Mon Sep 17 00:00:00 2001 From: Joris Mertz Date: Sun, 16 Jun 2024 15:46:41 +0200 Subject: [PATCH 5/6] fix: seperate from build script --- .github/workflows/release.yml | 5 ++++- build.sh | 3 --- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f8cd6e9..8c568ef 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,7 +18,10 @@ jobs: - name: Checkout uses: actions/checkout@v2 - name: Build - run: bash ./build.sh + run: | + bash ./build.sh + cd ./scripts && npm install && cd .. + node ./scripts/generate-imports.js - name: Update release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/build.sh b/build.sh index bcd6d6f..01f0bfc 100755 --- a/build.sh +++ b/build.sh @@ -1,5 +1,2 @@ npx prettier@latest --parser=less --write ./styles/**/*.css npx prettier@latest --write ./**/*.md - -cd ./scripts && npm install && cd .. -node ./scripts/generate-imports.js From 9d61497ca51a1aee4a2d0937f9d22ff5a57a21ff Mon Sep 17 00:00:00 2001 From: Joris Mertz Date: Sun, 16 Jun 2024 16:13:15 +0200 Subject: [PATCH 6/6] cleanup update links --- .github/workflows/release.yml | 6 +++--- readme.md | 22 +++++++++++----------- scripts/generate-imports.js | 2 ++ 3 files changed, 16 insertions(+), 14 deletions(-) mode change 100644 => 100755 scripts/generate-imports.js diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8c568ef..a102686 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,4 @@ -name: Create release +name: Update release on: push: @@ -12,7 +12,7 @@ permissions: jobs: release: - name: Release userstyle import list + name: Update release runs-on: ubuntu-latest steps: - name: Checkout @@ -22,7 +22,7 @@ jobs: bash ./build.sh cd ./scripts && npm install && cd .. node ./scripts/generate-imports.js - - name: Update release + - name: Release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: gh release upload userstyle-imports import.json --clobber diff --git a/readme.md b/readme.md index 012eb85..c9155af 100644 --- a/readme.md +++ b/readme.md @@ -23,21 +23,21 @@ **Development tools** -- [Octopus](https://github.com/rose-pine/userstyles/tree/main/octopus) +- [Octopus](https://github.com/rose-pine/userstyles/tree/main/styles/octopus) **Search Engines** -- [Brave search](https://github.com/rose-pine/userstyles/tree/main/brave-search) -- [4get](https://github.com/rose-pine/userstyles/tree/main/4get) +- [Brave search](https://github.com/rose-pine/userstyles/tree/main/styles/brave-search) +- [4get](https://github.com/rose-pine/userstyles/tree/main/styles/4get) **Productivity** -- [ChatGPT](https://github.com/rose-pine/userstyles/tree/main/chatgpt) -- [GitHub](https://github.com/rose-pine/userstyles/tree/main/github) -- [Jira](https://github.com/rose-pine/userstyles/tree/main/jira) -- [Proton](https://github.com/rose-pine/userstyles/tree/main/proton) -- [Scribe](https://github.com/rose-pine/userstyles/tree/main/scribe) -- [Wikiwand](https://github.com/rose-pine/userstyles/tree/main/wikiwand) +- [ChatGPT](https://github.com/rose-pine/userstyles/tree/main/styles/chatgpt) +- [GitHub](https://github.com/rose-pine/userstyles/tree/main/styles/github) +- [Jira](https://github.com/rose-pine/userstyles/tree/main/styles/jira) +- [Proton](https://github.com/rose-pine/userstyles/tree/main/styles/proton) +- [Scribe](https://github.com/rose-pine/userstyles/tree/main/styles/scribe) +- [Wikiwand](https://github.com/rose-pine/userstyles/tree/main/styles/wikiwand) **Webmail** @@ -50,8 +50,8 @@ **Misc** -- [Twitch](https://github.com/rose-pine/userstyles/tree/main/twitch) -- [YouTube](https://github.com/rose-pine/userstyles/tree/main/youtube) +- [Twitch](https://github.com/rose-pine/userstyles/tree/main/styles/twitch) +- [YouTube](https://github.com/rose-pine/userstyles/tree/main/styles/youtube) ## Contributing diff --git a/scripts/generate-imports.js b/scripts/generate-imports.js old mode 100644 new mode 100755 index d4496de..448909a --- a/scripts/generate-imports.js +++ b/scripts/generate-imports.js @@ -1,3 +1,5 @@ +#!/usr/bin/env node + import * as fs from "fs"; import usercssMeta from "usercss-meta";