github-pages

Can I merge/sync a sub-folder from one branch to the root of another in git?

ぐ巨炮叔叔 提交于 2019-12-10 10:55:38
问题 I want to have a /doc folder in master and easily merge/sync it to the root of a gh-pages branch. What is the easiest way to do this? 回答1: One nice trick would be to declare the branch gh-branch as a submodule in your master branch (also more detailed in "How to add a git repo as a submodule of itself?"). That way, when you are in your master branch, you see a folder gh-branch which represents the gh-branch content. You could then: version doc only in the gh-branch have a symlink doc in your

build and publish dist folder to github pages

隐身守侯 提交于 2019-12-10 10:46:08
问题 I created a project with Vue.js and Vuetify using the Vue CLI. I would like to host this application with Github Pages. So I took a guide from here https://help.github.com/en/articles/configuring-a-publishing-source-for-github-pages#publishing-your-github-pages-site-from-a-docs-folder-on-your-master-branch and I am not using the history moute of the Vue Router (https://router.vuejs.org/guide/essentials/history-mode.html) to make sure I don't need a server. I created a build of my project and

Github won't let me change the source of my personal website to gh-pages branch?

 ̄綄美尐妖づ 提交于 2019-12-10 10:02:04
问题 I made a personal website using github pages a while ago but recently recreated it from scratch using ReactJS. I changed the name of my old website repository and made my new one username.github.io and moved the CNAME over. I then started following: https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#github-pages I'm stuck, however, on step 4 where I'm supposed to change the source to gh-pages branch. The option to change it is not

Getting 404 page on refresh on AngularJS site?

六月ゝ 毕业季﹏ 提交于 2019-12-10 03:21:05
问题 I am getting a served the 404 page whenever I : 1.) refresh any page on my Angularjs site (besides the root page) or 2.) click Back to go from a 404 page to the root page (the root page will be a 404) Here is my .config() code 'use strict'; angular.module('mmApp', ['ngResponsiveImages']) .config(function ($locationProvider, $routeProvider) { $locationProvider.html5Mode(true); $locationProvider.hashPrefix = '!'; $routeProvider .when('/', { templateUrl: '/views/design.html', controller:

The “file” argument must be of type string. Received type undefined on npm run deploy to gh-pages [duplicate]

纵饮孤独 提交于 2019-12-10 01:23:57
问题 This question already has answers here : Trying to deploy my React app with gh-pages but got this error message : The “file” argument must be of type string. Received type undefined (3 answers) Closed 4 months ago . I was trying to deploy a react application to gh-pages. I've done it before, but this is the first time I'm getting this kind of error. It says The "file" argument must be of type string. Received type undefined I tried removing the node_modules folder and reinstalled all the

possible to change where github pages looks for index.html?

那年仲夏 提交于 2019-12-09 18:31:42
问题 I have a site generated with yeoman's generator-angular and I'd like to publish this site using github pages. I create the gh-pages branch but my repo does not show up in myusername.github.io/myreponame I think the reason is because index.html is in the app/ directory not the root. app/ |-- index.html |-- scripts/ dist/ Gruntfile.js etc.. Can I tell github pages to load index.html from the app folder? How can I launch a site generated w/ angular-generator to gh pages? 回答1: Running grunt build

Does pages.github.com support directory names with a preceeding . (dot)?

左心房为你撑大大i 提交于 2019-12-09 03:43:57
问题 I am using a Maven plugin (jacoco-maven-plugin) which generates a site report whose images and css files are in a folder with a preceeding . (dot) in the name. For example: /site/jacoco/.resources/report.css When I publish this to my pages.github.com site (using site-maven-plugin), everything is there in my special Github branch (gh-pages). However, I'm getting 404's when trying to access resources that are in folders with a preceding . (dot) in the folder name. A simplified example: https:/

How to support latex in github-pages?

情到浓时终转凉″ 提交于 2019-12-08 22:40:43
问题 I use jekyll to write post and show it in github-pages. My source file is writen with markdown. How can I insert formula into the markdown file? I don't want to save the formula into an image and load the image in markdown file. I actually want to write latex formula in markdown file directly. 回答1: Since resources online have changed regarding this question, here's an update on supporting LateX with GitHub Pages. Note that the closest to Latex rendering without exporting as images and

Build into gh-pages branch from master branch

冷暖自知 提交于 2019-12-08 19:02:05
问题 What I want to do: I am using github. I have two branches. Master and gh-pages. I have a unity3d project on my master branch. When I run it, it will generate a webpage. I want to display the contents of the webpage on the gh-pages branch. I assume this means I have to share a folder between two branches of my repository. That seems nearly impossible. Is there a right way to do this? My current solution is making two github projects and building from the first into the second. Then, I view the

Background Images not showing on Github Pages for Website

旧巷老猫 提交于 2019-12-08 12:23:02
问题 I've looked at some other threads on Stack Overflow regarding this problem, but for some reason they don't seem to be working. I've checked things like the path directory for the image, and I think that it's correct. Here's a link to my repo for the website on github pages: https://github.com/lawrencecheng123/lawrencecheng123.github.io In my repo there is a "Seattle.jpg" image that I'm trying to set as the background of the first page of my website, which is referenced by the "fstPage" class