Refactor theme readme files and funding configuration for consistency

This commit is contained in:
mr. M 2025-01-26 15:36:01 +01:00
parent ee9f84991f
commit 2b52886c65
No known key found for this signature in database
GPG key ID: CBD57A2AEDBDA1FB
311 changed files with 6490 additions and 6082 deletions

3
.github/FUNDING.yml vendored
View file

@ -1,3 +1,2 @@
patreon: zen_browser
ko_fi: zen_browser
ko_fi: zen_browser

View file

@ -1 +1 @@
blank_issues_enabled: true
blank_issues_enabled: true

View file

@ -47,7 +47,7 @@ body:
attributes:
label: Theme Styles
render: css
description: The CSS styles for the theme. If the theme is a color theme, the styles should be a JSON object with the color values.
placeholder: |
/* Remember to strip @-moz-document url-prefix('chrome://') {... */

View file

@ -16,7 +16,7 @@ jobs:
- name: Install python
uses: actions/setup-python@v2
with:
python-version: '3.x'
python-version: "3.x"
- name: Setup python modules
run: |
@ -39,19 +39,19 @@ jobs:
echo "THEME_IS_COLOR_THEME=${{ contains(fromJson(steps.issue-parser.outputs.jsonString)['is-color-theme'], 'JSON Color Theme') }}" >> $GITHUB_ENV
- name: Write styles to file
uses: 'DamianReeves/write-file-action@master'
uses: "DamianReeves/write-file-action@master"
with:
contents: ${{ fromJson(steps.issue-parser.outputs.jsonString)['styles'] }}
path: theme-styles.css
- name: Write readme to file
uses: 'DamianReeves/write-file-action@master'
uses: "DamianReeves/write-file-action@master"
with:
contents: ${{ fromJson(steps.issue-parser.outputs.jsonString)['readme'] }}
path: theme-readme.md
- name: Write preferences to file
uses: 'DamianReeves/write-file-action@master'
uses: "DamianReeves/write-file-action@master"
if: fromJson(steps.issue-parser.outputs.jsonString)['preferences'] != ''
with:
contents: ${{ fromJson(steps.issue-parser.outputs.jsonString)['preferences'] }}
@ -97,9 +97,9 @@ jobs:
add-paths: themes/
labels: staged
token: ${{ secrets.DEPLOY_KEY }}
commit-message: 'Add theme: ${{ env.THEME_NAME }}'
commit-message: "Add theme: ${{ env.THEME_NAME }}"
delete-branch: true
title: 'Add theme: ${{ env.THEME_NAME }}'
title: "Add theme: ${{ env.THEME_NAME }}"
body: |
# Add theme: ${{ env.THEME_NAME }}

View file

@ -1,4 +1,3 @@
name: Check PR is valid
on:
@ -16,7 +15,7 @@ jobs:
- name: Install python
uses: actions/setup-python@v2
with:
python-version: '3.x'
python-version: "3.x"
- name: Setup python modules
run: |

View file

@ -20,7 +20,7 @@ jobs:
- name: Install python
uses: actions/setup-python@v2
with:
python-version: '3.x'
python-version: "3.x"
- name: Setup python modules
run: |

View file

@ -5,7 +5,7 @@ on:
branches:
- main
paths:
- 'themes/**'
- "themes/**"
jobs:
update-timestamp:
@ -24,7 +24,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
python-version: "3.x"
- name: Detect changed themes
id: get_changes
@ -35,7 +35,7 @@ jobs:
- name: Setup python modules
run: |
pip3 install requests
- name: Setup Git
run: |
git config --global user.name "github-actions[bot]"