Skip to content

Commit 6c652b0

Browse files
committed
feat(minajs): add docs
1 parent 14e740e commit 6c652b0

File tree

15 files changed

+213
-5
lines changed

15 files changed

+213
-5
lines changed

.github/workflows/docs.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Deploy to GitHub Pages
2+
on:
3+
push:
4+
branches: [main]
5+
workflow_dispatch:
6+
permissions:
7+
contents: read
8+
pages: write
9+
id-token: write
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout your repository using git
15+
uses: actions/checkout@v4
16+
- uses: oven-sh/setup-bun@v2
17+
- run: bun i --no-save
18+
- run: bun run build
19+
- uses: actions/upload-artifact@v4
20+
with:
21+
name: docs
22+
path: apps/docs/docs/dist
23+
deploy:
24+
needs: build
25+
runs-on: ubuntu-latest
26+
environment:
27+
name: github-pages
28+
url: ${{ steps.deployment.outputs.page_url }}
29+
steps:
30+
- name: Deploy to GitHub Pages
31+
id: deployment
32+
uses: actions/deploy-pages@v4
33+
with:
34+
artifact_name: docs

apps/docs/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This is a [Vocs](https://vocs.dev) project bootstrapped with the Vocs CLI.

apps/docs/docs/footer.tsx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
const Footer = () => {
2+
return (
3+
<p>
4+
Maintained by{" "}
5+
<a
6+
href="https://palladians.xyz"
7+
target="_blank"
8+
rel="noopener noreferrer"
9+
className="vocs_HomePage_packageManager underline"
10+
>
11+
Palladians
12+
</a>
13+
.
14+
</p>
15+
);
16+
};
17+
18+
export default Footer;

apps/docs/docs/pages/example.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Example
2+
3+
This is an example page.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Get started
2+
3+
Hello world!

apps/docs/docs/pages/index.mdx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
layout: landing
3+
---
4+
5+
import { HomePage } from 'vocs/components'
6+
7+
<HomePage.Root>
8+
<img src="/logo.svg" className="w-24" />
9+
<HomePage.Tagline>The TypeScript interface for Mina Protocol.</HomePage.Tagline>
10+
<HomePage.Description>MinaJS is the missing piece for your smooth zkApp development on Mina.</HomePage.Description>
11+
<HomePage.Buttons>
12+
<HomePage.Button href="/getting-started" variant="accent">Get started</HomePage.Button>
13+
<HomePage.Button href="https://github.com/palladians/mina-js">GitHub</HomePage.Button>
14+
</HomePage.Buttons>
15+
</HomePage.Root>

apps/docs/docs/public/logo.svg

Lines changed: 18 additions & 0 deletions
Loading

apps/docs/docs/styles.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@layer vocs_preflight { @tailwind base; }
2+
@tailwind components;
3+
@tailwind utilities;

apps/docs/package.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"name": "@mina-js/docs",
3+
"version": "0.0.1",
4+
"type": "module",
5+
"scripts": {
6+
"dev": "bunx vocs dev",
7+
"build": "bunx vocs build",
8+
"preview": "bunx vocs preview"
9+
},
10+
"dependencies": {
11+
"@types/react": "latest",
12+
"react": "latest",
13+
"react-dom": "latest",
14+
"typescript": "latest",
15+
"vocs": "latest"
16+
}
17+
}

apps/docs/tailwind.config.cjs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/** @type {import('tailwindcss').Config} */
2+
module.exports = {
3+
content: ["./docs/**/*.{html,md,mdx,tsx,js,jsx}"],
4+
theme: {
5+
extend: {},
6+
},
7+
plugins: [],
8+
};

0 commit comments

Comments
 (0)