-
Notifications
You must be signed in to change notification settings - Fork 11
docs: Implement card alike documents index #212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/beyondstorage/site/DiTVocxX5DNpnmEx3qVh3ge2C8wV |
// { | ||
// name: "General", | ||
// url: "/docs/general/index" | ||
// }, | ||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里不能注释掉,需求是现有的六个项目需要按照 ui 上的 card style 来显示
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
嗯,未来还会新增其他项目
docusaurus.config.js
Outdated
{ | ||
name: "go-storage", | ||
url: "/docs/go-storage/index" | ||
url: "/docs/go-storage/index", | ||
description: 'A vendor-neutral storage library for Golang: Write once, run on every storage service.' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
description 字段可以通过 githu API 获取
src/pages/docs.js
Outdated
const ProjectCard = (props) => { | ||
const { | ||
name, | ||
url, | ||
description, | ||
version = '0.1.0', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
项目的最新版本和发布日期也可以通过 github API 获取
@@ -9,7 +9,7 @@ | |||
display: inline-block; | |||
padding-right: 2px; | |||
|
|||
background-image: url('/img/underline.svg'); | |||
background-image: url("/img/underline.svg"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里为为什么要改成双引号
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
应该是格式化的时候干的
src/pages/docs.js
Outdated
{projects} | ||
<div className={styles.docs}> | ||
<h1>DOCUMENTS</h1> | ||
<p>Under Development</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we need to remove this line?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fine
Modify site docs projects #180