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

Github Pages deploy error #1595

Closed
1 task done
silveiratcl opened this issue Mar 6, 2024 · 2 comments
Closed
1 task done

Github Pages deploy error #1595

silveiratcl opened this issue Mar 6, 2024 · 2 comments

Comments

@silveiratcl
Copy link

silveiratcl commented Mar 6, 2024

Checklist

How did you create the site?

Generated from chirpy-starter

Describe the bug

Github actions failed; it only worked on the first commit. After making some edits, I pushed again, and encountered an error during deployment.
Similar issue described in #1556 , but not worked according #1556 (comment)

Steps To Reproduce

Check the https://github.com/silveiratcl/silveiratcl.github.io/actions/runs/8166065864.

Expected Behavior

Just deploy

Environment

Anything else?

Run bundle exec htmlproofer _site
Running 3 checks (Scripts, Links, Images) in ["_site"] on *.html files...

Checking 28 internal links
Checking internal link hashes in 1 file
Ran on 13 files!

For the Images check, the following failures were found:

  • At _site/posts/hello-world/index.html:1:

    internal image /assets\img\posts_img\hello_world.png does not exist

For the Links > Internal check, the following failures were found:

  • At _site/404.html:1:

    internally linking to silveiratcl.github.io/404.html, which does not exist

  • At _site/about/index.html:1:

    internally linking to silveiratcl.github.io/about/, which does not exist

  • At _site/archives/index.html:1:

    internally linking to silveiratcl.github.io/archives/, which does not exist

  • At _site/assets/index.html:5:

    internally linking to silveiratcl.github.io/404.html, which does not exist

  • At _site/assets/index.html:10:

    internally linking to silveiratcl.github.io/404.html, which does not exist

  • At _site/categories/hello-world/index.html:1:

    internally linking to silveiratcl.github.io/categories/hello-world/, which does not exist

  • At _site/categories/hi/index.html:1:

    internally linking to silveiratcl.github.io/categories/hi/, which does not exist

  • At _site/categories/index.html:1:

    internally linking to silveiratcl.github.io/categories/, which does not exist

  • At _site/index.html:1:

    internally linking to silveiratcl.github.io/, which does not exist

  • At _site/norobots/index.html:5:

    internally linking to silveiratcl.github.io/404.html, which does not exist

  • At _site/norobots/index.html:10:

    internally linking to silveiratcl.github.io/404.html, which does not exist

  • At _site/posts/hello-world/index.html:1:

    internally linking to silveiratcl.github.io/posts/hello-world/, which does not exist

  • At _site/posts/hello-world/index.html:1:

    internally linking to /assets%5Cimg%5Cposts_img%5Chello_world.png, which does not exist

  • At _site/posts/index.html:5:

    internally linking to silveiratcl.github.io/404.html, which does not exist

  • At _site/posts/index.html:10:

    internally linking to silveiratcl.github.io/404.html, which does not exist

  • At _site/tags/hello-world/index.html:1:

    internally linking to silveiratcl.github.io/tags/hello-world/, which does not exist

  • At _site/tags/index.html:1:

    internally linking to silveiratcl.github.io/tags/, which does not exist

HTML-Proofer found 18 failures!
Error: Process completed with exit code 1.

@kungfux
Copy link
Collaborator

kungfux commented Mar 6, 2024

For the Images check, the following failures were found:

  • At _site/posts/hello-world/index.html:1:

internal image /assets\img\posts_img\hello_world.png does not exist

Try to fix the path to be like /assets/img/posts_img/hello_world.png and make sure that image exists. Currently, I don't see it in your repo.

For the Links > Internal check, the following failures were found:

  • At _site/404.html:1:

internally linking to silveiratcl.github.io/404.html, which does not exist

Try to fix _config.yml as following:

# Fill in the protocol & hostname for your site.
# e.g. 'https://username.github.io', note that it does not end with a '/'.
url: "https://silveiratcl.github.io"

@silveiratcl
Copy link
Author

silveiratcl commented Mar 6, 2024

Thanks Kungfux, it was an obvious.
Thanks for the help!!!

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