@aztec/docs 0.75.0-commit.c03ba01a2a4122e43e90d5133ba017e54b90e9d2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -0
- package/package.json +13 -0
package/README.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Docs
|
|
2
|
+
|
|
3
|
+
To generate docs. Go to the root of `yarn-project` and run:
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
yarn docs
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
This will generate the html, and start a server to expose it on port `8080`, if run from external server (the mainframe) you can add `LocalForward 8080 <IP>:8080` to your ssh-config, and access it from your browser.
|
|
10
|
+
|
|
11
|
+
## Adding a new package
|
|
12
|
+
|
|
13
|
+
To include a new package in the set that we generate documentation for add it to the `entrypoints` list in the `yarn-project/typedoc.json`, then in the `package.json` for the new package add typedoc similar to example below:
|
|
14
|
+
|
|
15
|
+
```json
|
|
16
|
+
"typedoc": {
|
|
17
|
+
"entryPoint": "./src/index.ts",
|
|
18
|
+
"displayName": "Aztec cli",
|
|
19
|
+
"tsconfig": "./tsconfig.json"
|
|
20
|
+
},
|
|
21
|
+
```
|
package/package.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@aztec/docs",
|
|
3
|
+
"version": "0.75.0-commit.c03ba01a2a4122e43e90d5133ba017e54b90e9d2",
|
|
4
|
+
"packageManager": "yarn@4.5.2",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"prepare": "",
|
|
7
|
+
"build": "vite build",
|
|
8
|
+
"serve": "vite preview --port 8080 --host 0.0.0.0"
|
|
9
|
+
},
|
|
10
|
+
"devDependencies": {
|
|
11
|
+
"vite": "^4.2.3"
|
|
12
|
+
}
|
|
13
|
+
}
|