Skip to content

Commit

Permalink
Fix _lang dirs not being served on GitHub pages
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensworks committed Jul 31, 2019
1 parent e87eb5a commit bb0c7bd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/serialize/HtmlInfoBookSerializer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ export class HtmlInfoBookSerializer {
await this.ensureDirExists(join(context.path, 'assets'));
await this.ensureDirExists(join(context.path, 'assets', 'icons'));

// Create a .nojekyll file to ensure _lang directories are served via GitHub pages.
await fs.writeFile(join(context.path, '.nojekyll'), '');

// Serialize sections in all languages
for (const language of context.resourceHandler.getLanguages()) {
const langPath = this.getLanguagePath(language, context.path);
Expand Down

0 comments on commit bb0c7bd

Please sign in to comment.