Questions tagged [github-pages]

GitHub pages are static web pages hosted on GitHub.

GitHub Pages reside inside a repository on . They can be built manually and pushed as the final HTML output, or they can be pushed as a page, which will then be built directly on GitHub.

On August 18, 2016, GitHub made it unnecessary to have a gh-pages branch - now you can select any branch and directory as the source for the documentation.

GitHub differentiates between three types of pages:

  • User pages (Portfolio websites)
  • Organization pages (Websites specific to an Organisation)
  • Project pages (Websites specific to a Project)

Setting up User pages and Organization pages.

  • Create a Repository named username.github.io where 'username' your GitHub username or Organisation name.
  • Edit or create HTML pages and Push it to this newly created Repo.

Setting up Project pages

Lately a website generator was added to GitHub pages which allows you to build a page with just some clicks.

More Resources in GitHub Pages

4865 questions
1
vote
1 answer

How to deploy a react project found in a subdirectory in the main branch to Github Pages

Context I have a github repository my-projects which contains multiple folders each representing a separate web project. The GitHub Pages site for this repository is currently being built from the main branch (not gh-pages branch) and the Github…
Bunny
  • 1,180
  • 8
  • 22
1
vote
0 answers

Using Quarto and Github Pages to start my Python Blog

I am a little confused how to start my blog with Quarto to Github Pages, somehow nothing works as described. Unfortunately almost all tutorials are with RStudio and I would like to publish files from Jupyter. The Github Page I try to use is located…
1
vote
0 answers

github pages build and deployment failure

I've followed this and everything is set up. In Setting Pages Build and Deploy Source I have it set to Deploy from a branch and the branch is main. Code has all my files as uploaded from my local repo. I have a custom domain, it's entered…
147pm
  • 2,137
  • 18
  • 28
1
vote
1 answer

default landing page is not showing in react.js

path="/" works perfectly in local but when i have hosted it with the github pages.While visitig the site through the link it only shows the navigation and footer. This is the code of my App.jsx import React from 'react' import Nav from…
1
vote
0 answers

Blank page deploy github page with svelte

I have a problem with my Svelte project. When I run npm run dev, my project displays correctly without any problems. However, when I try to deploy my project on GitHub Pages, I cannot see the rendering of my project. I get a blank page, and there is…
1
vote
1 answer

How to add citation number/tag that leads to same github wiki page reference?

I am not talking about external linking [Tag](link) or in-page subsection linking [Tag](#subsection-header). For example, I am writing a scientific paper/blog on github wiki, and same as a scientific paper, I want to give some reference number/tag.…
bim
  • 612
  • 7
  • 18
1
vote
0 answers

Error in Build with Jekyll in GitHub pages

I'm new to web development, so please bear with me. Im trying to create a Github page using hugo with the theme "LoveIt" upon building and testing it to my local machine it works fine. but when I push to my github repo. it was failing to build with…
xZhiLx
  • 11
  • 1
1
vote
1 answer

How to get GitHub pages to serve my images

I made a react app (not using create react app) using web pack. I managed to get it to GitHub pages by building it to a "build" folder and using the gh-pages module. However, on the gh-pages module, even though it seems the images are present, they…
1
vote
1 answer

404 Error using Github Pages and Three.js

I am failing to deploy a simple website using Github Pages and the three.js library. There is successful functionality running the local repository in its' base state. Once attempting to deploy via Github Pages, I am thrown a 404 error after…
1
vote
1 answer

updates were rejected because a pushed branch tip is behind its remote counterpart. git subtree for gh-pages

I have a branch named gh-pages which contains index.html because it actually from main branch inside a folder named public. I'm using nodejs for tailwindcss, my directories in main so when I'm pushing that certain folder only, I will use the…
qud
  • 11
  • 2
1
vote
1 answer

After deploying in GitHub Pages React App does not show anything using react-router

There is a problem with deployment of React App (create-react-app). It works on GitHub Pages, and it works only when I write on local project. npm start If I close the project locally, the github pages also downs. I deployed 3 times already, but…
srmback
  • 31
  • 6
1
vote
0 answers

My project made in React js does NOT play in github, blank screen

I have this problem and I think it has happened to many people. I uploaded a react project to github pages, when I access to see the deploy, the screen appears blank, and the console tells me this, "main.jsx not load", I clarify that the file…
1
vote
1 answer

SvelteKit deployment on gh - pages doesn't work. Only HTML is shown, CSS and JS doesn't load

If I build the project locally and view the preview, everything works fine. If I deploy it to gh-pages only HTML is shown and JS & CSS cannot be loaded. Why is that? I don't find what I am doing wrong, i asked on the official svelte discord server…
1
vote
0 answers

npm run publish doesn't do anything when I push repository from master branch to gh-pages

While trying to run publish.sh file in VS Code #!/usr/bin/env sh # abort on errors set -e # build npm run docs:build # navigate into the build output directory cd docs/.vuepress/dist # if you are deploying to a custom domain # echo…
1
vote
1 answer

Problem with GitHub pages using Remote Theme In GitHub Enterprise

I have created a separate repo in our organization to store the custom documents and guidelines, so Chosen GitHub-Pages to publish it. I'm very new to Jekyll, but somehow managed to learn and used a custom theme 'Just the docs' and published the…