Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 3
Message 1 of 7
6 Replies
Pilot Lvl 2
Message 2 of 7

Re: gh-pages html not rendering?

I am pretty sure this issue stems from the fact that you're trying to create a GitHub Pages site via an organization repository that does not fit the requirements for one. According to the GitHub Pages documentation:

Head over to GitHub and create a new repository named username.github.io, where username is your username (or organization name) on GitHub.

^ this means you would have to deploy a GitHub Pages site in a repository named superflycss.github.io; you might also have to fully enable the site in the repository's settings once it is created.

 

I hope this helps! If you want to learn more about GitHub Pages and on creating a new site through it, you can visit their documentation.

 

 

Gavin R. Isgar - Freelance Software Developer
Copilot Lvl 3
Message 3 of 7

Re: gh-pages html not rendering?

I'm using the same process I use for all the other superflycss repositories.  For example this one:

https://www.npmjs.com/package/@superflycss/component-test

https://superflycss.github.io/component-test/target/test/html/

https://github.com/superflycss/component-test/tree/gh-pages

 

The only difference is that I changed the travis command to publish the html files to deploy instead of target/test/html.  I'm testing serving of optimized CSS files.

Highlighted
Solution
Pilot Lvl 2
Message 4 of 7

Re: gh-pages html not rendering?

Ahhh, I see. Not sure if that Travis command you used can somehow differ the process used to display a GitHub Pages site. If possible, I recommend trying your old method again and seeing if that fixes the issue and then move on to brainstorming a new method of attempting to achieve what you want right now.

 

I personally am not sure of the issue occurring myself, so I am just giving you advice on how to test for a problem. Hope it works out good in the end!

 

Gavin R. Isgar - Freelance Software Developer
Copilot Lvl 3
Message 5 of 7

Re: gh-pages html not rendering?

But your hunch made me look at the settings and it had this in it:

 Your site is having problems building: The tag import on line 18 in README.md is not a recognized Liquid tag. For more information, see https://help.github.com/en/articles/page-build-failed-unknown-tag-error.


```
{% import "@superflycss/component-site/SiteHead.njk" as SiteHead %}
{{ SiteHead.head( 'SuperflyCSS Component Site' ) }}
```
 
Weird that it's complaining about that since it's part of the README and not the site.  Anyways I'm pretty adding README.md to .gitignore should fix it
 
Copilot Lvl 3
Message 6 of 7

Re: gh-pages html not rendering?

This is what I have for travis now (needed to add `- sed -i '1 i README.md' .gitignore` so that it ignores README.md when pushing to github pages:

 

```

language: node_js
sudo: false
node_js:
- "stable"
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN # Set in travis-ci.org dashboard
on:
branch: master
before_deploy:
- npm i -g @superflycss/cli
- sfc deploy
- sed -i '1 i README.md' .gitignore
- sed -i '/target/d' .gitignore
- sed -i '/deploy/d' .gitignore

```

Mission Specialist Lvl 2
Message 7 of 7

Re: gh-pages html not rendering?

Your site is having problems building: . For more information, see https://help.github.com/en/articles/page-build-failed-unknown-tag-error.


@oleersoy wrote:

I have this gh-pages branch:

https://github.com/superflycss/component-site/blob/gh-pages/deploy/index.html

But index.html is not showing up?

https://superflycss.github.io/component-site/deploy/

Thoughts?