Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
webloopbox committed Oct 11, 2024
1 parent d60dd87 commit 8c65567
Show file tree
Hide file tree
Showing 9 changed files with 59 additions and 211 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/deploy-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
lfs: true

- name: Setup Node.js
uses: actions/setup-node@v3
Expand All @@ -30,6 +32,8 @@ jobs:
npm install
- name: Build all packages (reactgrid and website)
env:
NEXT_PUBLIC_BASE_PATH: "/reactgrid"
run: |
npm run build --workspaces
Expand All @@ -46,6 +50,11 @@ jobs:
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout
uses: actions/checkout@v3
with:
lfs: true

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
2 changes: 1 addition & 1 deletion website/components/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default function Header({ children }: { children: any }) {
className={`grid hidden md:grid text-black-primary md:text-white-primary col-start-5 col-end-13 2xl:col-start-8 2xl:col-end-11 grid-cols-1 md:grid-cols-navLinks justify-items-start md:justify-items-stretch content-start md:content-stretch md:top-auto gap-y-4 md:gap-y-0 menu-horizontal`}
>
<HeaderLink href="/demo">Demo</HeaderLink>
<HeaderLink href="/docs">Docs</HeaderLink>
<HeaderLink href="/docs/5.0/1-getting-started">Docs</HeaderLink>
<HeaderLink href="/support">Support</HeaderLink>
</div>
<span className="border-l-1 hidden 2xl:flex border-l-1 border-green-light"></span>
Expand Down
7 changes: 6 additions & 1 deletion website/components/reactgrid-sample.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,12 @@ export default function ReactGridMainExample() {
</div>
<div className="flex justify-center items-center">
<video autoPlay loop muted className="w-full h-auto">
<source src="/static/liquidity-planner.webm" type="video/webm" />
<source
src={`${
process.env.NEXT_PUBLIC_BASE_PATH || ""
}/static/liquidity-planner.webm`}
type="video/webm"
/>
Your browser does not support the video tag.
</video>
</div>
Expand Down
43 changes: 43 additions & 0 deletions website/pages/docs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,47 @@ metaTitle: "Introduction"
metaDescription: "ReactGrid docs"
---

import Image from "next/image";
import edgeIcon from "@/public/static/edge.svg";
import chromeIcon from "@/public/static/chrome.svg";
import firefoxIcon from "@/public/static/firefox.svg";
import safariIcon from "@/public/static/safari.svg";

ReactGrid lets you create custom data grids inside your ReactJS applications, which look and feel like spreadsheets.

#### Caveats

a) If you notice `sticky` incorrect behavior, when you try to pin them to HTML `<body>` tag, add this line to `index.html` file in your project.
It should be helpful in many cases and different mobile devices.

```html
<meta
name="viewport"
content="width=device-width, initial-scale=0.86, maximum-scale=5.0, minimum-scale=0.86"
/>
```

#### Supported browsers

Desktop Browsers

<br />

<div style={{ display: "flex", gap: "2rem", height: "3rem" }}>
<Image src={chromeIcon} alt="Chrome logo." width={50} height={50} />
<Image src={firefoxIcon} alt="Firefox logo." width={50} height={50} />
<Image src={edgeIcon} alt="Edge logo." width={50} height={50} />
<Image src={safariIcon} alt="Safari logo." width={50} height={50} />
</div>

<br />

Mobile Browsers

<br />

<div style={{ display: "flex", gap: "2rem", height: "3rem" }}>
<Image src={chromeIcon} alt="Chrome logo." width={50} height={50} />
<Image src={firefoxIcon} alt="Firefox logo." width={50} height={50} />
<Image src={safariIcon} alt="Safari logo." width={50} height={50} />
</div>
51 changes: 0 additions & 51 deletions website/pages/docs/3.0.mdx

This file was deleted.

52 changes: 0 additions & 52 deletions website/pages/docs/3.1.mdx

This file was deleted.

51 changes: 0 additions & 51 deletions website/pages/docs/4.0.mdx

This file was deleted.

51 changes: 0 additions & 51 deletions website/pages/docs/5.0.mdx

This file was deleted.

4 changes: 0 additions & 4 deletions website/pages/docs/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
{
"-- Versions": {
"title": "Versions",
"type": "separator"
},
"5.0": "5.0",
"4.0": "4.0",
"3.1": "3.1",
Expand Down

0 comments on commit 8c65567

Please sign in to comment.