Skip to content

Commit

Permalink
update repo name
Browse files Browse the repository at this point in the history
  • Loading branch information
teacup418 committed Nov 15, 2024
1 parent df6376d commit 44c6142
Show file tree
Hide file tree
Showing 13 changed files with 243 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# fpac(fries port academy of sciencs website)
# fries-port-website(fries port academy of sciencs website)

fries-port-website

Expand Down
2 changes: 1 addition & 1 deletion docs/docusaurus/deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 3 additions & 3 deletions docs/docusaurus/install.mdx → docs/docusaurus/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down
32 changes: 32 additions & 0 deletions docs/english42/index.md
Original file line number Diff line number Diff line change
@@ -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)是一系列课程,它将引导您逐步教您如何做某事。




1 change: 1 addition & 0 deletions docs/english42/l0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Lecture 0
119 changes: 119 additions & 0 deletions docs/english42/music.md
Original file line number Diff line number Diff line change
@@ -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

宁静,好听

---
13 changes: 13 additions & 0 deletions docs/recipes/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# 菜单

如果没有特殊说明,本站文章以CC4.0-BY-SA发布。


## 饮料

[奶茶](/recipes/milk-tea)
[柠檬茶](/recipes/)

## 参考资料

[小霸王薄荷茶](https://zhuanlan.zhihu.com/p/148298775)
2 changes: 2 additions & 0 deletions docs/recipes/lemon-tea.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# 柠檬茶
施工中
32 changes: 32 additions & 0 deletions docs/recipes/milk-tea.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# 奶茶

## 准备

- 水:1L
- 茶叶:4包
- 牛奶:300ml
- 甜味剂(糖浆、白砂糖、冰糖或其他)
- 增滑剂(动物奶油、植脂末或其他)
- 着色剂(红糖或其他)

## 步骤

### 煮茶

煮水,沸腾后加入茶叶,停火。

### 加奶

等茶泡得差不多后加入牛奶、糖浆、奶油,再次加热之沸腾。

### 捞奶皮
冷却后用漏勺捞奶皮

### 着色
加入红糖,挂壁,会好看一点

## 总结
喝完有一点点干,不知道是不是糖加多了或者增滑剂不够。

## 参考资料
[小霸王的奶茶教程](https://www.zhihu.com/question/327037821/answer/1275670071)
6 changes: 3 additions & 3 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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',
},
Expand Down Expand Up @@ -138,7 +138,7 @@ const config = {
},
{
label: 'GitHub',
href: 'https://github.com/friesport/fpac',
href: 'https://github.com/friesport/fries-port-website',
},
],
},
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "fpac",
"name": "fries-port-website",
"version": "0.0.0",
"private": true,
"scripts": {
Expand Down
33 changes: 33 additions & 0 deletions src/pages/storj.md
Original file line number Diff line number Diff line change
@@ -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 <hostname> sj://<bucket>/<prefix> --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)

0 comments on commit 44c6142

Please sign in to comment.