Skip to content
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

Vocs integration cleanup #43

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,60 @@ cpu_air_verifier --in_file=fibonacci_proof.json && echo "Successfully verified e
```

This project is supported by Nethermind and Starknet Foundation via [OnlyDust platform](https://app.onlydust.com/p/stone-packaging-)


### USNG VOCS TO GENERATE DOCUMENTATION LOCALHOST SITE

We use Vocs to generate our documentation site. Here's how to set it up and run it locally:

### Prerequisites

- Node.js (version 14 or later)
- Yarn package manager

### Installation

1. Clone the repository:
```bash
git clone https://github.com/dipdup-io/stone-packaging.git
cd stone-packaging
```

2. Install dependencies:
```bash
yarn install
```

### Running the Development Server

To start the development server:

```bash
yarn dev
```

This will start the server at `http://localhost:5173`. The site will automatically reload if you make changes to the source files.

### Building the Static Site

To build the static site:

```bash
yarn build
```

This will generate the static files in the `dist` directory.

### Project Structure

- `docs/`: Contains all the documentation markdown files.
- `docs/pages/`: Contains the main content pages.
- `docs/index.md`: The home page of the documentation.
- `vocs.config.ts`: Configuration file for Vocs.

### Adding New Pages

To add a new page to the documentation:

1. Create a new markdown file in the `docs/pages/` directory.
2. Add the new page to the sidebar in `vocs.config.ts`.
8 changes: 8 additions & 0 deletions docs/404.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: Page Not Found

---

# 404 - Page Not Found

The page you are looking for does not exist. Please check the URL or go back to the [home page](/).
8 changes: 8 additions & 0 deletions docs/pages/example.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: Example

---

# Stone Packaging Example

Here's an example of how to use Stone Packaging...
8 changes: 8 additions & 0 deletions docs/pages/getting-started.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: Getting Started

---

# Getting Started with Stone Packaging

...
9 changes: 9 additions & 0 deletions docs/pages/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: Introduction
---

# Stone Packaging

This is the main page of Stone Packaging documentation.

Here's an example of how to use Stone Packaging...
19 changes: 19 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "stone-packaging",
"version": "1.0.0",
"type": "module",
"scripts": {
"dev": "vocs dev",
"build": "vocs build"
},
"dependencies": {
"vocs": "^1.0.0-alpha.61",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"typescript": "^4.9.5",
"@types/react": "^18.0.28",
"@types/react-dom": "^18.0.11"
}
}
18 changes: 18 additions & 0 deletions theme.config.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { defineConfig } from 'vocs'

export default defineConfig({
sidebar: [
{
text: 'Getting Started',
link: '/getting-started',
},
{
text: 'Example',
link: '/example',
},
{
text: 'Resources',
link: '/resources',
},
],
})
19 changes: 19 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"compilerOptions": {
"esModuleInterop": true,
"skipLibCheck": true,
"target": "es2022",
"allowJs": true,
"resolveJsonModule": true,
"moduleDetection": "force",
"isolatedModules": true,
"strict": true,
"noUncheckedIndexedAccess": true,
"moduleResolution": "node",
"module": "esnext",
"noEmit": true,
"lib": ["es2022", "dom", "dom.iterable"],
"types": ["vocs"]
},
"include": ["vocs.config.ts"]
}
25 changes: 25 additions & 0 deletions vocs.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { defineConfig } from 'vocs'

export default defineConfig({
title: 'Stone Packaging',
rootDir: 'docs',

sidebar: [
{
text: 'Introduction',
link: '/',
},
{
text: 'Getting Started',
link: '/getting-started',
},
{
text: 'Example',
link: '/example',
},
{
text: 'Stone Packaging Resources',
link: '/resourcers',
},
],
})
3 changes: 3 additions & 0 deletions vocs.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
declare module 'vocs' {
export function defineConfig(config: any): any;
}