Skip to content
This repository was archived by the owner on Jan 21, 2024. It is now read-only.

Commit 2e61743

Browse files
authored
Merge pull request #63 from raml-org/i23_revisit_js_docs
Fixes #23: Revisit JS docs
2 parents a3e6ee2 + c6cf96b commit 2e61743

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

scripts/generate-js-docs.sh

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,17 @@ cp ./js/module/typings/webapi-parser.d.ts ./docs/js/tmp_module/webapi-parser.d.t
2020
cd ./docs/js/tmp_module
2121

2222
npm init -y
23-
npm install -g typedoc@0.13.0
24-
npm install amf-client-js
23+
npm install -g typedoc@0.16.9
2524

26-
mkdir -p ./node_modules/@types/amf-client-js/
27-
cp ./node_modules/amf-client-js/typings/amf-client-js.d.ts ./node_modules/@types/amf-client-js/amf-client-js.d.ts
28-
typedoc --out ./gendocs ./webapi-parser.d.ts \
25+
curl https://raw.githubusercontent.com/aml-org/amf/master/amf-client/js/typings/amf-client-js.d.ts -o amf-client-js.d.ts
26+
typedoc --out ./gendocs ./webapi-parser.d.ts ./amf-client-js.d.ts \
2927
--includeDeclarations \
3028
--mode file \
3129
--ignoreCompilerErrors \
3230
--readme none \
3331
--theme minimal \
34-
--name "webapi-parser"
32+
--name "webapi-parser" \
33+
--excludeExternals
3534

3635
cd ..
3736
cp -r ./tmp_module/gendocs/* ./

0 commit comments

Comments
 (0)