Skip to content

Commit ed2f17a

Browse files
committed
minor config
1 parent 2db3f68 commit ed2f17a

2 files changed

Lines changed: 17 additions & 8 deletions

File tree

documentation/.vuepress/config.ts

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -603,21 +603,29 @@ if (existsSync(rootLanguageDirectory)) {
603603
}
604604
}
605605

606+
const patterns: string[] = [
607+
// default patterns
608+
'**/*.md',
609+
'!.vuepress',
610+
'!node_modules',
611+
// exclude pages that start with _ and end with .md
612+
'!**/_*.md',
613+
];
614+
615+
if (process.env.NODE_ENV === "development") {
616+
console.log("Development mode: Excluding all language files");
617+
// in development, we want to include all language files
618+
patterns.push('!**/lang/**/*.md');
619+
}
620+
606621

607622
export default defineUserConfig({
608623
base: _base,
609624
lang: 'en-US',
610625
title: _title,
611626
dest: "dist",
612627
description: _description,
613-
pagePatterns: [
614-
// default patterns
615-
'**/*.md',
616-
'!.vuepress',
617-
'!node_modules',
618-
// exclude pages that start with _ and end with .md
619-
'!**/_*.md',
620-
],
628+
pagePatterns: patterns,
621629
locales: siteLocaleOptions,
622630
plugins: [
623631
// searchPlugin({

documentation/.vuepress/plugins/generate-shared-code/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export const generateSharedCode = (config) => {
2222
return {
2323
name: 'generate-shared-code',
2424
async onInitialized(app) {
25+
console.log("Generating shared code contributions");
2526
await getSharedCode();
2627
console.log("Adding contribution pages");
2728
await generateContributionPages(app, config);

0 commit comments

Comments
 (0)