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

Failing to deploy GitHub pages because of write permission

I'm building my website forked from https://github.com/academicpages/academicpages.github.io. During the job setup, the log clearly prints: GITHUB_TOKEN Permissions: Contents: read Metadata: read Pages: write But during deployment, it still…
allie
  • 11
  • 1
1
vote
2 answers

How to list all pages of a github organization

I am new to a GitHub Organization, and some of the document/guides is Not on README.md/Wiki/docs, but on GitHub Pages. So Is there any way to list all available GitHub Pages on this GitHub Organization? I've tried gh/git CLI, and GitHub GUI, not…
Chen Tian
  • 79
  • 8
1
vote
1 answer

application cannot be run on localhost or with github page

Can I ask for help? Initially, the application that I built using React JS could run on localhost. However, when I try to deploy using GitHub pages, the application cannot be run even though the React code has been deployed to GitHub. This is the…
1
vote
0 answers

Deploying NextJS Site To Gh-Pages Doesn't Work Even With basePath and assetPrefix

I have a site build with next.js that works locally (code: https://github.com/xpress-smoke-shop/website). I am trying to deploy a static html version of the site to the domain: https://xpress-smoke-shop.github.io/website/ I can clone the repo and…
Jim
  • 3,821
  • 1
  • 28
  • 60
1
vote
1 answer

Problem with GitHub Pages Jekyll Template

I have a problem with GitHub Pages personal site, which I want to create from this template: portfolYOU by YoussefRaafatNasry I was able to figure out how to test the site locally with Jekyll and everything worked great. After I tried to upload the…
1
vote
0 answers

React router dom working locally but not once deployed

I am currently trying to deploy a site. The site is being deployed from my github, while using a custom domain through godaddy. Everything routes fine locally, only doing a landing ('/') page to home ('/home'). The problem is once deployed it can…
OhDangBro
  • 11
  • 2
1
vote
1 answer

GitHub API create file not creating

I was trying to create a website where I could put in some data, and it would send GitHub API a POST request to create a file with the specified data. I am using GitHub Pages to host. I created a test script that should create a file once the page…
1
vote
0 answers

If I deploy react app on github pages and node.js backend on heroku will it work?

So after a lot of Googling I have found one thing that Github pages does not support anything for a dynamic site having a backend and database its just static. While Heroku supports Node.js and SQL as backend So if I deploy my React app on GitHub…
1
vote
0 answers

Host react app on github pages, shows default MD of built app

I was trying to deploy my react app to github pages in order to show to a a recruiter this 'test' I saw you can do this using gh-pages package but when I deploy it to the gh-pages branch and go to the url of the github page I just can see the…
TTT2
  • 549
  • 2
  • 13
1
vote
0 answers

pages build and deployment fails

I have a github site, an RStudio project, generating web pages for a course, https://github.com/friendly/psy6136 It is set up with a `docs/' folder and github action to deploy to my site https://friendly.github.io/psy6136 It has always worked…
user101089
  • 3,756
  • 1
  • 26
  • 53
1
vote
1 answer

Flutter Web - Getting flutter_ is not defined after publishing github pages

I just build a flutter web project. I hosted it on github pages. After successfully from creating repository to deploying project I am getting this following error... (index):46 Uncaught ReferenceError: _flutter is not defined I don't understand…
1
vote
0 answers

What options are required in a _config.yml file to run a GitHub Page?

Run actions/jekyll-build-pages@v1 /usr/bin/docker run --name ghcrioactionsjekyllbuildpagesv104_2d9e9e --label 290506 --workdir /github/workspace --rm -e "INPUT_SOURCE" -e "INPUT_DESTINATION" -e "INPUT_FUTURE" -e "INPUT_BUILD_REVISION" -e…
lucien
  • 11
  • 2
1
vote
1 answer

Github error 404 on console with payload js

I have just deployed my Nuxt app and there are some errors with payload js, I have no idea what error is this. Here is my file directory I found that payload.js file which is in error: ...1673214939//payload.js and there is in all…
1
vote
0 answers

Error: Minified React error #130 in production react app built using vite

So I keep getting this error when I deploy my react app to github pages and this error only shows in production and the app is working okay in the development mode and shows no errors Error: Minified React error #130; visit…
yyyy
  • 95
  • 1
  • 6
1
vote
0 answers

Accessing image files in public folder after deploying to gh pages breaking

I deployed my react app to gh-pages and my images arent loading anymore. They are held in the public folder and I am loading the them using the react-three-fiber hook useLoader according to their documentation like this: const [theImage, 2ndImage] =…
CourtneyJ
  • 458
  • 6
  • 19