Skip to content

Commit

Permalink
Finish writing the docusaurus deploy article
Browse files Browse the repository at this point in the history
  • Loading branch information
teacup418 committed Nov 16, 2024
1 parent 2742bf4 commit 38dc211
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docs/docusaurus/dns.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ sidebar_position: 4

提交后会在根目录生成CNAME文件,将该文件挪至static下面,构建静态页面时会自动复制到根目录。

在dns中将目标子域名cname解析到你的仓库github pages。例如我计划使用`www.friesport.ac.cn`作为目标域名,则需要将子域名`www`用cname方法解析到仓库的github pages页面`friesport.github.io/fries-port-website`
在dns中将目标子域名cname解析到你的仓库github pages。例如我计划使用`www.friesport.ac.cn`作为目标域名,则需要将子域名`www`用cname方法解析到仓库的github pages域名`friesport.github.io`


## 参考文献
Expand Down
4 changes: 3 additions & 1 deletion docs/feat.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ sidebar_position: 1
# 待办

- [ ] 部署storj节点
- [ ] https://storj.dev/node/get-started/port-forwarding
- [ ] https://storj.dev/node/get-started/port-forwarding
- [ ] 调整网站颜色红色#ea5a47,黄色#fcea2b
- [ ]
4 changes: 2 additions & 2 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const config = {
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
'https://github.com/FriesPort/fries-port-website/tree/main',
},
blog: {
showReadingTime: true,
Expand All @@ -57,7 +57,7 @@ const config = {
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
'https://github.com/FriesPort/fries-port-website/tree/main',
// Useful options to enforce blogging best practices
onInlineTags: 'warn',
onInlineAuthors: 'warn',
Expand Down
17 changes: 17 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"write-heading-ids": "docusaurus write-heading-ids"
},
"dependencies": {
"@ant-design/colors": "^7.1.0",
"@docusaurus/core": "3.6.1",
"@docusaurus/preset-classic": "3.6.1",
"@mdx-js/react": "^3.0.0",
Expand Down
18 changes: 15 additions & 3 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

/* You can override the default Infima variables here. */
:root {
/* :root {
--ifm-color-primary: #2e8555;
--ifm-color-primary-dark: #29784c;
--ifm-color-primary-darker: #277148;
Expand All @@ -15,11 +15,23 @@
--ifm-color-primary-lightest: #3cad6e;
--ifm-code-font-size: 95%;
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);
}
} */

/* https://ant-design.antgroup.com/docs/spec/colors-cn */
:root {
--ifm-color-primary: #faad14;
--ifm-color-primary-dark: #29784c;
--ifm-color-primary-darker: #277148;
--ifm-color-primary-darkest: #205d3b;
--ifm-color-primary-light: #33925d;
--ifm-color-primary-lighter: #359962;
--ifm-color-primary-lightest: #3cad6e;
--ifm-code-font-size: 95%;
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);
}
/* For readability concerns, you should choose a lighter palette in dark mode. */
[data-theme='dark'] {
--ifm-color-primary: #25c2a0;
--ifm-color-primary: #faad14;
--ifm-color-primary-dark: #21af90;
--ifm-color-primary-darker: #1fa588;
--ifm-color-primary-darkest: #1a8870;
Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function HomepageHeader() {
<div className={styles.buttons}>
<Link
className="button button--secondary button--lg"
to="/docs/intro">
to="/docs/feat">
Start with FriesPort!
</Link>
</div>
Expand Down

0 comments on commit 38dc211

Please sign in to comment.