Skip to content

Commit

Permalink
remove attempt for multi-instance support
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber committed Jul 17, 2020
1 parent e5a98a9 commit 525b0c2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/docusaurus-plugin-content-blog/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default function pluginContentBlog(
const dataDir = path.join(
generatedFilesDir,
'docusaurus-plugin-content-blog',
options.id ?? 'default',
// options.id ?? 'default', // TODO support multi-instance
);
let blogPosts: BlogPost[] = [];

Expand Down
2 changes: 1 addition & 1 deletion packages/docusaurus-plugin-content-docs/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export default function pluginContentDocs(
const dataDir = path.join(
generatedFilesDir,
'docusaurus-plugin-content-docs',
options.id ?? 'default',
// options.id ?? 'default', // TODO support multi-instance
);

// Versioning.
Expand Down
3 changes: 2 additions & 1 deletion packages/docusaurus/src/server/plugins/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ export async function loadPlugins({
const pluginContentDir = path.join(
context.generatedFilesDir,
plugin.name,
pluginId,
// TODO each plugin instance should have its folder
// pluginId,
);

const addRoute: PluginContentLoadedActions['addRoute'] = (config) =>
Expand Down

0 comments on commit 525b0c2

Please sign in to comment.