forked from welpo/tabi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch "main" at upstream "welpo/tabi"
- Loading branch information
Showing
348 changed files
with
17,937 additions
and
1,177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Commit-msg hook generated by git-sumi. | ||
# For more information and documentation, visit: https://sumi.rs | ||
|
||
set -e # Exit on any error. | ||
|
||
# Get the current branch name. | ||
current_branch=$(git rev-parse --abbrev-ref HEAD) | ||
|
||
# Check if the current branch is 'main'. | ||
if [ "$current_branch" != "main" ]; then | ||
exit 0 # Exit successfully without running git-sumi. | ||
fi | ||
|
||
# Check if git-sumi is installed. | ||
if ! command -v git-sumi &> /dev/null | ||
then | ||
echo "git-sumi is not installed. Please install it. See https://sumi.rs for instructions." | ||
echo "Alternatively, edit or remove the commit-msg hook in .git/hooks/commit-msg." | ||
exit 1 | ||
fi | ||
|
||
# Run git-sumi on the commit message if on the 'main' branch. | ||
git-sumi -- "$(cat $1)" # Exit with error if linting fails. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* @welpo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
<!-- | ||
Thank you for contributing to tabi! | ||
This template is designed to guide you through the pull request process. | ||
Please fill out the sections below as applicable. | ||
Don't worry if your PR is not complete or you're unsure about something; | ||
feel free to submit it and ask for feedback. We appreciate all contributions, big or small! | ||
Feel free to remove any section or checklist item that does not apply to your changes. | ||
If it's a quick fix (for example, fixing a typo), a Summary is enough. | ||
--> | ||
|
||
## Summary | ||
|
||
<!-- Please provide a brief description of the changes made in this PR --> | ||
|
||
### Related issue | ||
|
||
<!-- Mention any relevant issues like #123 --> | ||
|
||
## Changes | ||
|
||
<!-- Please provide some more detail regarding the changes. | ||
Add any additional information, configuration, or data that might be necessary for the review --> | ||
|
||
### Accessibility | ||
|
||
<!-- Have you taken steps to make your changes accessible? This could include: | ||
- Semantic HTML | ||
- ARIA attributes | ||
- Keyboard navigation | ||
- Voiceover or screen reader compatibility | ||
- Colour contrast | ||
Please elaborate on the actions taken. | ||
If you need help, please ask! --> | ||
|
||
### Screenshots | ||
|
||
<!-- If applicable, add screenshots to help explain the changes made. Consider if a before/after is helpful --> | ||
|
||
### Type of change | ||
|
||
<!-- Mark the relevant option with an `x` like so: `[x]` (no spaces) --> | ||
|
||
- [ ] Bug fix (fixes an issue without altering functionality) | ||
- [ ] New feature (adds non-breaking functionality) | ||
- [ ] Breaking change (alters existing functionality) | ||
- [ ] UI/UX improvement (enhances user interface without altering functionality) | ||
- [ ] Refactor (improves code quality without altering functionality) | ||
- [ ] Documentation update | ||
- [ ] Other (please describe below) | ||
|
||
--- | ||
|
||
## Checklist | ||
|
||
- [ ] I have verified the accessibility of my changes | ||
- [ ] I have tested all possible scenarios for this change | ||
- [ ] I have updated `theme.toml` with a sane default for the feature | ||
- [ ] I have made corresponding changes to the documentation: | ||
- [ ] Updated `config.toml` comments | ||
- [ ] Updated `theme.toml` comments | ||
- [ ] Updated "Mastering tabi" post in English | ||
- [ ] (Optional) Updated "Mastering tabi" post in Spanish | ||
- [ ] (Optional) Updated "Mastering tabi" post in Catalan |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"extends": ["config:recommended", ":automergeMinor", ":disableDependencyDashboard"], | ||
"commitMessageAction": "chore(deps): update", | ||
"commitMessagePrefix": "⬆️", | ||
"labels": ["dependencies"], | ||
"packageRules": [ | ||
{ | ||
"updateTypes": ["pin"], | ||
"commitMessagePrefix": "📌" | ||
}, | ||
{ | ||
"updateTypes": ["major", "minor", "patch", "digest", "bump"], | ||
"commitMessagePrefix": "⬆️" | ||
}, | ||
{ | ||
"updateTypes": ["rollback"], | ||
"commitMessagePrefix": "⬇️" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Continuous Deployment | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*.*.*' | ||
|
||
jobs: | ||
deploy: | ||
name: Deploy and release | ||
runs-on: ubuntu-22.04 | ||
permissions: | ||
contents: write | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Generate the changelog | ||
uses: orhun/git-cliff-action@main | ||
id: git-cliff | ||
with: | ||
config: cliff.toml | ||
args: --latest --strip all | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
OUTPUT: CHANGES.md | ||
|
||
- name: Create GitHub release | ||
run: | | ||
gh release create ${{ github.ref_name }} \ | ||
--title "Release ${{ github.ref_name }}" \ | ||
--notes "${{ steps.git-cliff.outputs.content }}" | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Build Site | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
check_and_build_pr: | ||
name: Check and Build for Pull Requests | ||
runs-on: ubuntu-latest | ||
if: github.event_name == 'pull_request' | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Zola Build | ||
uses: shalzz/[email protected] | ||
env: | ||
BUILD_ONLY: true | ||
|
||
- name: Zola Check | ||
uses: shalzz/[email protected] | ||
env: | ||
BUILD_ONLY: true | ||
CHECK_LINKS: true | ||
|
||
build_and_deploy: | ||
name: Build and Deploy on Main Push | ||
runs-on: ubuntu-22.04 | ||
if: github.event_name == 'push' && github.ref == 'refs/heads/main' | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Build and Deploy | ||
uses: shalzz/[email protected] | ||
env: | ||
PAGES_BRANCH: gh-pages | ||
TOKEN: ${{ secrets.TOKEN }} | ||
BUILD_THEMES: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Lint pull request title | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- edited | ||
- synchronize | ||
- ready_for_review | ||
|
||
permissions: | ||
pull-requests: read | ||
|
||
jobs: | ||
main: | ||
name: Run git-sumi | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: welpo/git-sumi-action@main | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*.min.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
semi = true | ||
trailingComma = "es5" | ||
singleQuote = true | ||
printWidth = 88 | ||
tabWidth = 4 | ||
useTabs = false | ||
arrowParens = "always" | ||
bracketSpacing = true | ||
jsxBracketSameLine = false | ||
jsxSingleQuote = true | ||
endOfLine = "lf" |
Oops, something went wrong.