Skip to content

Commit 4ced12e

Browse files
committed
docs: migrate from api-documenter to typedoc
1 parent 226ac54 commit 4ced12e

File tree

6 files changed

+195
-41
lines changed

6 files changed

+195
-41
lines changed

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- name: Updating API documentation in gh-pages branch
3737
run: |
3838
rm -rf *
39-
cp -a ../apidoc/output/* .
39+
cp -a ../apidoc/* .
4040
git add .
4141
git commit --allow-empty -a -m "Updating from ${{ github.sha }}"
4242
git push origin gh-pages

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ If you want to install it locally though, you need to add one more step. You won
8585

8686
## User documentation
8787

88-
It is advised to start with the [_Getting started_](./doc/getting-started.md) article which describes a few practical usage examples, then check the [configuration guide](./doc/configuration.md) and the [API guide](./doc/api.md). The [API reference](https://amadeusitgroup.github.io/kassette/kassette.html) is also available.
88+
It is advised to start with the [_Getting started_](./doc/getting-started.md) article which describes a few practical usage examples, then check the [configuration guide](./doc/configuration.md) and the [API guide](./doc/api.md). The [API reference](https://amadeusitgroup.github.io/kassette/) is also available.
8989

9090
## Developing / Contributing
9191

package-lock.json

+180-34
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
"ut": "jest",
1212
"ut:watch": "jest --watch",
1313
"ut:coverage": "jest --coverage",
14-
"build": "rimraf ./dist ./build && rollup --failAfterWarnings -c ./packages/rollup.config.js && tsc -p ./packages/tsconfig.dts.json",
14+
"build": "rimraf ./dist ./build && rollup --failAfterWarnings -c ./packages/rollup.config.js && tsc -p ./packages/tsconfig.dts.json && api-extractor run --config ./packages/api-extractor.json --verbose",
1515
"build:coverage": "rimraf ./dist && rollup --failAfterWarnings -c ./packages/rollup.cov.config.js",
16-
"apidoc": "rimraf ./build/apidoc && api-extractor run --config ./packages/api-extractor.json --verbose && api-documenter markdown -i build/apidoc/input -o build/apidoc/output",
16+
"apidoc": "typedoc",
1717
"e2e": "npm run build && mocha packages/e2e/run.js",
1818
"e2e:coverage": "npm run build:coverage && nyc mocha packages/e2e/run.js"
1919
},
@@ -55,7 +55,6 @@
5555
"@babel/plugin-syntax-typescript": "^7.22.5",
5656
"@commitlint/cli": "^18.2.0",
5757
"@commitlint/config-conventional": "^18.1.0",
58-
"@microsoft/api-documenter": "^7.23.10",
5958
"@microsoft/api-extractor": "^7.38.1",
6059
"@rollup/plugin-replace": "^5.0.5",
6160
"@rollup/plugin-typescript": "^11.1.5",
@@ -86,6 +85,7 @@
8685
"rollup": "^4.2.0",
8786
"ts-jest": "^29.1.1",
8887
"ts-node": "^10.9.1",
88+
"typedoc": "^0.25.4",
8989
"typescript": "^5.2.2"
9090
},
9191
"dependencies": {

packages/api-extractor.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
"publicTrimmedFilePath": "<projectFolder>/../dist/index.d.ts"
2323
},
2424
"docModel": {
25-
"enabled": true,
26-
"apiJsonFilePath": "<projectFolder>/../build/apidoc/input/kassette.api.json"
25+
"enabled": false
2726
}
2827
}

0 commit comments

Comments
 (0)