Compare commits
2 Commits
330ccd39dd
...
bd6133529c
Author | SHA1 | Date | |
---|---|---|---|
bd6133529c | |||
82b55e0fbd |
2
.github/CODEOWNERS
vendored
2
.github/CODEOWNERS
vendored
@ -1,2 +0,0 @@
|
|||||||
* @welpo
|
|
||||||
i18n/ar.toml @TheAwiteb
|
|
1
.github/FUNDING.yml
vendored
1
.github/FUNDING.yml
vendored
@ -1 +0,0 @@
|
|||||||
github: welpo
|
|
62
.github/ISSUE_TEMPLATE/2_bug_report.yml
vendored
62
.github/ISSUE_TEMPLATE/2_bug_report.yml
vendored
@ -1,62 +0,0 @@
|
|||||||
name: "🐛 Bug report"
|
|
||||||
description: "Did you run into an issue while using tabi?"
|
|
||||||
labels: ["bug"]
|
|
||||||
body:
|
|
||||||
- type: textarea
|
|
||||||
attributes:
|
|
||||||
label: "System information"
|
|
||||||
description: |
|
|
||||||
Please provide the following information:
|
|
||||||
- Zola version: Run `zola --version`
|
|
||||||
- tabi version or commit hash
|
|
||||||
placeholder: |
|
|
||||||
Zola version:
|
|
||||||
tabi version or commit:
|
|
||||||
validations:
|
|
||||||
required: true
|
|
||||||
|
|
||||||
- type: textarea
|
|
||||||
attributes:
|
|
||||||
label: "Expected behaviour"
|
|
||||||
description: "Tell us what should have happened."
|
|
||||||
placeholder: "Describe what you expected tabi to do…"
|
|
||||||
validations:
|
|
||||||
required: true
|
|
||||||
|
|
||||||
- type: textarea
|
|
||||||
attributes:
|
|
||||||
label: "Actual behaviour"
|
|
||||||
description: "Tell us what happens instead of the expected behavior."
|
|
||||||
placeholder: "Describe what actually happened…"
|
|
||||||
validations:
|
|
||||||
required: true
|
|
||||||
|
|
||||||
- type: textarea
|
|
||||||
attributes:
|
|
||||||
label: "Steps to reproduce"
|
|
||||||
description: "Please provide detailed steps to reproduce the issue."
|
|
||||||
placeholder: |
|
|
||||||
1. Set up `config.toml` with these settings: …
|
|
||||||
2. Create content with this structure: …
|
|
||||||
3. Run Zola with these arguments: …
|
|
||||||
4. See the following error: …
|
|
||||||
validations:
|
|
||||||
required: true
|
|
||||||
|
|
||||||
- type: textarea
|
|
||||||
attributes:
|
|
||||||
label: "Additional context"
|
|
||||||
description: >
|
|
||||||
Please provide any relevant configuration files, error messages, or screenshots that might help us understand the issue.
|
|
||||||
You can drag and drop files here to attach them.
|
|
||||||
validations:
|
|
||||||
required: false
|
|
||||||
|
|
||||||
- type: checkboxes
|
|
||||||
attributes:
|
|
||||||
label: "Final checklist"
|
|
||||||
options:
|
|
||||||
- label: "I've checked that the issue isn't already reported."
|
|
||||||
required: true
|
|
||||||
- label: "I've tested with the latest version of tabi to check if the issue has already been fixed."
|
|
||||||
required: true
|
|
34
.github/ISSUE_TEMPLATE/3_feature_request.yml
vendored
34
.github/ISSUE_TEMPLATE/3_feature_request.yml
vendored
@ -1,34 +0,0 @@
|
|||||||
name: "✨ Feature request"
|
|
||||||
description: "Suggest an idea for tabi"
|
|
||||||
labels: ["enhancement"]
|
|
||||||
body:
|
|
||||||
- type: textarea
|
|
||||||
attributes:
|
|
||||||
label: "Summary and motivation"
|
|
||||||
description: "Briefly describe the feature and why it would be valuable for tabi users."
|
|
||||||
placeholder: |
|
|
||||||
Describe:
|
|
||||||
- What the feature is
|
|
||||||
- Why it would be useful
|
|
||||||
- Any examples from other projects
|
|
||||||
validations:
|
|
||||||
required: true
|
|
||||||
|
|
||||||
- type: textarea
|
|
||||||
attributes:
|
|
||||||
label: "Implementation details"
|
|
||||||
description: "Share any ideas you have about how this could be implemented."
|
|
||||||
placeholder: "Technical suggestions, potential approaches, or specific requirements."
|
|
||||||
validations:
|
|
||||||
required: false
|
|
||||||
|
|
||||||
- type: checkboxes
|
|
||||||
attributes:
|
|
||||||
label: "Checklist"
|
|
||||||
options:
|
|
||||||
- label: "I've searched existing issues to make sure this feature hasn't already been requested."
|
|
||||||
required: true
|
|
||||||
- label: "This feature aligns with tabi's philosophy (minimal JS, accessible…)"
|
|
||||||
required: true
|
|
||||||
- label: "I'm willing to contribute to the implementation of this feature."
|
|
||||||
required: false
|
|
5
.github/ISSUE_TEMPLATE/config.yml
vendored
5
.github/ISSUE_TEMPLATE/config.yml
vendored
@ -1,5 +0,0 @@
|
|||||||
blank_issues_enabled: false
|
|
||||||
contact_links:
|
|
||||||
- name: 💬 tabi discussions
|
|
||||||
url: https://github.com/welpo/tabi/discussions
|
|
||||||
about: If you have questions or need help, feel free to ask here~
|
|
67
.github/PULL_REQUEST_TEMPLATE.md
vendored
67
.github/PULL_REQUEST_TEMPLATE.md
vendored
@ -1,67 +0,0 @@
|
|||||||
<!--
|
|
||||||
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 updated `config.toml` in [tabi-start](https://github.com/welpo/tabi-start)
|
|
||||||
- [ ] 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
|
|
29
.github/renovate.json
vendored
29
.github/renovate.json
vendored
@ -1,29 +0,0 @@
|
|||||||
{
|
|
||||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
|
||||||
"extends": ["config:recommended", ":automergeMinor", ":disableDependencyDashboard"],
|
|
||||||
"commitMessagePrefix": "⬆️",
|
|
||||||
"commitMessageAction": "chore(deps): update",
|
|
||||||
"commitMessageTopic": "{{{depName}}}",
|
|
||||||
"labels": ["dependencies"],
|
|
||||||
"git-submodules": {
|
|
||||||
"enabled": true
|
|
||||||
},
|
|
||||||
"packageRules": [
|
|
||||||
{
|
|
||||||
"updateTypes": ["pin"],
|
|
||||||
"commitMessagePrefix": "📌"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"updateTypes": ["major", "minor", "patch", "digest", "bump"],
|
|
||||||
"commitMessagePrefix": "⬆️"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"updateTypes": ["rollback"],
|
|
||||||
"commitMessagePrefix": "⬇️"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"matchFileNames": ["scripts/release/**"],
|
|
||||||
"automerge": true
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
36
.github/workflows/cd.yml
vendored
36
.github/workflows/cd.yml
vendored
@ -1,36 +0,0 @@
|
|||||||
name: Continuous Deployment
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
tags:
|
|
||||||
- 'v*.*.*'
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
deploy:
|
|
||||||
name: Deploy and release
|
|
||||||
runs-on: ubuntu-24.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-file CHANGES.md
|
|
||||||
env:
|
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
44
.github/workflows/ci.yml
vendored
44
.github/workflows/ci.yml
vendored
@ -1,44 +0,0 @@
|
|||||||
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/zola-deploy-action@v0.19.2
|
|
||||||
env:
|
|
||||||
BUILD_ONLY: true
|
|
||||||
|
|
||||||
- name: Zola Check
|
|
||||||
uses: shalzz/zola-deploy-action@v0.19.2
|
|
||||||
env:
|
|
||||||
BUILD_ONLY: true
|
|
||||||
CHECK_LINKS: true
|
|
||||||
|
|
||||||
build_and_deploy:
|
|
||||||
name: Build and Deploy on Main Push
|
|
||||||
runs-on: ubuntu-24.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/zola-deploy-action@v0.19.2
|
|
||||||
env:
|
|
||||||
PAGES_BRANCH: gh-pages
|
|
||||||
TOKEN: ${{ secrets.TOKEN }}
|
|
||||||
BUILD_THEMES: false
|
|
24
.github/workflows/git-sumi.yml
vendored
24
.github/workflows/git-sumi.yml
vendored
@ -1,24 +0,0 @@
|
|||||||
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-24.04
|
|
||||||
steps:
|
|
||||||
- name: Set header length for dependency updates
|
|
||||||
if: contains(github.event.pull_request.title, 'chore(deps)')
|
|
||||||
run: echo "GIT_SUMI_MAX_HEADER_LENGTH=80" >> $GITHUB_ENV
|
|
||||||
- uses: welpo/git-sumi-action@main
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
89
.github/workflows/upgrade-deps.yml
vendored
89
.github/workflows/upgrade-deps.yml
vendored
@ -1,89 +0,0 @@
|
|||||||
name: Dependency upgrade
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
inputs:
|
|
||||||
dependency:
|
|
||||||
description: 'Dependency to upgrade'
|
|
||||||
required: true
|
|
||||||
type: choice
|
|
||||||
options:
|
|
||||||
- all
|
|
||||||
- mermaid
|
|
||||||
- katex
|
|
||||||
schedule:
|
|
||||||
- cron: '32 4 * * *'
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
upgrade-dependency:
|
|
||||||
name: Upgrade dependency
|
|
||||||
runs-on: ubuntu-24.04
|
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
pull-requests: write
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
dependency: ${{ github.event_name == 'schedule' && fromJson('["mermaid", "katex"]') || fromJson(format('["{0}"]', github.event.inputs.dependency)) }}
|
|
||||||
steps:
|
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Set up environment
|
|
||||||
run: |
|
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get install -y jq npm curl git
|
|
||||||
npm install uglify-js -g
|
|
||||||
uglifyjs --version
|
|
||||||
|
|
||||||
- name: Configure GPG key
|
|
||||||
run: |
|
|
||||||
echo -n ${{ secrets.GPG_PRIVATE_KEY }} | base64 --decode | gpg --import
|
|
||||||
|
|
||||||
- name: Configure Git
|
|
||||||
run: |
|
|
||||||
git config --global user.signingkey 33EACFE956484C3940BFEEDCE4EC28F8DFB57474
|
|
||||||
git config --global commit.gpgsign true
|
|
||||||
git config --global user.name "welpo"
|
|
||||||
git config --global user.email "welpo@users.noreply.github.com"
|
|
||||||
|
|
||||||
- name: Check for existing branch
|
|
||||||
id: check_branch
|
|
||||||
run: |
|
|
||||||
if git ls-remote --heads origin deps/upgrade-${{ matrix.dependency }} | grep -q deps/upgrade-${{ matrix.dependency }}; then
|
|
||||||
echo "branch_exists=true" >> $GITHUB_OUTPUT
|
|
||||||
else
|
|
||||||
echo "branch_exists=false" >> $GITHUB_OUTPUT
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Handle existing branch
|
|
||||||
if: steps.check_branch.outputs.branch_exists == 'true'
|
|
||||||
run: |
|
|
||||||
echo "Branch deps/upgrade-${{ matrix.dependency }} already exists."
|
|
||||||
echo "Skipping upgrade as there's already an open PR"
|
|
||||||
exit 0
|
|
||||||
|
|
||||||
- name: Create and switch to new branch
|
|
||||||
run: |
|
|
||||||
git checkout -b deps/upgrade-${{ matrix.dependency }}
|
|
||||||
|
|
||||||
- name: Run upgrade script
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
if [[ "${{ matrix.dependency }}" == "all" ]]; then
|
|
||||||
bash scripts/upgrade-deps --all
|
|
||||||
else
|
|
||||||
bash scripts/upgrade-deps --${{ matrix.dependency }}
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Push changes and create PR
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
if git diff --quiet HEAD origin/main; then
|
|
||||||
echo "No changes to push for ${{ matrix.dependency }}"
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
git push -u origin deps/upgrade-${{ matrix.dependency }}
|
|
||||||
gh pr create --fill --base main --head deps/upgrade-${{ matrix.dependency }} --label "dependencies"
|
|
||||||
env:
|
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
@ -2,7 +2,7 @@
|
|||||||
title = "Why Docker isn't always a good idea Part 1"
|
title = "Why Docker isn't always a good idea Part 1"
|
||||||
date = 2022-09-15
|
date = 2022-09-15
|
||||||
updated = 2022-09-15
|
updated = 2022-09-15
|
||||||
description = "To briefly explain the situation. We have a **HAProxy** running on a Debian server as a Docker container. This is the entrance node to a **Docker Swarm** cluster."
|
description = "To briefly explain the situation. We have a HAProxy running on a Debian server as a Docker container. This is the entrance node to a Docker Swarm cluster."
|
||||||
|
|
||||||
[taxonomies]
|
[taxonomies]
|
||||||
tags = ["docker", "network", "haproxy"]
|
tags = ["docker", "network", "haproxy"]
|
||||||
|
@ -55,7 +55,7 @@
|
|||||||
--bg-2: #fefefe;
|
--bg-2: #fefefe;
|
||||||
--bg-3: #d8dcdd;
|
--bg-3: #d8dcdd;
|
||||||
--hover-color: white;
|
--hover-color: white;
|
||||||
--primary-color: #ff6b01;
|
--primary-color: #00d183;
|
||||||
--divider-color: #d7d7d7;
|
--divider-color: #d7d7d7;
|
||||||
--text-color: #222226;
|
--text-color: #222226;
|
||||||
--text-color-high-contrast: #313333;
|
--text-color-high-contrast: #313333;
|
||||||
@ -73,7 +73,7 @@
|
|||||||
--bg-2: #171717;
|
--bg-2: #171717;
|
||||||
--bg-3: #535555;
|
--bg-3: #535555;
|
||||||
--hover-color: black;
|
--hover-color: black;
|
||||||
--primary-color: #ff6b01;
|
--primary-color: #00d183;
|
||||||
--divider-color: #4a4a4a;
|
--divider-color: #4a4a4a;
|
||||||
--text-color: #D4D4D4;
|
--text-color: #D4D4D4;
|
||||||
--text-color-high-contrast: #eceeef;
|
--text-color-high-contrast: #eceeef;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user