Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 69d0987

Browse files
committed
chore(docs): Disable docusaurus snipsync plugin in watch mode
1 parent a55cf33 commit 69d0987

File tree

1 file changed

+21
-15
lines changed

1 file changed

+21
-15
lines changed

packages/docs/docusaurus.config.js

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
/** @type {import('@docusaurus/types').DocusaurusConfig} */
2+
const watch = ['y', 'yes', 't', 'true', '1'].includes(process.env.TYPEDOC_WATCH);
3+
24
module.exports = {
35
title: 'Temporal NodeJS SDK API Reference',
46
tagline: 'Build invincible applications',
@@ -109,22 +111,26 @@ module.exports = {
109111
disableSources: true,
110112
hideBreadcrumbs: true,
111113
readme: 'none',
112-
watch: ['y', 'yes', 't', 'true', '1'].includes(process.env.TYPEDOC_WATCH),
113-
},
114-
],
115-
[
116-
'docusaurus-plugin-snipsync',
117-
{
118-
origins: [
119-
{
120-
files: ['../*/src/*.ts', '../create-project/samples/*.ts'],
121-
},
122-
],
123-
targets: ['docs'],
124-
features: {
125-
enable_source_link: false,
126-
},
114+
watch,
127115
},
128116
],
117+
...(watch
118+
? []
119+
: [
120+
[
121+
'docusaurus-plugin-snipsync',
122+
{
123+
origins: [
124+
{
125+
files: ['../*/src/*.ts', '../create-project/samples/*.ts'],
126+
},
127+
],
128+
targets: ['docs'],
129+
features: {
130+
enable_source_link: false,
131+
},
132+
},
133+
],
134+
]),
129135
],
130136
};

0 commit comments

Comments
 (0)