Skip to content

Commit ed2b0b5

Browse files
Merge pull request #29 from FhenixProtocol/vocs-init
[AR-84] [AR-89] Initialize documentation (vocs)
2 parents 1e191ed + 6c99426 commit ed2b0b5

28 files changed

Lines changed: 6004 additions & 424 deletions

.changeset/README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ This directory contains configuration and changeset files for managing versionin
1515
- `@cofhe/react`
1616
- `@cofhe/example-react`
1717
- `@cofhe/abi`
18+
- `@cofhe/site`
1819

1920
## Contributor workflow
2021

@@ -32,7 +33,7 @@ pnpm changeset
3233

3334
## Maintainer workflow
3435

35-
1. Review and merge the auto‑opened Changesets Version Packages PR when youre ready to cut a stable.
36+
1. Review and merge the auto‑opened Changesets "Version Packages" PR when you're ready to cut a stable.
3637
2. On merge, CI runs the stable job in `.github/workflows/publish.yml` and publishes to the `latest` dist‑tag.
3738
3. All packages in the fixed group publish together with the same version due to the fixed group in `.changeset/config.json`.
3839

@@ -61,6 +62,7 @@ pnpm changeset status
6162
- Triggers: `push` to `master`
6263
- Beta job runs when commit message does NOT contain `Version Packages`
6364
- Stable job runs when commit message DOES contain `Version Packages`
65+
- Docs deployment runs after stable releases to GitHub Pages
6466
- OIDC permissions are enabled (`id-token: write`, `contents: read`); npm provenance is enabled by default.
6567

6668
## Configuration
@@ -79,8 +81,13 @@ pnpm changeset status
7981

8082
## Troubleshooting
8183

82-
- CI didn’t publish beta: ensure the merge commit message doesn’t include `Version Packages` and the workflow ran.
83-
- CI didn’t publish stable: ensure you merged the auto “Version Packages” PR and the workflow ran the stable job.
84+
- CI didn't publish beta: ensure the merge commit message doesn't include `Version Packages` and the workflow ran.
85+
- CI didn't publish stable: ensure you merged the auto "Version Packages" PR and the workflow ran the stable job.
86+
- Docs didn't deploy:
87+
- Ensure GitHub Pages is configured to use "GitHub Actions" as the source in repository settings
88+
- Check that the workflow has completed successfully
89+
- Verify `pages: write` permission is set in the workflow
90+
- For custom domains, configure them through repository settings (Settings → Pages → Custom domain), not via CNAME file
8491
- Private deps install errors: Trusted Publishers covers publish, not install; use a read‑only token for installs if needed.
8592

8693
## References

.changeset/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
"linked": [],
88
"access": "public",
99
"updateInternalDependencies": "patch"
10-
}
10+
}

.github/workflows/publish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ jobs:
5454
with:
5555
version: 8
5656

57-
- name: Setup Node.js 20.x
57+
- name: Setup Node.js 22.x
5858
uses: actions/setup-node@v4
5959
with:
60-
node-version: 20
60+
node-version: 22
6161
registry-url: https://registry.npmjs.org
6262

6363
- name: Ensure latest npm
@@ -89,10 +89,10 @@ jobs:
8989
with:
9090
version: 8
9191

92-
- name: Setup Node.js 20.x
92+
- name: Setup Node.js 22.x
9393
uses: actions/setup-node@v4
9494
with:
95-
node-version: 20
95+
node-version: 22
9696
registry-url: https://registry.npmjs.org
9797

9898
- name: Ensure latest npm

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"private": true,
33
"scripts": {
4-
"build": "turbo run build --filter='!./examples/*'",
4+
"build": "turbo run build --filter='!./examples/*' --filter='!./packages/site'",
5+
"build:docs": "pnpm --filter @cofhe/site build",
56
"dev": "turbo run dev",
67
"test": "turbo run test",
78
"test:integration": "pnpm --filter \"./packages/hardhat-plugin-test\" test:integration",

packages/site/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
This is a [Vocs](https://vocs.dev) project bootstrapped with the Vocs CLI.
2+
3+
## Requirements
4+
5+
- Node.js >= 22
6+
7+
## Development
8+
9+
- `pnpm --filter @cofhe/site dev`
10+
- `pnpm --filter @cofhe/site build`
11+
- `pnpm --filter @cofhe/site preview`

packages/site/package.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"name": "@cofhe/site",
3+
"private": true,
4+
"version": "0.2.1",
5+
"type": "module",
6+
"engines": {
7+
"node": ">=22"
8+
},
9+
"scripts": {
10+
"dev": "vocs dev",
11+
"build": "vocs build",
12+
"preview": "vocs preview"
13+
},
14+
"dependencies": {
15+
"glob": "^11.0.0",
16+
"react": "^19.0.0",
17+
"react-dom": "^19.0.0",
18+
"vocs": "^1.4.1"
19+
},
20+
"devDependencies": {
21+
"@cofhe/sdk": "workspace:*",
22+
"@types/react": "latest",
23+
"typescript": "latest"
24+
}
25+
}

packages/site/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.

packages/site/pages/foundry.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
The `@cofhe/foundry` package is currently in development.
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!

packages/site/pages/hardhat.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Getting started with cofhesdk hardhat plugin (TOP LEVEL)

0 commit comments

Comments
 (0)