github-pages

How do I generate the GitHub OAuth token for organization accounts?

爷,独闯天下 提交于 2020-02-26 11:32:45
问题 I have created an organization on GitHub. My organization has some repos. These repos have API documentation that I would like to re-build and publish to gh-pages branch via Travis-CI. In order to give Travis-CI access to my organization's repos I need to generate an OAuth token, encrypt it, and then add then include the encypted token in the .travis.yml file as follows... env: global: - secure: "lots-of-seemingly-random-characters" This SO post explains the process and provides the details

Creating staging and production versions of a site on Github Pages

浪尽此生 提交于 2020-02-26 09:27:46
问题 I want to use Github Pages to publish a production website (at, say, www.example.com) and also a staging version of the same site (at, say, staging.example.com). I've set up a repo (e.g. my-jekyll-website) in Github for the production site, created a gh-pages branch, and set the CNAME file in the root level of the repo to www.example.com. Works great. Now, what's the least painful way to also be able to push changes to staging.example.com? One thing I've tried is setting up a second remote

Jekyll not generating pages in subfolders

[亡魂溺海] 提交于 2020-02-23 08:46:05
问题 I use GitHub Pages and created some pages in a sub folder. It seems to be not generating pages I created in sub folder. All other pages work fine. The directory structure is like this: / /index.html /_config.yaml /_includes /_layouts /_posts /tag /tag/personal.html /tag/videos.html The pages inside the /tag directory are not generated by Jekyll. Also, usually GitHub sends an email if Jekyll build fails, but did not, in this case. Also, if I do any other changes it works, so the build is

Ignore a /path on a GitHub pages site?

断了今生、忘了曾经 提交于 2020-02-21 04:57:07
问题 I am hosting a static application on GitHub pages. My application structure is like this - I have some front-end facing files, and some Python files that are run periodically to get the data for the front-end, but should not be user-facing: index.html /js index.js vendor/ /css /data get_data.py How can I stop everything in data/ being publicly available on the website? 回答1: You have two main options: Option 1: Rename your data directory to _data . Jekyll ignores files and directories that

Ignore a /path on a GitHub pages site?

╄→尐↘猪︶ㄣ 提交于 2020-02-21 04:56:13
问题 I am hosting a static application on GitHub pages. My application structure is like this - I have some front-end facing files, and some Python files that are run periodically to get the data for the front-end, but should not be user-facing: index.html /js index.js vendor/ /css /data get_data.py How can I stop everything in data/ being publicly available on the website? 回答1: You have two main options: Option 1: Rename your data directory to _data . Jekyll ignores files and directories that

Ignore a /path on a GitHub pages site?

南楼画角 提交于 2020-02-21 04:55:51
问题 I am hosting a static application on GitHub pages. My application structure is like this - I have some front-end facing files, and some Python files that are run periodically to get the data for the front-end, but should not be user-facing: index.html /js index.js vendor/ /css /data get_data.py How can I stop everything in data/ being publicly available on the website? 回答1: You have two main options: Option 1: Rename your data directory to _data . Jekyll ignores files and directories that

Using GitHub pages, blank white screen

我是研究僧i 提交于 2020-02-06 11:29:56
问题 I'm trying to make a react project on github pages using [username].github.io. but when I go on the link, it just returns a white screen without any error messages. This also happens when I use a custom domain name. However, it works when I run it locally and also when I use gh-pages instead of a user repo. I used https://medium.freecodecamp.org/surge-vs-github-pages-deploying-a-create-react-app-project-c0ecbf317089 to upload all my files into github since I created the repo at the end after

Using GitHub pages, blank white screen

我的未来我决定 提交于 2020-02-06 11:20:50
问题 I'm trying to make a react project on github pages using [username].github.io. but when I go on the link, it just returns a white screen without any error messages. This also happens when I use a custom domain name. However, it works when I run it locally and also when I use gh-pages instead of a user repo. I used https://medium.freecodecamp.org/surge-vs-github-pages-deploying-a-create-react-app-project-c0ecbf317089 to upload all my files into github since I created the repo at the end after

Baseurl behavior differs between localhost and github pages in Jekyll

风格不统一 提交于 2020-02-04 07:30:39
问题 I am developing a static site using Jekyll , to be deployed on github pages . I am facing issues using the baseurl in the configuration file. Here is an extract of my _config.yml : baseurl: "/blog" url: "http://remidoolaeghe.github.io" When ran locally at http://localhost:4000/blog/, everything is fine. The html pages are found, the resources (images, css, js) are loaded and applied on the pages. Once deployed on Github Pages , I would expect to have the site available at: http:/

Baseurl behavior differs between localhost and github pages in Jekyll

岁酱吖の 提交于 2020-02-04 07:29:12
问题 I am developing a static site using Jekyll , to be deployed on github pages . I am facing issues using the baseurl in the configuration file. Here is an extract of my _config.yml : baseurl: "/blog" url: "http://remidoolaeghe.github.io" When ran locally at http://localhost:4000/blog/, everything is fine. The html pages are found, the resources (images, css, js) are loaded and applied on the pages. Once deployed on Github Pages , I would expect to have the site available at: http:/