-
Notifications
You must be signed in to change notification settings - Fork 14
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
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 d83fb6a
Refactor markdown to SMD conversion script and update configurations.…
xihale 9a85dd3
Add new CSS styles for code highlighting, update navigation arrows, a…
xihale 1fd8251
Add GitHub Actions workflow for deploying the website to GitHub Pages…
xihale 685f751
Refactor CSS for code highlighting by introducing CSS variables for c…
xihale 3e8f4cb
Update GitHub Actions workflow to deploy to the 'zine' branch instead…
xihale 3fe7dbc
Refactor CSS variable for code foreground color in highlighting style…
xihale f468fb5
Refactor CSS styles by removing unused logo width definition, adjusti…
xihale 10f96c0
Add line-break property to anchor tags in CSS for improved text wrapp…
xihale 45474c4
Remove obsolete layout files and update SMD files for improved conten…
xihale f64fe57
Refactor markdown to SMD conversion script, changing source directory…
xihale 05dea4f
Refactor markdown files to standardize headings and improve content s…
xihale 26ca0a8
Remove obsolete JavaScript file and standardize markdown headings acr…
xihale 36ecac8
Standardize section titles across multiple SMD files to improve conte…
xihale 1b9bebf
Standardize section titles and improve content structure across multi…
xihale 0b1455b
Refactor link conversion scripts by removing obsolete files and updat…
xihale ff26ff1
Remove obsolete TODO.md file and update contributing guidelines in SM…
xihale f95027f
solve conflict
xihale bbd1f68
resolve change requests
xihale 21e225f
Remove obsolete files including .cache_ggshield and _highlight.css. U…
xihale 0b67f72
Remove frpc.ini and README.org files, update zine.ziggy with the corr…
xihale cf98dab
trivial fix
jiacai2050 a548bb9
add mirror workflow
jiacai2050 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,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 |
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 |
---|---|---|
@@ -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 |
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 |
---|---|---|
|
@@ -3,7 +3,7 @@ name: Mirror | |
on: | ||
push: | ||
branches: | ||
- main | ||
- main** | ||
workflow_dispatch: | ||
|
||
jobs: | ||
|
This file contains hidden or 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 |
---|---|---|
|
@@ -6,3 +6,5 @@ | |
# zig | ||
zig-cache/ | ||
zig-out/ | ||
|
||
.cache_ggshield |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
|
||
serve: | ||
hugo serve | ||
zine | ||
|
||
lint: | ||
npx @lint-md/cli **/* | ||
|
This file contains hidden or 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,30 @@ | ||
[](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 | ||
``` |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.