Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
lerte committed Apr 16, 2024
1 parent 5001cbc commit 1267134
Show file tree
Hide file tree
Showing 16 changed files with 73 additions and 155 deletions.
12 changes: 0 additions & 12 deletions docs/blog/2019-05-28-first-blog-post.md

This file was deleted.

44 changes: 0 additions & 44 deletions docs/blog/2019-05-29-long-blog-post.md

This file was deleted.

20 changes: 0 additions & 20 deletions docs/blog/2021-08-01-mdx-blog-post.mdx

This file was deleted.

Binary file not shown.
25 changes: 0 additions & 25 deletions docs/blog/2021-08-26-welcome/index.md

This file was deleted.

17 changes: 0 additions & 17 deletions docs/blog/authors.yml

This file was deleted.

2 changes: 1 addition & 1 deletion docs/docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ Zroker is a gui client for zrok.

## Installation

- Download the latest release from [GitHub](https://github.com/lerte/zroker/releases/latest).
- [Download](/download) the app.
- Open the app.
- [Invite](/docs/invite) your email.
25 changes: 14 additions & 11 deletions docs/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,9 @@ const config: Config = {
type: "docSidebar",
sidebarId: "tutorialSidebar",
position: "left",
label: "Tutorial",
},
{ to: "/blog", label: "Blog", position: "left" },
{
href: "https://github.com/lerte/zroker/releases",
label: "Download",
position: "left",
label: "Docs",
},
{ to: "/download", label: "Download", position: "left" },
{
position: "right",
className: "header-github-link",
Expand All @@ -89,8 +84,16 @@ const config: Config = {
title: "Docs",
items: [
{
label: "Tutorial",
to: "/docs/intro",
label: "Invite",
to: "/docs/invite",
},
{
label: "Enable",
to: "/docs/enable",
},
{
label: "Overview",
to: "/docs/overview",
},
],
},
Expand All @@ -111,8 +114,8 @@ const config: Config = {
title: "More",
items: [
{
label: "Blog",
to: "/blog",
label: "Download",
to: "/download",
},
{
label: "Ngroker",
Expand Down
23 changes: 23 additions & 0 deletions docs/src/components/DownloadSections/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import styles from "./styles.module.css";

export default function DownloadSections(): JSX.Element {
return (
<section className={styles.downloads}>
<div className="container">
<div className="row">
<div className="col col--4 text--center">
<button className="button button--lg button--success">
Windows
</button>
</div>
<div className="col col--4 text--center">
<button className="button button--lg button--info">macOS</button>
</div>
<div className="col col--4 text--center">
<button className="button button--lg button--warning">Linux</button>
</div>
</div>
</div>
</section>
);
}
6 changes: 6 additions & 0 deletions docs/src/components/DownloadSections/styles.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.downloads {
display: flex;
align-items: center;
padding: 2rem 0;
width: 100%;
}
4 changes: 4 additions & 0 deletions docs/src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
}

.main-wrapper {
justify-content: center;
}

.header-github-link::before {
content: "";
width: 24px;
Expand Down
15 changes: 15 additions & 0 deletions docs/src/pages/download.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import Layout from "@theme/Layout";
import DownloadSections from "@site/src/components/DownloadSections";

export default function Download(): JSX.Element {
return (
<Layout
title="Download"
description="download zroker app"
>
<main>
<DownloadSections />
</main>
</Layout>
);
}
1 change: 1 addition & 0 deletions docs/src/pages/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
}

.buttons {
gap: 2rem;
display: flex;
align-items: center;
justify-content: center;
Expand Down
11 changes: 8 additions & 3 deletions docs/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,23 @@ function HomepageHeader() {
>
Quick start
</Link>
<Link
className="button button--info button--lg"
to="/download"
>
Download
</Link>
</div>
</div>
</header>
);
}

export default function Home(): JSX.Element {
const { siteConfig } = useDocusaurusContext();
return (
<Layout
title={`${siteConfig.title}`}
description="Description will go into a meta tag in <head />"
title="zrok gui clinet"
description="open source, writen in wails"
>
<HomepageHeader />
<main>
Expand Down
2 changes: 1 addition & 1 deletion docs/static/img/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 0 additions & 21 deletions frontend/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,5 @@ module.exports = {
"./components/**/*.{ts,tsx}",
"./app/**/*.{ts,tsx}",
"./src/**/*.{ts,tsx}",
"./node_modules/actify/dist/**/*.{js,ts,jsx,tsx}",
],
theme: {
extend: {
colors: {
primary: "rgb(var(--color-primary, 0 106 106) / <alpha-value>)",
"on-primary":
"rgb(var(--color-on-primary, 255 255 255) / <alpha-value>)",
secondary: "rgb(var(--color-secondary, 74 99 99) / <alpha-value>)",
"on-secondary":
"rgb(var(--color-on-secondary, 255 255 255) / <alpha-value>)",
tertiary: "rgb(var(--color-tertiary, 75 96 124) / <alpha-value>)",
"on-tertiary":
"rgb(var(--color-on-tertiary, 255 255 255) / <alpha-value>)",
error: "rgb(var(--color-error, 186 26 26) / <alpha-value>)",
"on-error": "rgb(var(--color-on-error, 255 255 255) / <alpha-value>)",
surface: "rgb(var(--color-surface, 250 253 252) / <alpha-value>)",
"on-surface": "rgb(var(--color-on-surface, 25 28 28) / <alpha-value>)",
outline: "rgb(var(--color-outline, 111 121 121) / <alpha-value>)",
},
},
},
};

0 comments on commit 1267134

Please sign in to comment.