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

feat: blog sidebar grouped by year #587

Merged
merged 7 commits into from
Jun 27, 2024

Conversation

alicelovescake
Copy link
Member

@alicelovescake alicelovescake commented Jun 26, 2024

This PR:

  • Improves our blog sidebar by grouping entries by year for both desktop and mobile
  • Adds a docusaurus patch so we have access to blog date

Update: Docusaurus PR.

Note: Do we need to update CircleCI configs for the new patches? Updated yarn script to build the patch

Desktop Screenshot

Electron 31 0 0

Mobile Screenshot

Google Summer of Code 2024

@alicelovescake alicelovescake requested a review from a team as a code owner June 26, 2024 17:47
@alicelovescake alicelovescake self-assigned this Jun 26, 2024
@MarshallOfSound MarshallOfSound temporarily deployed to electronjsorg-new-pr-587 June 26, 2024 17:47 Inactive
@MarshallOfSound MarshallOfSound temporarily deployed to electronjsorg-new-pr-587 June 26, 2024 18:08 Inactive
Copy link
Member

@dsanders11 dsanders11 left a comment

Choose a reason for hiding this comment

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

Looks great! 🎉

@@ -27,7 +27,9 @@
"lint": "npx tsc --noEmit && prettier . --check && npm run lint:eslint && npm run lint:markdown",
"lint:fix": "prettier . --write && npm run lint:eslint --fix && npm run lint:markdown --fix",
"pre-build": "npx tsx ./scripts/pre-build.ts",
"prepare": "husky install"
"prepare": "husky install",
"heroku-cleanup": "npx patch-package",
Copy link
Member

Choose a reason for hiding this comment

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

For other reviewers, this is necessary to ensure the patches get applied correctly in the Heroku environment, which installs dependencies a bit differently.

@dsanders11 dsanders11 requested a review from erickzhao June 26, 2024 18:28
Copy link
Member

@erickzhao erickzhao left a comment

Choose a reason for hiding this comment

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

About Swizzling:

  • There's a little document in https://github.com/electron/website/tree/main/src/theme/README.md that I've been keeping for historical/upgrade purposes in case a minor version bump of Docusaurus breaks the swizzle.
  • Would it be possible to highlight which parts of the code are customized in the swizzle via code comment (unless it's the whole thing)?

@MarshallOfSound MarshallOfSound temporarily deployed to electronjsorg-new-pr-587 June 26, 2024 20:19 Inactive
@alicelovescake alicelovescake requested a review from erickzhao June 26, 2024 20:23
@MarshallOfSound MarshallOfSound temporarily deployed to electronjsorg-new-pr-587 June 26, 2024 20:31 Inactive
src/theme/README.md Outdated Show resolved Hide resolved
@MarshallOfSound MarshallOfSound temporarily deployed to electronjsorg-new-pr-587 June 27, 2024 16:15 Inactive
@dsanders11 dsanders11 merged commit 1f8a694 into main Jun 27, 2024
3 checks passed
@dsanders11 dsanders11 deleted the alice-blog-sidebar-grouped-by-year branch June 27, 2024 16:30
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

Successfully merging this pull request may close these issues.

4 participants