Skip to content

refactored by zine #54

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 23 commits into from
Jul 13, 2025
Merged
Show file tree
Hide file tree
Changes from all 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
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.

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

on:
push:
branches:
- main
workflow_dispatch:
branches: ["zine", "main"]

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

concurrency:
group: "pages"
cancel-in-progress: true

# Default to bash
defaults:
run:
shell: bash

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
concurrency:
group: "pages"
cancel-in-progress: true

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
31 changes: 0 additions & 31 deletions .github/workflows/lint.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/mirror.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Mirror
on:
push:
branches:
- main
- main**
workflow_dispatch:

jobs:
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@
# zig
zig-cache/
zig-out/

.cache_ggshield
18 changes: 0 additions & 18 deletions .lintmdrc

This file was deleted.

3 changes: 0 additions & 3 deletions .prettierignore

This file was deleted.

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
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
[![](https://github.com/zigcc/zigcc.github.io/actions/workflows/gh-pages.yml/badge.svg)](https://github.com/zigcc/zigcc.github.io/actions/workflows/gh-pages.yml)

# Zig 语言中文社区

- <https://ziglang.cc>
- 如果没有特殊声明,本网站内容均采用 [CC BY-NC-ND
4.0](https://creativecommons.org/licenses/by-nc-nd/4.0/) 协议

<center>
<p>欢迎来到 Zig 语言中文社区!(Zig Chinese Community,简称:ZigCC)</p>
<a href="https://discord.gg/UraRxD6WXD">
<img src="https://img.shields.io/discord/1155469703846834187?label=Chat at Discord" />
</a>
<a href="/index.xml">
<img src="https://img.shields.io/badge/rss-F88900.svg?style=flat&logo=RSS&logoColor=white&label=网站" />
</a>
<a href="https://ask.ziglang.cc/atom.xml">
<img src="https://img.shields.io/badge/rss-F88900.svg?style=flat&logo=RSS&logoColor=white&label=论坛" />
</a>
</center>

> Zig Chinese Community is dedicated to sharing and spreading the use of
> Zig language among Chinese users.

本网站使用 [zine](https://zine-ssg.io/) 进行构建,可参考 [quickstart](https://zine-ssg.io/quickstart/) 进行安装,网站预览命令:

``` bash
# Serve the site
zine
```
52 changes: 0 additions & 52 deletions README.org

This file was deleted.

5 changes: 0 additions & 5 deletions archetypes/default.md

This file was deleted.

Loading