Skip to content

Commit c12ab83

Browse files
authored
doc: typedoc for v1 (#608)
* doc: typedoc * chore: add a github action
1 parent 1144ddd commit c12ab83

File tree

6 files changed

+77
-30
lines changed

6 files changed

+77
-30
lines changed

Diff for: .github/workflows/gh-page-docs.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+
name: GitHub Page Docs
5+
6+
on:
7+
push:
8+
branches:
9+
- master
10+
11+
env:
12+
CI: true
13+
14+
jobs:
15+
build-and-deploy:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout 🛎️
19+
uses: actions/[email protected] # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
20+
with:
21+
persist-credentials: false
22+
23+
- name: Install npm dependencies
24+
run: yarn --frozen-lockfile
25+
26+
- name: Build doc files
27+
run: npm run typedoc
28+
29+
- name: Deploy 🚀
30+
uses: JamesIves/[email protected]
31+
with:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
BRANCH: gh-pages # The branch the action should deploy to.
34+
FOLDER: docs # The folder the action should deploy.
35+
TARGET_FOLDER: latest

Diff for: .gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,6 @@ node_modules/
2323

2424
# Mac OS
2525
.DS_Store
26+
27+
# Typedoc
28+
docs

Diff for: package.json

+3
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"testonly": "jest",
2626
"testonly:cov": "jest --coverage",
2727
"testonly:watch": "jest --watch",
28+
"typedoc": "typedoc ./packages",
2829
"watch": "tsc --build tsconfig.build.json --watch"
2930
},
3031
"devDependencies": {
@@ -52,6 +53,8 @@
5253
"prettier-package-json": "^2.1.3",
5354
"rimraf": "^3.0.2",
5455
"ts-jest": "^26.1.1",
56+
"typedoc": "0.17.0",
57+
"typedoc-plugin-lerna-packages": "^0.3.0",
5558
"typescript": "^3.9.5"
5659
},
5760
"engines": {

Diff for: packages/messaging-api-line/package.json

-8
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,6 @@
99
"version": "1.0.0-beta.33",
1010
"main": "dist/index.js",
1111
"browser": "lib/browser.js",
12-
"scripts": {
13-
"typedoc": "yarn typedoc:html && yarn typedoc:json",
14-
"typedoc:html": "typedoc --out docs --exclude \"src/__tests__/**/*.ts\" src",
15-
"typedoc:json": "typedoc --json docs/index.json --exclude \"src/__tests__/**/*.ts\" src"
16-
},
1712
"types": "dist/index.d.ts",
1813
"dependencies": {
1914
"@types/warning": "^3.0.0",
@@ -25,9 +20,6 @@
2520
"type-fest": "^0.15.1",
2621
"warning": "^4.0.3"
2722
},
28-
"devDependencies": {
29-
"typedoc": "^0.16.11"
30-
},
3123
"keywords": [
3224
"bot",
3325
"chatbot",

Diff for: typedoc.js

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
module.exports = {
2+
mode: 'modules',
3+
out: 'docs',
4+
exclude: [
5+
'**/node_modules/**',
6+
'**/dist/**',
7+
'**/*.spec.ts',
8+
'**/__tests__/**/*.ts',
9+
],
10+
name: 'messaging-apis',
11+
excludePrivate: true,
12+
excludeNotExported: true,
13+
excludeExternals: true,
14+
esModuleInterop: true,
15+
includeVersion: true,
16+
};

Diff for: yarn.lock

+20-22
Original file line numberDiff line numberDiff line change
@@ -1538,7 +1538,7 @@
15381538
resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.156.tgz#cbe30909c89a1feeb7c60803e785344ea0ec82d1"
15391539
integrity sha512-l2AgHXcKUwx2DsvP19wtRPqZ4NkONjmorOdq4sMcxIjqdIuuV/ULo2ftuv4NUpevwfW7Ju/UKLqo0ZXuEt/8lQ==
15401540

1541-
"@types/minimatch@*", "@types/[email protected]":
1541+
"@types/minimatch@*":
15421542
version "3.0.3"
15431543
resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.3.tgz#3dca0e3f33b200fc7d1139c0cd96c1268cadfd9d"
15441544
integrity sha512-tHq6qdbT9U1IRSGf14CL0pUlULksvY9OZ+5eEgl1N7t+OA3tGvNpxJCzuKQlsNgCVwbAs670L1vcVQi8j9HjnA==
@@ -5622,17 +5622,17 @@ merge2@^1.2.3:
56225622
url-join "^4.0.1"
56235623

56245624
"messaging-api-messenger@file:packages/messaging-api-messenger":
5625-
version "1.0.0-beta.31"
5625+
version "1.0.0-beta.33"
56265626
dependencies:
56275627
"@types/append-query" "^2.0.0"
56285628
"@types/lodash" "^4.14.156"
56295629
"@types/warning" "^3.0.0"
56305630
append-query "^2.1.0"
56315631
axios "^0.19.2"
5632-
axios-error "file:packages/axios-error"
5632+
axios-error "file:../../../Library/Caches/Yarn/v6/npm-messaging-api-messenger-1.0.0-beta.33-9de3a731-3bff-4378-a4b5-f417467a98aa-1597225384196/node_modules/axios-error"
56335633
form-data "^3.0.0"
56345634
lodash "^4.17.15"
5635-
messaging-api-common "file:packages/messaging-api-common"
5635+
messaging-api-common "file:../../../Library/Caches/Yarn/v6/npm-messaging-api-messenger-1.0.0-beta.33-9de3a731-3bff-4378-a4b5-f417467a98aa-1597225384196/node_modules/messaging-api-common"
56365636
ts-invariant "^0.4.4"
56375637
warning "^4.0.3"
56385638

@@ -8028,22 +8028,26 @@ typedarray@^0.0.6:
80288028
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
80298029
integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=
80308030

8031-
typedoc-default-themes@^0.7.2:
8032-
version "0.7.2"
8033-
resolved "https://registry.yarnpkg.com/typedoc-default-themes/-/typedoc-default-themes-0.7.2.tgz#1e9896f920b58e6da0bba9d7e643738d02405a5a"
8034-
integrity sha512-fiFKlFO6VTqjcno8w6WpTsbCgXmfPHVjnLfYkmByZE7moaz+E2DSpAT+oHtDHv7E0BM5kAhPrHJELP2J2Y2T9A==
8031+
typedoc-default-themes@^0.8.0:
8032+
version "0.8.0"
8033+
resolved "https://registry.yarnpkg.com/typedoc-default-themes/-/typedoc-default-themes-0.8.0.tgz#991d6121d492e662eb371f30edc982440fe04a63"
8034+
integrity sha512-0bzAjVEX6ClhE3jLRdU7vR8Fsfbt4ZcPa+gkqyAVgTlQ1fLo/7AkCbTP+hC5XAiByDfRfsAGqj9y6FNjJh0p4A==
80358035
dependencies:
80368036
backbone "^1.4.0"
80378037
jquery "^3.4.1"
80388038
lunr "^2.3.8"
8039-
underscore "^1.9.1"
8039+
underscore "^1.9.2"
80408040

8041-
typedoc@^0.16.11:
8042-
version "0.16.11"
8043-
resolved "https://registry.yarnpkg.com/typedoc/-/typedoc-0.16.11.tgz#95f862c6eba78533edc9af7096d2295b718eddc1"
8044-
integrity sha512-YEa5i0/n0yYmLJISJ5+po6seYfJQJ5lQYcHCPF9ffTF92DB/TAZO/QrazX5skPHNPtmlIht5FdTXCM2kC7jQFQ==
8041+
typedoc-plugin-lerna-packages@^0.3.0:
8042+
version "0.3.0"
8043+
resolved "https://registry.yarnpkg.com/typedoc-plugin-lerna-packages/-/typedoc-plugin-lerna-packages-0.3.0.tgz#c0b13fa6cf5b9a495e4f7cb7d8fa8844d8967412"
8044+
integrity sha512-Ek6yaJczfSIxfUkHNx7yL+JoJ86KifHecrmbFxtkSlYxGwDrQTqlTQncChslJO2EmQyOn9PUQVyBDnYyrOBB2w==
8045+
8046+
8047+
version "0.17.0"
8048+
resolved "https://registry.yarnpkg.com/typedoc/-/typedoc-0.17.0.tgz#25dcd68d51e7bdb04af3cd1a3fd591d23d9886df"
8049+
integrity sha512-HviZ/SLDPAgJdYqaCor+7rmJnM80Ra2oI0Nj+L/sOIBvh9pY1aCzDtSg3p3n4cgqCmvGu6O90fvMQyjEvlqM+g==
80458050
dependencies:
8046-
"@types/minimatch" "3.0.3"
80478051
fs-extra "^8.1.0"
80488052
handlebars "^4.7.2"
80498053
highlight.js "^9.17.1"
@@ -8052,13 +8056,7 @@ typedoc@^0.16.11:
80528056
minimatch "^3.0.0"
80538057
progress "^2.0.3"
80548058
shelljs "^0.8.3"
8055-
typedoc-default-themes "^0.7.2"
8056-
typescript "3.7.x"
8057-
8058-
8059-
version "3.7.5"
8060-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.7.5.tgz#0692e21f65fd4108b9330238aac11dd2e177a1ae"
8061-
integrity sha512-/P5lkRXkWHNAbcJIiHPfRoKqyd7bsyCma1hZNUGfn20qm64T6ZBlrzprymeu918H+mB/0rIg2gGK/BXkhhYgBw==
8059+
typedoc-default-themes "^0.8.0"
80628060

80638061
typescript@^3.9.5:
80648062
version "3.9.5"
@@ -8083,7 +8081,7 @@ umask@^1.1.0:
80838081
resolved "https://registry.yarnpkg.com/umask/-/umask-1.1.0.tgz#f29cebf01df517912bb58ff9c4e50fde8e33320d"
80848082
integrity sha1-8pzr8B31F5ErtY/5xOUP3o4zMg0=
80858083

8086-
underscore@>=1.8.3, underscore@^1.9.1:
8084+
underscore@>=1.8.3, underscore@^1.9.2:
80878085
version "1.10.2"
80888086
resolved "https://registry.yarnpkg.com/underscore/-/underscore-1.10.2.tgz#73d6aa3668f3188e4adb0f1943bd12cfd7efaaaf"
80898087
integrity sha512-N4P+Q/BuyuEKFJ43B9gYuOj4TQUHXX+j2FqguVOpjkssLUUrnJofCcBccJSCoeturDoZU6GorDTHSvUDlSQbTg==

0 commit comments

Comments
 (0)