Skip to content

feat: blog sidebar grouped by year#587

Merged
dsanders11 merged 7 commits into
mainfrom
alice-blog-sidebar-grouped-by-year
Jun 27, 2024
Merged

feat: blog sidebar grouped by year#587
dsanders11 merged 7 commits into
mainfrom
alice-blog-sidebar-grouped-by-year

Conversation

@alicelovescake
Copy link
Copy Markdown
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
Copy Markdown
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! 🎉

Comment thread package.json
"pre-build": "npx tsx ./scripts/pre-build.ts",
"prepare": "husky install"
"prepare": "husky install",
"heroku-cleanup": "npx patch-package",
Copy link
Copy Markdown
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
Copy Markdown
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
Comment thread src/theme/README.md
@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
Comment thread src/theme/README.md Outdated
@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
@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