gh-pages 子目录文件未显示
gh-pages subdirectory files aren't shown up
我有以下 github 页面显示一些 HTML 已经:http://json-schema-faker.github.io/json-schema-faker/
这是源代码库(gh-pages
分支):https://github.com/json-schema-faker/json-schema-faker/tree/gh-pages
尽管顶级目录文件工作得很好:
- http://json-schema-faker.github.io/json-schema-faker/index.html - https://github.com/json-schema-faker/json-schema-faker/blob/gh-pages/index.html
- http://json-schema-faker.github.io/json-schema-faker/globals.html - https://github.com/json-schema-faker/json-schema-faker/blob/gh-pages/globals.html
下级目录文件根本不起作用,例如
- http://json-schema-faker.github.io/json-schema-faker/modules/_class_container_.html -> https://github.com/json-schema-faker/json-schema-faker/blob/gh-pages/classes/_class_container_.container.html
文件在那里,上传到 gh-pages
分支的 repo 中。怎么了?
Github 页面正在使用 Jekyll 作为默认网站生成器。
jekyll 的默认行为是忽略名称以下划线开头的文件夹和文件(除非您将 jekyll 配置为不忽略它们。See include key in documentation)。
最快解析 : 指示gh-pages不要使用jekyll来处理和发布你的页面,而是将你的所有文件复制到网络服务器上。
为此,只需在 gh-pages 分支的根目录下创建一个空的 .nojekyll 文件。推。一切正常。
我有以下 github 页面显示一些 HTML 已经:http://json-schema-faker.github.io/json-schema-faker/
这是源代码库(gh-pages
分支):https://github.com/json-schema-faker/json-schema-faker/tree/gh-pages
尽管顶级目录文件工作得很好:
- http://json-schema-faker.github.io/json-schema-faker/index.html - https://github.com/json-schema-faker/json-schema-faker/blob/gh-pages/index.html
- http://json-schema-faker.github.io/json-schema-faker/globals.html - https://github.com/json-schema-faker/json-schema-faker/blob/gh-pages/globals.html
下级目录文件根本不起作用,例如
- http://json-schema-faker.github.io/json-schema-faker/modules/_class_container_.html -> https://github.com/json-schema-faker/json-schema-faker/blob/gh-pages/classes/_class_container_.container.html
文件在那里,上传到 gh-pages
分支的 repo 中。怎么了?
Github 页面正在使用 Jekyll 作为默认网站生成器。
jekyll 的默认行为是忽略名称以下划线开头的文件夹和文件(除非您将 jekyll 配置为不忽略它们。See include key in documentation)。
最快解析 : 指示gh-pages不要使用jekyll来处理和发布你的页面,而是将你的所有文件复制到网络服务器上。
为此,只需在 gh-pages 分支的根目录下创建一个空的 .nojekyll 文件。推。一切正常。