File tree Expand file tree Collapse file tree 6 files changed +30
-5
lines changed Expand file tree Collapse file tree 6 files changed +30
-5
lines changed Original file line number Diff line number Diff line change 17
17
"styles" : " dev-utils styles" ,
18
18
"variables" : " dev-utils variables" ,
19
19
"run-indexer" : " dev-utils doc-index" ,
20
- "generate-typedoc" : " typedoc" ,
21
- "prebuild -docs" : " npm-run-all sandbox sassdoc run-indexer generate-typedoc" ,
20
+ "generate-typedoc" : " dev-utils typedoc" ,
21
+ "build -docs-meta " : " npm-run-all sandbox sassdoc run-indexer generate-typedoc" ,
22
22
"build-docs" : " yarn workspace documentation build" ,
23
- "build-website" : " npm-run-all prebuild -docs build-docs" ,
23
+ "build-website" : " npm-run-all build -docs-meta build-docs" ,
24
24
"build-dev-utils" : " yarn workspace @react-md/dev-utils build" ,
25
25
"build-ejs" : " tsc -b tsconfig.ejs.json" ,
26
26
"build-cjs" : " tsc -b tsconfig.cjs.json" ,
Original file line number Diff line number Diff line change 42
42
"sassdoc" : " ^2.7.2" ,
43
43
"ts-morph" : " ^10.0.2" ,
44
44
"typedoc" : " ^0.20.36" ,
45
+ "typedoc-plugin-sourcefile-url" : " ^1.0.6" ,
45
46
"typescript" : " ^4.2.4"
46
47
},
47
48
"devDependencies" : {
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import { sandbox } from "./sandbox";
13
13
import { sassdoc } from "./sassdoc" ;
14
14
import { shared } from "./shared" ;
15
15
import { themes } from "./themes" ;
16
+ import { typedoc } from "./typedoc" ;
16
17
import { umd } from "./umd" ;
17
18
import { copyStyles } from "./utils" ;
18
19
import { variables } from "./variables" ;
@@ -201,4 +202,10 @@ createCommand("watch")
201
202
)
202
203
. action ( ( { cjs = false } ) => watch ( cjs ) ) ;
203
204
205
+ createCommand ( "typedoc" )
206
+ . description (
207
+ "A wrapper for the typedoc cli that is really used to just work with vercel deployments"
208
+ )
209
+ . action ( ( ) => typedoc ( ) ) ;
210
+
204
211
commander . parse ( process . argv ) ;
Original file line number Diff line number Diff line change
1
+ import { execSync } from "child_process" ;
2
+ import log from "loglevel" ;
3
+
4
+ export function typedoc ( ) : void {
5
+ const commitSha = process . env . VERCEL_GIT_COMMIT_SHA ;
6
+ let command = "typedoc" ;
7
+ if ( commitSha ) {
8
+ command = `${ command } --sourcefile-url-prefix "https://github.com/mlaursen/react-md/blob/${ commitSha } /"` ;
9
+ }
10
+
11
+ log . info ( command ) ;
12
+ execSync ( command , { stdio : "inherit" } ) ;
13
+ }
Original file line number Diff line number Diff line change 4
4
"description" : " The documentation site for react-md" ,
5
5
"private" : true ,
6
6
"scripts" : {
7
- "prebuild" : " npm-run-all run-indexer update-env " ,
7
+ "prebuild" : " node updateProdEnv.js " ,
8
8
"run-indexer" : " dev-utils doc-index" ,
9
- "update-env" : " node updateProdEnv.js" ,
10
9
"dev" : " cross-env NEXT_TELEMETRY_DISABLED=1 next dev" ,
11
10
"build" : " cross-env NEXT_TELEMETRY_DISABLED=1 next build" ,
12
11
"start" : " cross-env NEXT_TELEMETRY_DISABLED=1 NODE_ENV=production next start" ,
Original file line number Diff line number Diff line change @@ -14420,6 +14420,11 @@ typedoc-default-themes@^0.12.10:
14420
14420
resolved "https://registry.yarnpkg.com/typedoc-default-themes/-/typedoc-default-themes-0.12.10.tgz#614c4222fe642657f37693ea62cad4dafeddf843"
14421
14421
integrity sha512-fIS001cAYHkyQPidWXmHuhs8usjP5XVJjWB8oZGqkTowZaz3v7g3KDZeeqE82FBrmkAnIBOY3jgy7lnPnqATbA==
14422
14422
14423
+ typedoc-plugin-sourcefile-url@^1.0.6:
14424
+ version "1.0.6"
14425
+ resolved "https://registry.yarnpkg.com/typedoc-plugin-sourcefile-url/-/typedoc-plugin-sourcefile-url-1.0.6.tgz#e0199806616fe6370b3cb7889f647df698438b96"
14426
+ integrity sha512-xHq9DzkoQywS7FyPneMm2/Hr9GRoCpjSQXkVN0W6SCJKP7fguqg2tasgh+8l5/mW6YSYvqCqEbkSYLbuD4Y6gA==
14427
+
14423
14428
typedoc@^0.20.36:
14424
14429
version "0.20.36"
14425
14430
resolved "https://registry.yarnpkg.com/typedoc/-/typedoc-0.20.36.tgz#ee5523c32f566ad8283fc732aa8ea322d1a45f6a"
You can’t perform that action at this time.
0 commit comments