Skip to content

Commit b755591

Browse files
authored
Merge pull request #7 from WingChunWong/main
✨ feat: 迁移到 Jekyll 站点并采用 Chirpy 主题
2 parents e0ac319 + ea07e33 commit b755591

38 files changed

Lines changed: 695 additions & 1307 deletions

.github/workflows/generate-rss.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

.github/workflows/pages-deploy.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: "Build and Deploy Jekyll Site"
2+
3+
on:
4+
push:
5+
branches: ["main", "master"]
6+
paths-ignore:
7+
- "README.md"
8+
9+
# 允许手动触发
10+
workflow_dispatch:
11+
12+
# GitHub Pages 部署权限
13+
permissions:
14+
contents: read
15+
pages: write
16+
id-token: write
17+
18+
# 同一时间只允许一个部署
19+
concurrency:
20+
group: "pages"
21+
cancel-in-progress: true
22+
23+
jobs:
24+
build:
25+
runs-on: ubuntu-latest
26+
steps:
27+
- name: Checkout
28+
uses: actions/checkout@v4
29+
with:
30+
fetch-depth: 0 # 获取完整 Git 历史(用于最后修改时间等)
31+
32+
- name: Setup Ruby
33+
uses: ruby/setup-ruby@v1
34+
with:
35+
ruby-version: "3.3"
36+
bundler-cache: true # 自动执行 bundle install 并缓存
37+
38+
- name: Setup Pages
39+
id: pages
40+
uses: actions/configure-pages@v4
41+
42+
- name: Build with Jekyll
43+
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
44+
env:
45+
JEKYLL_ENV: production
46+
47+
- name: Upload artifact
48+
uses: actions/upload-pages-artifact@v3
49+
with:
50+
path: "_site"
51+
52+
deploy:
53+
environment:
54+
name: github-pages
55+
url: ${{ steps.deployment.outputs.page_url }}
56+
runs-on: ubuntu-latest
57+
needs: build
58+
steps:
59+
- name: Deploy to GitHub Pages
60+
id: deployment
61+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Jekyll 构建输出
2+
_site/
3+
.jekyll-cache/
4+
.jekyll-metadata
5+
6+
# Ruby
7+
.bundle/
8+
vendor/
9+
Gemfile.lock
10+
11+
# Node 模块
12+
node_modules/
13+
14+
# 操作系统文件
15+
.DS_Store
16+
Thumbs.db
17+
18+
# IDE
19+
.vscode/
20+
.idea/
21+
*.swp
22+
*.swo
23+
24+
# 环境文件
25+
.env

CONTRIBUTING.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
## 项目结构
2+
3+
```
4+
├── _weekly/ # Jekyll 集合源文件(保留原始文件名:96.md, 97.md, ...)
5+
├── _config.yml # Jekyll 站点配置
6+
├── _tabs/ # Chirpy 主题导航页(目前仅保留 about)
7+
├── _data/ # 站点数据文件(联系方式、分享按钮等)
8+
├── asset/ # 静态资源(图片、Logo 等)
9+
├── post/ # 原始 Markdown 源文件(供 GitHub 浏览)
10+
├── Gemfile # Ruby 依赖声明
11+
└── .github/workflows/
12+
└── pages-deploy.yml # GitHub Actions 自动部署工作流
13+
```
14+
15+
## 本地开发
16+
17+
```bash
18+
# 安装依赖
19+
bundle install
20+
21+
# 启动本地服务器
22+
bundle exec jekyll serve
23+
24+
# 访问 http://127.0.0.1:4000/githubweekly/
25+
```
26+
27+
## 新增文章
28+
29+
`_weekly/` 目录下创建新文件,文件名即期号,如 `104.md`
30+
31+
```yaml
32+
---
33+
title: "GitHub一周热点第NNN期"
34+
date: "YYYY-MM-DD"
35+
description: "本期摘要"
36+
---
37+
38+
正文内容...
39+
```

Gemfile

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# frozen_string_literal: true
2+
3+
source "https://rubygems.org"
4+
5+
gem "jekyll-theme-chirpy", "~> 7.3"
6+
7+
# Jekyll 插件
8+
group :jekyll_plugins do
9+
gem "jekyll-seo-tag", "~> 2.8" # SEO meta 标签
10+
gem "jekyll-sitemap", "~> 1.4" # Sitemap 生成
11+
gem "jekyll-paginate", "~> 1.1" # 分页支持
12+
end
13+
14+
# Windows 和 JRuby 平台兼容
15+
platforms :windows, :jruby do
16+
gem "tzinfo", ">= 1", "< 3"
17+
gem "tzinfo-data"
18+
end
19+
20+
gem 'wdm', '>= 0.1.0', :platforms => [:windows]
21+
22+
# http_parser.rb 在 JRuby 上需限制版本
23+
gem "http_parser.rb", "~> 0.6.0", :platforms => [:jruby]

README.md

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,30 @@
11
<p align="center">
22
<a href="https://github.com/itcoffee66/githubweekly">
3-
<img src="asset/it-coffee-circle.png" alt="LangExtract Logo" width="128" />
3+
<img src="asset/it-coffee-circle.png" alt="IT咖啡馆" width="128" />
44
</a>
55
</p>
66

77
## githubweekly
88

99
GitHub一周热点汇总,每周分享热门项目,B站、YouTube发布视频版本,搜:IT咖啡馆
1010

11-
- 第104期:[智谱GLM-5发布,打响春节AI大战模型第一枪](post/104.md)
12-
- 第103期:[4000行代码的openclaw能用吗](post/103.md)
13-
- 第102期:[全球爆火的AI助理真的那么好用吗?](post/102.md)
14-
- 第101期:[IT咖啡馆的Github一周热点上线了](post/101.md)
15-
- 第100期:[火爆的AI编程代理](post/100.md)
16-
- 第99期:[提升Claude code效率10倍的工具?](post/99.md)
17-
- 第98期:[AI文档检索框架](post/98.md)
18-
- 第97期:[自动操作手机的智能助手](post/97.md)
19-
- 第96期:[FLUX发布了新一代,但似乎没那么惊艳了](post/96.md)
20-
21-
## RSS订阅文档
22-
使用RSS 订阅软件可以快速知道本周github热点项目
23-
24-
订阅地址为
25-
[https://itcoffee66.github.io/githubweekly/rss.xml](https://itcoffee66.github.io/githubweekly/rss.xml)
11+
12+
### 往期内容
13+
- 第104期:[智谱GLM-5发布,打响春节AI大战模型第一枪](_weekly/104.md) | [在线阅读](https://itcoffee66.github.io/githubweekly/104.html)
14+
- 第103期:[4000行代码的openclaw能用吗](_weekly/103.md) | [在线阅读](https://itcoffee66.github.io/githubweekly/103.html)
15+
- 第102期:[全球爆火的AI助理真的那么好用吗?](_weekly/102.md) | [在线阅读](https://itcoffee66.github.io/githubweekly/102.html)
16+
- 第101期:[IT咖啡馆的Github一周热点上线了](_weekly/101.md) | [在线阅读](https://itcoffee66.github.io/githubweekly/101.html)
17+
- 第100期:[火爆的AI编程代理](_weekly/100.md) | [在线阅读](https://itcoffee66.github.io/githubweekly/100.html)
18+
- 第99期:[提升Claude code效率10倍的工具?](_weeklu/99.md) | [在线阅读](https://itcoffee66.github.io/githubweekly/99.html)
19+
- 第98期:[AI文档检索框架](_weekly/98.md) | [在线阅读](https://itcoffee66.github.io/githubweekly/98.html)
20+
- 第97期:[自动操作手机的智能助手](_weekly/97.md) | [在线阅读](https://itcoffee66.github.io/githubweekly/97.html)
21+
- 第96期:[FLUX发布了新一代,但似乎没那么惊艳了](_weekly/96.md) | [在线阅读](https://itcoffee66.github.io/githubweekly/96.html)
22+
23+
## RSS 订阅
24+
25+
使用 RSS 订阅软件可以快速知道本周 GitHub 热点项目
26+
27+
订阅地址:[https://itcoffee66.github.io/githubweekly/feed.xml](https://itcoffee66.github.io/githubweekly/feed.xml)
28+
29+
30+

_config.yml

Lines changed: 151 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,151 @@
1+
# ---------------------------------------------------------------------------
2+
# 站点基本配置 - Jekyll & Chirpy 主题
3+
# ---------------------------------------------------------------------------
4+
5+
# 导入 Chirpy 主题
6+
theme: jekyll-theme-chirpy
7+
8+
# 网页语言(对应 _data/locales/ 下的翻译文件)
9+
# http://www.lingoes.net/en/translator/langcode.htm
10+
lang: zh-CN
11+
12+
# 时区设置 https://zones.arilyn.cc
13+
timezone: Asia/Shanghai
14+
15+
# ---------------------------------------------------------------------------
16+
# jekyll-seo-tag 设置
17+
# https://github.com/jekyll/jekyll-seo-tag/blob/master/docs/usage.md
18+
# ---------------------------------------------------------------------------
19+
20+
title: Github Weekly # 站点标题
21+
tagline: "IT咖啡馆的GitHub每周热点" # 副标题/标语
22+
description: >- # SEO 描述 & Atom Feed 描述
23+
每周分享GitHub热门开源项目,涵盖AI、开发工具、框架等领域。
24+
B站、YouTube同步发布视频版本,搜:IT咖啡馆
25+
26+
# 站点 URL(不以 / 结尾)
27+
url: "https://itcoffee66.github.io"
28+
29+
# 项目站点的 baseurl(以 / 开头,不以 / 结尾)
30+
baseurl: "/githubweekly"
31+
32+
github:
33+
username: itcoffee66
34+
35+
social:
36+
name: IT咖啡馆
37+
links:
38+
- https://github.com/itcoffee66
39+
- https://space.bilibili.com/ # 替换为实际 B 站主页
40+
41+
# ---------------------------------------------------------------------------
42+
# 站点外观与功能
43+
# ---------------------------------------------------------------------------
44+
45+
# 站点图标(侧边栏头像)
46+
avatar: "/asset/it-coffee-circle.png"
47+
48+
# 文章目录(TOC)全局开关
49+
toc: true
50+
51+
# 评论系统(暂不开启,后续可配置 giscus 等)
52+
comments:
53+
provider: # [disqus | utterances | giscus]
54+
55+
# ---------------------------------------------------------------------------
56+
# 自托管静态资源
57+
# ---------------------------------------------------------------------------
58+
# assets:
59+
# self_host:
60+
# enabled: false
61+
62+
# PWA 配置
63+
pwa:
64+
enabled: false
65+
66+
# 分页:每页显示文章数
67+
paginate: 10
68+
69+
# ---------------------------------------------------------------------------
70+
# 订阅源配置
71+
# 使用仓库根目录的 rss.xml 静态文件,不由 Jekyll 生成
72+
# ---------------------------------------------------------------------------
73+
74+
# ---------------------------------------------------------------------------
75+
# 集合、永久链接与默认值
76+
# ---------------------------------------------------------------------------
77+
78+
# 使用 Jekyll Collection 而非 _posts,以保留原始文件名(96.md, 97.md, ...)
79+
# _weekly/ 目录中的 md 文件会被输出为 /asset/html/96.html 等
80+
collections:
81+
weekly:
82+
output: true
83+
sort_by: date
84+
permalink: /:name.html
85+
tabs:
86+
output: true
87+
sort_by: order
88+
89+
defaults:
90+
- scope:
91+
path: ""
92+
type: weekly
93+
values:
94+
layout: post
95+
comments: true
96+
toc: true
97+
- scope:
98+
path: _drafts
99+
values:
100+
comments: false
101+
- scope:
102+
path: ""
103+
type: tabs
104+
values:
105+
layout: page
106+
permalink: /:title/
107+
108+
# ---------------------------------------------------------------------------
109+
# Sass & HTML 压缩
110+
# ---------------------------------------------------------------------------
111+
sass:
112+
style: compressed
113+
114+
compress_html:
115+
clippings: all
116+
comments: all
117+
endings: all
118+
profile: false
119+
blanklines: false
120+
ignore:
121+
envs: [development]
122+
123+
# ---------------------------------------------------------------------------
124+
# 排除文件(不参与 Jekyll 构建)
125+
# ---------------------------------------------------------------------------
126+
exclude:
127+
- "*.gem"
128+
- "*.gemspec"
129+
- scripts/
130+
- post/ # 原始 Markdown 源文件(保留供 GitHub 浏览)
131+
- asset/html/ # 旧的 Python 脚本生成的 HTML(由 Jekyll 重新生成)
132+
# - rss.xml # 保留根目录 rss.xml 作为静态文件输出
133+
- node_modules/
134+
- vendor/
135+
- Gemfile.lock
136+
- LICENSE
137+
- "*.config.js"
138+
139+
# ---------------------------------------------------------------------------
140+
# Kramdown Markdown 处理器
141+
# ---------------------------------------------------------------------------
142+
kramdown:
143+
footnote_backlink: "&#8617;&#xfe0e;"
144+
syntax_highlighter: rouge
145+
syntax_highlighter_opts:
146+
css_class: highlight
147+
span:
148+
line_numbers: false
149+
block:
150+
line_numbers: true
151+
start_line: 1

0 commit comments

Comments
 (0)