Difficulty in getting GitBook site to show up in GitHub page

前端 未结 3 453
清酒与你
清酒与你 2021-02-04 21:13

I am trying to follow https://github.com/GitbookIO/gitbook but there is some assumed knowledge that clearly I don\'t have. I\'ve used GitHub for some time but I\'ve still got a

相关标签:
3条回答
  • 2021-02-04 21:30

    for people who still have issues using the command above, here is my scenario.

    I used to use tortoise-git on my windows machine to manage my github projects, and they are totally fine tool to use. But when it comes to gitbook publish command, it somehow stuck in the middle of switching between branches etc...

    My solution is to download the github windows client, and it has this git shell come with it , if you run the gitbook publish command against the github suite git tooling, everything works fine.

    0 讨论(0)
  • 2021-02-04 21:32

    Take a look at this book: https://github.com/GitbookIO/git.

    It uses grunt to set up a few tasks: test, publish and build.

    You should do the same by copying the package.json, Gruntfile.js and running:

    $ npm install .
    

    For testing:

    $ grunt test
    

    For publishing on the gh-pages branch:

    $ grunt publish
    
    0 讨论(0)
  • 2021-02-04 21:32

    Regarding the gh-pages branch, you are correct, it can be found here:

    https://github.com/GitbookIO/git/tree/gh-pages

    It does indeed have an index.html file in the root directory:

    https://github.com/GitbookIO/git/blob/gh-pages/index.html

    0 讨论(0)
提交回复
热议问题