Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to publish correctly / Stylesheets ... etc missing #205

Open
JunliXiao opened this issue Jun 29, 2020 · 1 comment
Open

Failed to publish correctly / Stylesheets ... etc missing #205

JunliXiao opened this issue Jun 29, 2020 · 1 comment

Comments

@JunliXiao
Copy link

Hi there,
I am quite a newbie into GitHub and web development.
I would be very thankful for your patiently looking into my questions...

I am just learning to deploy static websites on GitHub Pages.
I have no problem deploying with Jekyll and supported themes or pure HTML, from local client pushing to my GitHub repo.
But for this theme - chalk, I am not sure if I use it correctly.
My approach is pretty much: create a new repo first, git clone the chalk url to local and then add to it
my repo url as origin. So far the npm run setup and npm run local commands work fine.
But when using npm run publish, without editing any files, I found in the gh-pages branch lacking many files,
like _config.yml and many style sheets.
I assume it to be abnormal, right?
Since lacking those files makes the pages look ugly and obviously incomplete.
That's sort of the whole story, I didn't play much with the files or git commands.

Thanks for reading, and is there anyone having any idea about the situation?
Sincerely,

@ortonbabb
Copy link

Hi, I'm not sure if you've figured out the situation yet, but the gh-pages branch will only have the compiled site files. These are equivalent to the files that are found in _site from the master branch (compiled also when you do npm run local). If you switch back to master you will find all the original files.

I also had issues with publishing using the npm run publish method. It would be nice if someone more experienced than me can give a full explanation on how publishing works. So far, my hacky solution has been to copy and paste the compiled site files into a separate repository and push that to Github.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants