From b57712dd5a2a1b9d6f6c10f9930ffee055987ca7 Mon Sep 17 00:00:00 2001 From: "qingwei.li" Date: Mon, 19 Dec 2016 23:05:47 +0800 Subject: [PATCH] Add .nojekyll --- docs/README.md | 1 + docs/zh-cn.md | 1 + 2 files changed, 2 insertions(+) diff --git a/docs/README.md b/docs/README.md index 791885be..aee8879a 100644 --- a/docs/README.md +++ b/docs/README.md @@ -160,6 +160,7 @@ Custom sidebar. if it'set, the TOC will be disabeld. Bind global variables on th #### load-sidebar Load sidebar markdown file. If it is configured, load the current directory `_sidebar.md` by default. If the file isn't exist, sidebar will appear TOC. +** you should add `.nojekyll` into docs folder, to prevent GitHub Pages from ignoring the `_sidebar.md`** ```html diff --git a/docs/zh-cn.md b/docs/zh-cn.md index 2e76fb7e..046d9c9a 100644 --- a/docs/zh-cn.md +++ b/docs/zh-cn.md @@ -161,6 +161,7 @@ Sidebar 开关按钮 #### load-sidebar 读取侧边栏配置文件,如果配置,默认加载当前目录下的 `_sidebar.md`。如果文件不存在,会显示 TOC 作为侧边栏内容。如果你有二级目录,也应该放置一份配置文件。 +**如果用 `_` 开头作为文件名,你应该在文档目录下添加 `.nojekyll`,阻止 GitHub Pages 忽略下划线开头的文件。** ```html