From 44c6142d69b09de2d0770d0e4c0b1034eb055b08 Mon Sep 17 00:00:00 2001 From: Vincent Zhong Date: Fri, 15 Nov 2024 19:51:36 +0800 Subject: [PATCH] update repo name --- README.md | 2 +- docs/docusaurus/deploy.md | 2 +- docs/docusaurus/{install.mdx => install.md} | 6 +- docs/english42/index.md | 32 ++++++ docs/english42/l0.md | 1 + docs/english42/music.md | 119 ++++++++++++++++++++ docs/recipes/index.md | 13 +++ docs/recipes/lemon-tea.md | 2 + docs/recipes/milk-tea.md | 32 ++++++ docusaurus.config.js | 6 +- package-lock.json | 4 +- package.json | 2 +- src/pages/storj.md | 33 ++++++ 13 files changed, 243 insertions(+), 11 deletions(-) rename docs/docusaurus/{install.mdx => install.md} (77%) create mode 100644 docs/english42/index.md create mode 100644 docs/english42/l0.md create mode 100644 docs/english42/music.md create mode 100644 docs/recipes/index.md create mode 100644 docs/recipes/lemon-tea.md create mode 100644 docs/recipes/milk-tea.md create mode 100644 src/pages/storj.md diff --git a/README.md b/README.md index b88d1b4..7686b24 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# fpac(fries port academy of sciencs website) +# fries-port-website(fries port academy of sciencs website) fries-port-website diff --git a/docs/docusaurus/deploy.md b/docs/docusaurus/deploy.md index e907e17..5c08772 100644 --- a/docs/docusaurus/deploy.md +++ b/docs/docusaurus/deploy.md @@ -14,7 +14,7 @@ npm run serve 但是我手边没有能够24小时稳定连接网络的设备,因此我选择托管到免费的github pages。理论上可以部署到任何提供对象存储或者提供静态网站托管的服务商。 ## 部署到github pages -每个仓库的网站会托管到指定域名,对于薯条港的fpac仓库来说,这个域名是[`friesport.github.io/fpac`](https://friesport.github.io/fpac)。github会从根目录的`.github/workflows`文件夹读取action配置。从官网抄作业,在这个文件夹下创建action配置文件。注意,官网使用的是yarn,这里我替换为npm,如果需要yarn包管理器的请摘抄官网的。 +每个仓库的网站会托管到指定域名,对于薯条港的fries-port-website仓库来说,这个域名是[`friesport.github.io/fries-port-website`](https://friesport.github.io/fries-port-website)。github会从根目录的`.github/workflows`文件夹读取action配置。从官网抄作业,在这个文件夹下创建action配置文件。注意,官网使用的是yarn,这里我替换为npm,如果需要yarn包管理器的请摘抄官网的。 ```yaml title=".github\workflows\deploy.yml" name: Deploy to GitHub Pages diff --git a/docs/docusaurus/install.mdx b/docs/docusaurus/install.md similarity index 77% rename from docs/docusaurus/install.mdx rename to docs/docusaurus/install.md index 820c752..b593dd8 100644 --- a/docs/docusaurus/install.mdx +++ b/docs/docusaurus/install.md @@ -9,15 +9,15 @@ sidebar_position: 2 - (可选)魔法上网 ## 步骤 -在终端运行命令,你需要将`fpac`改为你自己的项目名。 +在终端运行命令,你需要将`fries-port-website`改为你自己的项目名。 ```bash -npx create-docusaurus@latest fpac classic +npx create-docusaurus@latest fries-port-website classic ``` 我的命令使用经典模板,且没有使用typescript,如果你需要启用typescript,请在后面加上参数`--typescript`。其他包管理请参见参考文档。 进入文件夹安装依赖后可以尝试启动服务,如果成功,应该可以在[`http://localhost:3000`](http://localhost:3000)访问。 ```bash -cd fpac +cd fries-port-website npm install npm run start ``` diff --git a/docs/english42/index.md b/docs/english42/index.md new file mode 100644 index 0000000..be03e44 --- /dev/null +++ b/docs/english42/index.md @@ -0,0 +1,32 @@ +# English 42 +the answer of learning english. + +## 简介 + +本课程基于“逻辑英语”的课程框架搭建,并做了调整。由于笔者缺乏更深入的对英语的研究,因此,不可避免的会有错误,如果你发现了错误,可以向我的b站账号私信,或者发送邮件,当然,最好是在github自己fork后修改,发起pr,这样我就可以直接merge了。 + +### 更大的世界 + +我在大一的时候有幸接触到了csdiy.wiki。根据其中的课程,我了解到除了b站,还有edx,coursura等平台,哈佛MIT伯克利微软,IBM等校企提供质量上乘的课程,但是因为其工作语文(语言和文字)为英语,我推荐过的不少小伙伴没有坚持下来,甚至没入坑。我希望将自己的学习经历分享出来。本人曾根据此课程,高中英语从60分提升到高考120分,虽然分数不高,但我相信我的经历可以帮助一些遇到同样困难的小伙伴。 + +面相世界 + +入门轻松 + +更适合高考60-90分的宝宝 + +## 注意 + + +我曾考虑的很久应该用什么平台社区。但是微信群组和QQ都让我们感到畏手畏脚。腾讯对大用户量的体验不算好。最后我们决定自部署。由网站提供文档。 + +不要在其他卖课的视频下刷CS50和En42。 +1. 没准你回复的人是个托,会导致En42受到不必要的关注。即使强如wallpaper engine,在安卓市场也需要差评保护自己不被同行举报。 +2. 本课程没有足够强大的客服支持,无法提供有力的疑难解答。 +3. 如果你想分享给你的伙伴,可以私下进行转发。 + +统称为文档(docs)其中,手册(manual)是一套完整,深入的说明,职责类似说明书,详细说明每个选项的用法。指南(guide)是一个简单的“操作方法”,有足够的信息可以帮助您入门,个人理解为指引前进方向的文章,例如学习路径。教程(tutorial)是一系列课程,它将引导您逐步教您如何做某事。 + + + + diff --git a/docs/english42/l0.md b/docs/english42/l0.md new file mode 100644 index 0000000..3fc8af0 --- /dev/null +++ b/docs/english42/l0.md @@ -0,0 +1 @@ +# Lecture 0 \ No newline at end of file diff --git a/docs/english42/music.md b/docs/english42/music.md new file mode 100644 index 0000000..937b3c6 --- /dev/null +++ b/docs/english42/music.md @@ -0,0 +1,119 @@ +音乐列表 +书签 +bright: +inspirational: +happy: + +--- +>Wake Up - Sakura Girl https://soundcloud.com/sakuragirl_official +Creative Commons — Attribution 3.0 Unported — CC BY 3.0 +Free Download / Stream: https://tinyurl.com/c5b2uw54 +Music promoted by Audio Library https://tinyurl.com/mr43kw6y + +pop / bright +轻松欢快 + +--- +>Way To You (Instrumental) by Spiring https://soundcloud.com/user-57630131 +Creative Commons — Attribution 3.0 Unported — CC BY 3.0 +Free Download / Stream: https://tinyurl.com/3jjeew9m +Music promoted by Audio Library https://tinyurl.com/bdfh7vz + +holiday / bright + +--- +>Natural by Roa https://soundcloud.com/roa_music1031 +Creative Commons — Attribution 3.0 Unported — CC BY 3.0 +Free Download / Stream: https://tinyurl.com/2kuv823f +Music promoted by Audio Library https://tinyurl.com/zvcc2d7x + +高度重复 + +--- +>Music | Look At The Clouds by Declan DP +License: https://license.declandp.info +Free Download / Stream: https://bit.ly/49UWP46 +Promoted by Audio Library https://bit.ly/48LtPdZ + +不错 有人声Let's go + +--- +>Wake Up Call by Jay Someday https://soundcloud.com/jaysomeday +Creative Commons — Attribution 3.0 Unported — CC BY 3.0 +Free Download / Stream: http://tinyurl.com/yck4f498 +Music promoted by Audio Library: http://tinyurl.com/2rtda7pn + +好听,节奏多变,适合度假旅行之类的轻松场景 + +--- + +>Bali by MBB https://soundcloud.com/mbbofficial +Creative Commons — Attribution-ShareAlike 3.0 Unported — CC BY-SA 3.0 +Free Download / Stream: http://tinyurl.com/27ctw9ru +Music promoted by Audio Library http://tinyurl.com/4yrbrbms + +好听,节奏多变适合度假旅行之类的轻松场景 + +--- + +>After All - Sakura Girl https://soundcloud.com/sakuragirl_official +Creative Commons — Attribution 3.0 Unported — CC BY 3.0 +Free Download / Stream: https://bit.ly/3ujkagO +Music promoted by Audio Library https://bit.ly/3uiUYaf + +高重复,平静,适用生活类场景 + +--- +>Cozy Town by Qlowdy https://soundcloud.com/qlowdymusic +Creative Commons — Attribution 3.0 Unported — CC BY 3.0 +Free Download / Stream: https://bit.ly/3taOV73 +Music promoted by Audio Library https://bit.ly/4amnbgk + +休闲类,高重复节奏 + +--- + +>Timeless by Roa https://soundcloud.com/roa_music1031 +Creative Commons — Attribution 3.0 Unported — CC BY 3.0 +Free Download / Stream: https://bit.ly/41bYWNW +Music promoted by Audio Library https://bit.ly/47JjY8P + +好听,梦幻,活泼,节奏多变 + +--- + +>Weekend by Roa https://soundcloud.com/roa_music1031 +Creative Commons — Attribution 3.0 Unported — CC BY 3.0 +Free Download / Stream: https://bit.ly/3R690og +Music promoted by Audio Library https://bit.ly/49IGIYb + +好听,活泼,节奏多变,轻松愉快 + +--- + +>Get Free by Hotham https://soundcloud.com/hothammusic +Creative Commons — Attribution 3.0 Unported — CC BY 3.0 +Free Download / Stream: https://bit.ly/49u0g25 +Music promoted by Audio Library https://bit.ly/473lz9n + +还可以,电音,活泼,节奏循环 + +--- + +>Peaches by LiQWYD https://soundcloud.com/liqwyd +Creative Commons — Attribution 3.0 Unported — CC BY 3.0 +Free Download / Stream: https://bit.ly/45R4kGW +Music promoted by Audio Library https://bit.ly/3sbPs86 + +一般 + +--- + +>Feels by Roa https://soundcloud.com/roa_music1031 +Creative Commons — Attribution 3.0 Unported — CC BY 3.0 +Free Download / Stream: https://bit.ly/3rwh1bR +Music promoted by Audio Library https://bit.ly/3PwhjYi + +宁静,好听 + +--- diff --git a/docs/recipes/index.md b/docs/recipes/index.md new file mode 100644 index 0000000..ebf4275 --- /dev/null +++ b/docs/recipes/index.md @@ -0,0 +1,13 @@ +# 菜单 + +如果没有特殊说明,本站文章以CC4.0-BY-SA发布。 + + +## 饮料 + +[奶茶](/recipes/milk-tea) +[柠檬茶](/recipes/) + +## 参考资料 + +[小霸王薄荷茶](https://zhuanlan.zhihu.com/p/148298775) \ No newline at end of file diff --git a/docs/recipes/lemon-tea.md b/docs/recipes/lemon-tea.md new file mode 100644 index 0000000..653cf20 --- /dev/null +++ b/docs/recipes/lemon-tea.md @@ -0,0 +1,2 @@ +# 柠檬茶 +施工中 \ No newline at end of file diff --git a/docs/recipes/milk-tea.md b/docs/recipes/milk-tea.md new file mode 100644 index 0000000..dae0fd1 --- /dev/null +++ b/docs/recipes/milk-tea.md @@ -0,0 +1,32 @@ +# 奶茶 + +## 准备 + +- 水:1L +- 茶叶:4包 +- 牛奶:300ml +- 甜味剂(糖浆、白砂糖、冰糖或其他) +- 增滑剂(动物奶油、植脂末或其他) +- 着色剂(红糖或其他) + +## 步骤 + +### 煮茶 + +煮水,沸腾后加入茶叶,停火。 + +### 加奶 + +等茶泡得差不多后加入牛奶、糖浆、奶油,再次加热之沸腾。 + +### 捞奶皮 +冷却后用漏勺捞奶皮 + +### 着色 +加入红糖,挂壁,会好看一点 + +## 总结 +喝完有一点点干,不知道是不是糖加多了或者增滑剂不够。 + +## 参考资料 +[小霸王的奶茶教程](https://www.zhihu.com/question/327037821/answer/1275670071) \ No newline at end of file diff --git a/docusaurus.config.js b/docusaurus.config.js index 32d1266..a8c05f8 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -23,7 +23,7 @@ const config = { // GitHub pages deployment config. // If you aren't using GitHub pages, you don't need these. organizationName: 'friesport', // Usually your GitHub org/user name. - projectName: 'fpac', // Usually your repo name. + projectName: 'fries-port-website', // Usually your repo name. deploymentBranch: 'gh-pages', onBrokenLinks: 'throw', onBrokenMarkdownLinks: 'warn', @@ -90,7 +90,7 @@ const config = { }, {to: '/blog', label: '博客', position: 'left'}, { - href: 'https://github.com/friesport/fpac', + href: 'https://github.com/friesport/fries-port-website', label: 'GitHub', position: 'right', }, @@ -138,7 +138,7 @@ const config = { }, { label: 'GitHub', - href: 'https://github.com/friesport/fpac', + href: 'https://github.com/friesport/fries-port-website', }, ], }, diff --git a/package-lock.json b/package-lock.json index 063aab9..6565166 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,11 @@ { - "name": "fpac", + "name": "fries-port-website", "version": "0.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "fpac", + "name": "fries-port-website", "version": "0.0.0", "dependencies": { "@docusaurus/core": "3.6.1", diff --git a/package.json b/package.json index 0c21ccb..967887a 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "fpac", + "name": "fries-port-website", "version": "0.0.0", "private": true, "scripts": { diff --git a/src/pages/storj.md b/src/pages/storj.md new file mode 100644 index 0000000..a0040c6 --- /dev/null +++ b/src/pages/storj.md @@ -0,0 +1,33 @@ +# storj的静态网站托管 + +storj是一个全球化的分布式存储方案,发送给storj的文件会被膨胀切割为文件片,存在不同的矿工托管的服务器上。在需要时发回给用户,站长支付storj代币给矿工。相比于oss或者s3,storj的价格比较便宜,存储`$0.003/Gb/mon`,下行`$0.007/Gb/mon`。由于使用人数尚未到达需要可以需要无视下行费用的cloudfare(下文简称cf)的R2对象存储的地步,又顺便尝试一下新东西,因此将静态网站托管在storj上。 + +## 设置storj + +需要提前设置uplink + +```bash +./uplink.exe share --dns sj:/// --tls --not-after=none +``` +薯条港的静态网站参数如下,因为没有特殊的设置,所以直接使用根目录 + +```bash +./uplink.exe share --dns docs.friesport.ac.cn sj://fpa-website --tls --not-after=none +``` + +uplink提供了如下参数 +``` +Remember to update the $ORIGIN with your domain name. You may also change the $TTL. +$ORIGIN example.com. +$TTL 3600 +docs.friesport.ac.cn IN CNAME link.storjshare.io. +txt-docs.friesport.ac.cn IN TXT storj-root:fpa-website +txt-docs.friesport.ac.cn IN TXT storj-access:XXXXXXXXXXXXXXXXXXXX +txt-docs.friesport.ac.cn IN TXT storj-tls:true +``` +## 设置dns +我的dns已经迁移到cf,因此展示cf的设置 +需要4个参数,1个cname,3个text + +## 参考资料 +[官方教程](https://storj.dev/dcs/code/static-site-hosting) \ No newline at end of file