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

Format website with prettier #2536

Merged
merged 16 commits into from
Apr 6, 2022
Merged

Conversation

ranile
Copy link
Member

@ranile ranile commented Mar 20, 2022

Description

Add prettier to format docs in website. I also experimented a little bit with eslint but it doesn't like the frontmatter in our mdx files

Fixes #2386

Checklist

  • I have run cargo make pr-flow
  • I have reviewed my own code
  • I have added tests

github-actions[bot]
github-actions bot previously approved these changes Mar 20, 2022
github-actions[bot]
github-actions bot previously approved these changes Mar 20, 2022
github-actions[bot]
github-actions bot previously approved these changes Mar 20, 2022
@voidpumpkin
Copy link
Member

voidpumpkin commented Mar 20, 2022

Would be great if i could merge in my docs PR's so i would get no conflicts.

Its easier for you to fix them as you can just rerun prettier linting.

#2511 #2533 #2535

ranile added 3 commits March 20, 2022 16:23
# Conflicts:
#	website/docs/concepts/html/classes.mdx
#	website/docs/concepts/html/components.mdx
#	website/docs/concepts/html/conditional-rendering.mdx
#	website/docs/concepts/html/elements.mdx
#	website/docs/concepts/html/events.mdx
#	website/docs/concepts/html/fragments.mdx
#	website/docs/concepts/html/introduction.mdx
#	website/docs/concepts/html/lists.mdx
#	website/docs/concepts/router.mdx
github-actions[bot]
github-actions bot previously approved these changes Mar 20, 2022
github-actions[bot]
github-actions bot previously approved these changes Mar 20, 2022
github-actions[bot]
github-actions bot previously approved these changes Mar 20, 2022
they're autogenerated and don't like being formatted
github-actions[bot]
github-actions bot previously approved these changes Mar 20, 2022
@ranile ranile requested a review from voidpumpkin March 20, 2022 11:52
@github-actions
Copy link

github-actions bot commented Mar 20, 2022

Visit the preview URL for this PR (updated for commit 3aeab7e):

https://yew-rs--pr2536-prettier-website-jwy6xmk2.web.app

(expires Sun, 10 Apr 2022 08:28:08 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

voidpumpkin
voidpumpkin previously approved these changes Mar 20, 2022
@voidpumpkin voidpumpkin added the S-waiting-on-author Status: awaiting action from the author of the issue/PR label Apr 1, 2022
ranile added 2 commits April 3, 2022 01:04
# Conflicts:
#	website/docs/concepts/function-components/hooks/introduction.mdx
#	website/package-lock.json
#	website/package.json
#	website/sidebars/docs.js
@ranile ranile dismissed stale reviews from voidpumpkin and github-actions[bot] via 8d110f7 April 2, 2022 20:18
github-actions[bot]
github-actions bot previously approved these changes Apr 2, 2022
ranile added 2 commits April 3, 2022 12:52
# Conflicts:
#	website/docs/advanced-topics/server-side-rendering.md
#	website/docs/concepts/contexts.mdx
#	website/sidebars/docs.js
@ranile ranile requested a review from voidpumpkin April 3, 2022 08:19
@ranile ranile added A-ci Area: The continuous integration and removed S-waiting-on-author Status: awaiting action from the author of the issue/PR labels Apr 3, 2022
@@ -26,10 +27,19 @@ jobs:
with:
node-version: "16"

- name: Check Translations
- name: Install dependencies
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You probably wanted to revert this name change too, right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, this job does everything: run prettier, check translations, build the site and upload the artifacts. That's why we need to install dependencies. I just made it a separate step (it was done in the check translations step previously)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I totally missed what was going on here, sorry! I thought you renamed the entire job to "Install dependencies" :)

In my defence, it was very early in the morning :D

Copy link
Member

@siku2 siku2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really happy to finally have standardised formatting for the website content too

@ranile ranile merged commit 3ad4dbe into yewstack:master Apr 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-ci Area: The continuous integration documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consistent formatting for JS files for the website
3 participants