Skip to content

Commit 459625b

Browse files
committed
API docs.
1 parent ad1e908 commit 459625b

File tree

10 files changed

+219
-4
lines changed

10 files changed

+219
-4
lines changed

.github/workflows/typedoc.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: API docs
2+
on:
3+
push:
4+
branches:
5+
- rewrite
6+
7+
jobs:
8+
# The main documentation is built by readthedocs.
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- run: corepack enable
13+
- uses: actions/checkout@v5
14+
- uses: actions/setup-node@v6
15+
with:
16+
cache: "pnpm"
17+
- name: Build
18+
run: |
19+
pnpm install
20+
pnpm exec typedoc
21+
- name: Upload
22+
id: deployment
23+
uses: actions/upload-pages-artifact@v3
24+
with:
25+
path: ./typedoc
26+
deploy:
27+
runs-on: ubuntu-latest
28+
needs: build
29+
permissions:
30+
contents: read
31+
pages: write
32+
id-token: write
33+
environment:
34+
name: github-pages
35+
url: ${{ steps.deployment.outputs.page_url }}
36+
steps:
37+
- name: Deploy to GitHub Pages
38+
id: deployment
39+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ dist
33

44
.nyc_output
55
coverage
6+
7+
typedoc

.nycrc.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{
22
"all": true,
3-
"include": [
4-
"src/**/*.ts"
5-
]
3+
"include": ["src/**/*.ts"]
64
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![npm](https://github.com/voxelstack/ceres/actions/workflows/npm.yml/badge.svg)](https://www.npmjs.com/package/@voxelstack/ceres)
1+
[![NPM Version](https://img.shields.io/npm/v/%40voxelstack%2Fceres)](https://www.npmjs.com/package/@voxelstack/ceres)
22
[![Documentation Status](https://readthedocs.org/projects/voxelstackceres/badge/?version=latest)](https://voxelstackceres.readthedocs.io/en/latest/)
33
[![Coverage Status](https://coveralls.io/repos/github/voxelstack/ceres/badge.svg?branch=rewrite)](https://coveralls.io/github/voxelstack/ceres?branch=rewrite)
44

docs/conf.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,15 @@
2323
# -- Project information -----------------------------------------------------
2424
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
2525

26+
print(subprocess.run(
27+
["npm", "pkg", "get", "version"],
28+
capture_output=True,
29+
encoding="utf-8",
30+
check=True,
31+
shell=True,
32+
cwd=".."
33+
).stdout)
34+
2635
project = "ceres"
2736
copyright = "2025, voxelstack"
2837
author = "voxelstack"

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
"sinon": "^21.0.1",
5555
"sinon-chai": "^4.0.1",
5656
"tsx": "^4.21.0",
57+
"typedoc": "^0.28.15",
5758
"typescript": "^5.9.3",
5859
"typescript-eslint": "^8.52.0"
5960
},

0 commit comments

Comments
 (0)