Skip to content

Commit

Permalink
Fix: sidebars.js is in the website root
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinnl committed Jun 4, 2020
1 parent a760137 commit 09d74bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/subthemes/docusaurus2/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ export default class Docusaurus2Theme extends MarkdownTheme {
writeSideBar(renderer: RendererEvent, docusarusRoot: string) {
const childDirectory = renderer.outputDirectory.split(docusarusRoot + 'docs/')[1];
const docsRoot = childDirectory ? childDirectory + '/' : '';
const websitePath = docusarusRoot + 'website';
const websitePath = docusarusRoot;
const navObject = this.getNavObject(renderer, docsRoot);
const sidebarPath = websitePath + '/' + this.sidebarName;
const sidebarPath = websitePath + this.sidebarName;
let jsonContent: any;
if (!fs.existsSync(sidebarPath)) {
if (!fs.existsSync(websitePath)) {
Expand Down

0 comments on commit 09d74bb

Please sign in to comment.