docs: improve website

improve-workflow
Meng Zhang 2023-06-07 11:47:26 -07:00
parent 40460885b0
commit e7f5d38389
2 changed files with 8 additions and 13 deletions

View File

@ -30,11 +30,14 @@
background-color: var(--openapi-monaco-background-color-light) !important; background-color: var(--openapi-monaco-background-color-light) !important;
} }
.markdown a {
color: var(--ifm-color-success-darkest);
}
.post a { .post a {
display: flex; display: flex;
} }
.post a::after { .post a::after {
content: "post"; content: "post";
margin-left: auto; margin-left: auto;

View File

@ -14,29 +14,21 @@ function HomepageHeader() {
<div className="container"> <div className="container">
<h1 className="hero__title">{siteConfig.title}</h1> <h1 className="hero__title">{siteConfig.title}</h1>
<p className="hero__subtitle">{siteConfig.tagline}</p> <p className="hero__subtitle">{siteConfig.tagline}</p>
{false && <div className={styles.buttons}>
<div className={styles.buttons}>
<Link <Link
className="button button--secondary button--lg" className="button button--secondary button--lg"
to="/docs/intro"> to="/docs/getting-started">
Tutorial - 5min Tutorial - 5min
</Link> </Link>
</div>}
<div className="flex justify-center gap-1">
<ExternalLink href="https://github.com/TabbyML/tabby" imgUrl="https://img.shields.io/github/stars/TabbyML/tabby?style=social" />
<ExternalLink href="https://hub.docker.com/r/tabbyml/tabby" imgUrl="https://img.shields.io/docker/pulls/tabbyml/tabby?style=social" />
</div> </div>
<img className="m-5" src="img/demo.gif" /> <img className="m-5" src="img/demo.gif" />
</div> </div>
</header> </header>
); );
} }
function ExternalLink({href, imgUrl}) {
return <a target="_blanks" href={href}>
<img src={imgUrl} />
</a>
}
export default function Home() { export default function Home() {
const {siteConfig} = useDocusaurusContext(); const {siteConfig} = useDocusaurusContext();
return ( return (