Skip to content

Commit 1487a93

Browse files
author
“云云”
committed
Deploy WebCIA Weekly To GitHub Pages
1 parent c16f8a8 commit 1487a93

File tree

10 files changed

+30
-23
lines changed

10 files changed

+30
-23
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Deploy to GitHub Pages
1+
name: Deploy WebCIA Weekly to GitHub Pages
22

33
on:
44
# 每次推送到 `main` 分支时触发这个“工作流程”
@@ -34,6 +34,6 @@ jobs:
3434
name: github-pages
3535
url: ${{ steps.deployment.outputs.page_url }}
3636
steps:
37-
- name: Deploy to GitHub Pages
37+
- name: Deploy WebCIA Weekly to GitHub Pages
3838
id: deployment
3939
uses: actions/deploy-pages@v1

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# WebCIA Weekly (Web 情报局)
22

3-
> 想同大家分享每周从 RSS 信息源获取到的优质内容聚合,包含:技术文章、产品设计、思维观点、开源项目、资源和工具、焦点资讯等,一切值得关注的事物,为大家提供保持领先所需的见解。
3+
> 分享每周从 RSS 源获取到的优质信息聚合,包含:技术文章、产品设计、思维观点、开源项目、资源和工具、焦点资讯等,一切值得关注的事物,为大家提供保持领先所需的见解,也让自己实现了信息资源存档。
4+
5+
## 部署地址:
6+
7+
https://markyun.github.io/weekly/
8+
9+
https://webcia-weekly.vercel.app/
410

511
## 也会在以下渠道同时发布:
612

@@ -9,4 +15,6 @@ Github:
915
知乎:
1016
微信公众号:
1117

12-
- [第 01 期 - Web 情报局](https://webcia-weekly.vercel.app/posts/1-Web%E6%83%85%E6%8A%A5%E5%B1%80)
18+
## 发刊记录
19+
20+
- [第 01 期 - Web 情报局](https://markyun.github.io/weekly/posts/1-Web%E6%83%85%E6%8A%A5%E5%B1%80)

astro.config.mjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,11 @@ function defaultLayoutPlugin() {
4747

4848
// https://astro.build/config
4949
export default defineConfig({
50+
site: "https://markyun.github.io/weekly/",
51+
base: "/weekly",
52+
output: "static",
5053
integrations: [react(), tailwind()],
5154
markdown: {
5255
remarkPlugins: [defaultLayoutPlugin],
5356
},
54-
site: "https://webcia-weekly.github.io",
55-
base: "/Weekly",
5657
});

build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def fetch_ci_time(filePath):
2222
if name.endswith('.md'):
2323
filepath = urllib.parse.quote(name)
2424
oldTitle = name.split('.md')[0]
25-
url = 'https://markyun.github.io/posts/' + oldTitle
25+
url = 'https://markyun.github.io/weekly/posts/' + oldTitle
2626
title = '第 ' + oldTitle.split('-')[0] + ' 期 - ' + oldTitle.split('-')[1]
2727
readmeMd= '* [{}]({})\n'.format(title, url)
2828
dateList = ["2022-10-10","2022-09-26","2022-09-12","2022-09-05","2022-08-29"]

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "webcia",
2+
"name": "webcia-weekly",
33
"description": "分享技术文章、产品设计、思维观点、开源项目、资源和工具、焦点资讯等,一切值得关注的事物,为大家提供保持领先所需的见解",
44
"type": "module",
55
"version": "0.0.1",

src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export const SITE = {
55
keywords: "MarkYun,WebCIA,Weekly,Web,前端,React,JavaScript,",
66
icon: "https://markyun.github.io/images/avatar.png",
77
pic: "https://markyun.github.io/images/avatar.png",
8-
homePage: "https://markyun.github.io/",
8+
homePage: "https://markyun.github.io/weekly/",
99
blogPage: "https://markyun.github.io/",
1010
twitterId: "AsciiArt007",
1111
githubId: "markyun",

src/layouts/post.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,14 +240,14 @@ if (postIndex < allPosts.length) {
240240
target="_blank"
241241
class="xl:inline-block hidden"
242242
>
243-
| 订阅RSS</a
243+
| RSS</a
244244
>
245245
</div>
246246
</div>
247247
</div>
248248
<script
249249
src="https://giscus.app/client.js"
250-
data-repo={'markyun/Weekly'}
250+
data-repo={'markyun/weekly'}
251251
data-repo-id="R_kgDOLHCyFg"
252252
data-category="General"
253253
data-category-id="DIC_kwDOLHCyFs4Cci0n"

src/pages/posts/1-Web情报局.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ date: 2024/01/19
1010
1111
## 技术
1212

13+
**React Libraries for 2024**
14+
<https://www.robinwieruch.de/react-libraries/>
15+
在 2024 年可能会流行或者被广泛使用的 React 库。包含: 包管理、状态管理、数据获取、路由、CSS 样式、UI 库、动画库、可视化和图表库、表单库、类型检查、代码结构、身份验证、后端、数据库、托管、测试等。
16+
1317
**让用户养成使用习惯的产品逻辑**
1418
<https://zcool.com.cn/work/ZNjczMDA1NzY=.html>
1519
在站酷上看到一篇交互设计师胡三七写的「让用户养成使用习惯的产品逻辑」的万字文章,带大家认识大家熟知的行为设计模型,还会带上一些不靠谱的案例和靠谱的互联网案例,让大家更好理解学习。
@@ -42,6 +46,11 @@ https://quail.ink/op7418/p/overview-of-generative-ai-animation-technology-2023-d
4246

4347
## 开源
4448

49+
**简的 RSS 在线浏览工具**
50+
<https://github.com/srcrs/rss-reader>
51+
部署后,自定义配置好自己的 RRS 原,即可实时获取并展示 rss 订阅最新消息,支持夜间模式。
52+
<img src="https://p.ipic.vip/edvh1v.png" width="800" />
53+
4554
## 资讯
4655

4756
**以前靠信息不对称赚钱,现在靠什么赚钱?**

src/pages/rss.xml.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const get = () =>
1616
rss({
1717
title: "WebCIA Weekly",
1818
description: "保持领先所需的见解",
19-
site: "https://markyun.github.io/",
19+
site: "https://markyun.github.io/weekly/",
2020
customData: `<image><url>https://markyun.github.io/images/avatar.png</url></image>`,
2121
items: posts.map((item) => {
2222
const url = item.url;

0 commit comments

Comments
 (0)