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

Checking the formatting _config.yml will report an error! #2426

Open
2 tasks done
chenjunyan1 opened this issue May 17, 2024 · 3 comments
Open
2 tasks done

Checking the formatting _config.yml will report an error! #2426

chenjunyan1 opened this issue May 17, 2024 · 3 comments
Labels

Comments

@chenjunyan1
Copy link

Have you checked that your issue isn't already filed?

  • I read through FAQ and searched through the past issues, none of which addressed my issue.
  • Yes, I have checked that this issue isn't already filed.

Bug description

First of all, I set [baseurl :] in _config.yml to empty, and deployed without error, but when I clicked on the name in the web page, it navigated to an error page, so I changed it to [baseurl :/], but in actions it would report an error. Prettier Check 🔎 Run npx prettier . --check npx prettier . --check shell: /usr/bin/bash -e {0} Checking formatting... [warn] _config.yml [warn] Code style issues found in the above file. Run Prettier to fix. Error: Process completed with exit code 1. But the page opens without any problem, I want to know why? I want the page to open in actions without reporting errors.

How to reproduce the bug

截屏2024-05-17 18 14 48

Error messages and logs

Actions

Prettier Check 🔎
Run npx prettier . --check
  npx prettier . --check
  shell: /usr/bin/bash -e {0}
Checking formatting...
[warn] _config.yml
[warn] Code style issues found in the above file. Run Prettier to fix.
Error: Process completed with exit code 1.

What operating system are you using?

Mac

Where are you seeing the problem on?

Running locally without Docker

More info

No response

@chenjunyan1
Copy link
Author

This is my github page : https://chenjunyan1.github.io/

@george-gca
Copy link
Collaborator

baseurl should be set to empty, which looks like this:

baseurl:

You can check that by looking at the code of some of the sites generated from this template that have open source code.

@george-gca
Copy link
Collaborator

About prettier errors, check our FAQ.

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

No branches or pull requests

2 participants