【问题标题】:How to rendering index.html from a directory in github pages如何从 github 页面中的目录呈现 index.html
【发布时间】:2019-08-12 05:53:51
【问题描述】:

我在 gitHub 存储库中有如下所示的目录结构。

|- /project-folder
  |- readme.md
  |- /ui
    |- index.html
    |- css //folder holding css files
    |- javascript //folder holding js filesr code here

遇到的问题是尝试在 gitHub 页面上显示 index.html,而不是使用位于存储库/目录根目录的 readme.md

【问题讨论】:

    标签: github hosting github-pages


    【解决方案1】:

    index.html 应该在根目录下。 我自己有一个简单的例子供你参考。 https://github.com/chuanjin/mqttc

    【讨论】:

    • 感谢您的回复,也就是说 index.html 应该在根目录下吧?
    • 是的,你应该在根目录下有index.html,这意味着你需要重新组织你的代码结构,并且可能解决文件中的链接/引用。
    猜你喜欢
    • 1970-01-01
    • 2017-02-18
    • 1970-01-01
    • 2012-08-04
    • 2021-05-30
    • 2022-12-13
    • 1970-01-01
    • 2013-05-18
    • 1970-01-01
    相关资源
    最近更新 更多