Skip to content
Merged
Show file tree
Hide file tree
Changes from 18 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
f7642f9
Remove obsolete files and configurations, including .gitignore, .gitm…
xihale Jun 30, 2025
d83fb6a
Refactor markdown to SMD conversion script and update configurations.…
xihale Jun 30, 2025
9a85dd3
Add new CSS styles for code highlighting, update navigation arrows, a…
xihale Jul 1, 2025
1fd8251
Add GitHub Actions workflow for deploying the website to GitHub Pages…
xihale Jul 1, 2025
685f751
Refactor CSS for code highlighting by introducing CSS variables for c…
xihale Jul 1, 2025
3e8f4cb
Update GitHub Actions workflow to deploy to the 'zine' branch instead…
xihale Jul 1, 2025
3fe7dbc
Refactor CSS variable for code foreground color in highlighting style…
xihale Jul 1, 2025
f468fb5
Refactor CSS styles by removing unused logo width definition, adjusti…
xihale Jul 1, 2025
10f96c0
Add line-break property to anchor tags in CSS for improved text wrapp…
xihale Jul 1, 2025
45474c4
Remove obsolete layout files and update SMD files for improved conten…
xihale Jul 1, 2025
f64fe57
Refactor markdown to SMD conversion script, changing source directory…
xihale Jul 1, 2025
05dea4f
Refactor markdown files to standardize headings and improve content s…
xihale Jul 1, 2025
26ca0a8
Remove obsolete JavaScript file and standardize markdown headings acr…
xihale Jul 2, 2025
36ecac8
Standardize section titles across multiple SMD files to improve conte…
xihale Jul 2, 2025
1b9bebf
Standardize section titles and improve content structure across multi…
xihale Jul 2, 2025
0b1455b
Refactor link conversion scripts by removing obsolete files and updat…
xihale Jul 6, 2025
ff26ff1
Remove obsolete TODO.md file and update contributing guidelines in SM…
xihale Jul 6, 2025
f95027f
solve conflict
xihale Jul 6, 2025
bbd1f68
resolve change requests
xihale Jul 6, 2025
21e225f
Remove obsolete files including .cache_ggshield and _highlight.css. U…
xihale Jul 7, 2025
0b67f72
Remove frpc.ini and README.org files, update zine.ziggy with the corr…
xihale Jul 7, 2025
cf98dab
trivial fix
jiacai2050 Jul 13, 2025
a548bb9
add mirror workflow
jiacai2050 Jul 13, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .cache_ggshield
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"last_found_secrets": [{"match": "95eb7c12d136f77a6541bb255a8d9448a52bff447fb8216441841e4b7fd75a89", "name": "Generic High Entropy Secret - commit://d83fb6af5cb9407721ea97310b877c47b7702b74/content/post/news/index.smd"}]}
23 changes: 23 additions & 0 deletions .github/workflows/autocorrect.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: AutoCorrect CI

on:
pull_request:
workflow_dispatch:

jobs:
autocorrect:
runs-on: ubuntu-latest
steps:
- name: Check source code
uses: actions/checkout@v4

- name: AutoCorrect
uses: huacnlee/autocorrect-action@v2

- name: Review Dog
if: failure()
uses: huacnlee/autocorrect-action@v2
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
reviewdog: true
39 changes: 0 additions & 39 deletions .github/workflows/examples.yml

This file was deleted.

61 changes: 23 additions & 38 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -1,64 +1,49 @@
name: GitHub Pages
name: Deploy the website to Github Pages

on:
# Runs on pushes targeting the default branch
push:
branches:
- main
workflow_dispatch:
branches: ["zine"]

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: true

# Default to bash
defaults:
run:
shell: bash
cancel-in-progress: false

jobs:
build:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: peaceiris/actions-hugo@v2
fetch-depth: 0 # Change if you need git info

- name: Setup Zine
uses: kristoff-it/setup-zine@v1
with:
# hugo-version: "0.140.2"
hugo-version: latest
extended: true
version: v0.10.2

- name: Build
run: zine release

- name: Setup Pages
id: pages
uses: actions/configure-pages@v4
- name: Build with Hugo
env:
# For maximum backward compatibility with Hugo modules
HUGO_ENVIRONMENT: production
HUGO_ENV: production
run: |
npm i -D postcss postcss-cli autoprefixer
hugo mod get
hugo \
--minify \
--baseURL "${{ steps.pages.outputs.base_url }}/"
uses: actions/configure-pages@v5

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./public
path: 'public'

deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
uses: actions/deploy-pages@v4
31 changes: 0 additions & 31 deletions .github/workflows/lint.yml

This file was deleted.

18 changes: 0 additions & 18 deletions .github/workflows/mirror.yml

This file was deleted.

8 changes: 0 additions & 8 deletions .gitignore

This file was deleted.

18 changes: 0 additions & 18 deletions .lintmdrc

This file was deleted.

3 changes: 0 additions & 3 deletions .prettierignore

This file was deleted.

6 changes: 6 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"cSpell.words": [
"stylesheet",
"subpages"
]
}
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

serve:
hugo serve
zine

lint:
npx @lint-md/cli **/*
Expand Down
27 changes: 1 addition & 26 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -24,29 +24,4 @@
Zig Chinese Community is dedicated to sharing and spreading the use of Zig language among Chinese users.
#+end_quote

本网站使用 [[https://gohugo.io/][hugo]](extended 版本)与 [[https://www.docsy.dev/][docsy]] 主题进行构建。

#+begin_src bash
# For macOS
brew install hugo
# For Debian
sudo apt install hugo
# For Arch
sudo pacman -S hugo

# Snap
sudo snap install hugo
#+end_src

#+begin_src bash
# run server
hugo server
#+end_src

如果启动 server 时报错,可以安装以下依赖:
#+begin_src bash
# install depends
npm i -D postcss postcss-cli autoprefixer
#+end_src

参考:https://www.docsy.dev/docs/get-started/docsy-as-module/installation-prerequisites/#install-postcss
TODO: Contribute docs
5 changes: 0 additions & 5 deletions archetypes/default.md

This file was deleted.

Loading