Skip to content

blog: import posts from Jekyll#41

Merged
gapry merged 1 commit intomainfrom
import-jekyll-posts
Mar 5, 2026
Merged

blog: import posts from Jekyll#41
gapry merged 1 commit intomainfrom
import-jekyll-posts

Conversation

@gapry
Copy link
Owner

@gapry gapry commented Mar 5, 2026

No description provided.

@gemini-code-assist
Copy link

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly upgrades the blog's content and presentation. It introduces a series of in-depth study notes on compiler optimizations, enhancing the educational value of the platform. Concurrently, it overhauls the markdown rendering capabilities by integrating advanced libraries for syntax highlighting and GFM support, ensuring a richer and more readable experience for technical content. The accompanying styling refactor improves the overall aesthetic and maintainability of the blog's user interface.

Highlights

  • Enhanced Markdown Rendering: Integrated react-syntax-highlighter and remark-gfm to provide robust syntax highlighting for code blocks and full support for GitHub Flavored Markdown within blog posts.
  • New Blog Content: Added six new detailed study notes on 'Advent of Compiler Optimisations' covering topics from xor eax, eax to integer division, enriching the blog's technical content.
  • Improved Post Sorting: Modified the post generation script to sort posts by date, with a secondary sort key of originalName to ensure consistent ordering for posts published on the same day.
  • Styling Refactor and Enhancements: Refactored the blog's styling by moving specific component styles into dedicated CSS files (Home.css, NotFound.css) and updated App.css to include comprehensive markdown body styling, improving maintainability and visual consistency.
  • Dependency Updates: Updated bun.lock and package.json to include the newly added markdown rendering libraries and their transitive dependencies.
Changelog
  • build.js
    • Updated post sorting logic to include originalName as a secondary sort key for posts with identical dates.
  • bun.lock
    • Updated the bun.lock file to reflect changes in dependencies, including new packages for markdown rendering.
  • package.json
    • Added react-syntax-highlighter and remark-gfm to the project dependencies.
  • public/posts/2025/2025-12-13-Test7.md
    • Removed a deprecated test blog post.
  • public/posts/2026/2026-01-01-Advent-of-Compiler-Optimisations-Study-Notes-01.md
    • Added a new blog post titled 'Study Notes: Why xor eax, eax?, Advent of Compiler Optimisations 2025'.
  • public/posts/2026/2026-01-29-Test3.md
    • Removed a deprecated test blog post.
  • public/posts/2026/2026-01-31-Advent-of-Compiler-Optimisations-Study-Notes-02.md
    • Added a new blog post titled 'Study Notes: Addressing the adding situation, Advent of Compiler Optimisations 2025'.
  • public/posts/2026/2026-01-31-Advent-of-Compiler-Optimisations-Study-Notes-03.md
    • Added a new blog post titled 'Study Notes: You can't fool the optimiser, Advent of Compiler Optimisations 2025'.
  • public/posts/2026/2026-01-31-Test123.md
    • Removed a deprecated test blog post.
  • public/posts/2026/2026-02-03-Test5.md
    • Removed a deprecated test blog post.
  • public/posts/2026/2026-02-27-Advent-of-Compiler-Optimisations-Study-Notes-04.md
    • Added a new blog post titled 'Study Notes: Multiplying with a constant, Advent of Compiler Optimisations 2025'.
  • public/posts/2026/2026-02-28-Advent-of-Compiler-Optimisations-Study-Notes-05.md
    • Added a new blog post titled 'Study Notes: ARM's barrel shifter tricks, Advent of Compiler Optimisations 2025'.
  • public/posts/2026/2026-02-28-Advent-of-Compiler-Optimisations-Study-Notes-06.md
    • Added a new blog post titled 'Study Notes: Division, Advent of Compiler Optimisations 2025'.
  • public/posts/2026/2026-03-05-Test.md
    • Removed a deprecated test blog post.
  • src/App.css
    • Updated global styling for the application shell, links, and markdown body elements.
    • Added new CSS rules for headings, horizontal rules, tables, and inline/block code elements.
  • src/App.jsx
    • Imported remarkGfm, Prism as SyntaxHighlighter, and vscDarkPlus for advanced markdown rendering.
    • Integrated remarkGfm and SyntaxHighlighter into the ReactMarkdown component for enhanced code block and GFM support.
    • Adjusted post data filtering logic for clarity.
    • Removed inline styling from the app shell div and applied CSS classes.
  • src/Home.css
    • Added new CSS file to define styles for the home page, including post list and pagination elements.
  • src/Home.jsx
    • Imported Home.css for component-specific styling.
    • Applied new CSS classes to the home page title, post list items, and pagination buttons.
  • src/NotFound.css
    • Added new CSS file to define styles for the 404 Not Found page.
  • src/NotFound.jsx
    • Imported NotFound.css for component-specific styling.
    • Applied new CSS classes to the 404 page container, error code, title, text, and return link.
Activity
  • The author gapry initiated this pull request to import new blog posts and enhance blog features.
  • New dependencies for markdown rendering and syntax highlighting were added, indicating feature development.
  • Several test blog posts were removed, suggesting a cleanup of temporary content.
  • Existing CSS was refactored and new CSS files were introduced, demonstrating an effort to improve styling and code organization.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@amazon-q-developer amazon-q-developer bot left a comment

Choose a reason for hiding this comment

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

This PR successfully imports posts from Jekyll and adds enhanced markdown rendering with syntax highlighting. The implementation is solid with proper dependencies and styling improvements. One minor cleanup suggestion has been noted regarding an unused parameter.


You can now have the agent implement changes and create commits directly on your pull request's source branch. Simply comment with /q followed by your request in natural language to ask the agent to make changes.

<ReactMarkdown
remarkPlugins={[remarkGfm]}
components={{
code({ node, inline, className, children, ...props }) {

Choose a reason for hiding this comment

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

Unused parameter node in the code component function. Remove it if not needed to avoid ESLint warnings.

Suggested change
code({ node, inline, className, children, ...props }) {
code({ inline, className, children, ...props }) {

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request is a significant update that imports numerous blog posts, likely from a Jekyll-based site, and enhances the blog's presentation layer. The changes include adding dependencies for GitHub-Flavored Markdown and syntax highlighting, refactoring components to use CSS classes over inline styles, and implementing a new dark theme. The code quality is good, and the refactoring improves maintainability. I've included a couple of suggestions to further refine the code and content.

$ nvim add.s
```

```text

Choose a reason for hiding this comment

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

medium

To enable syntax highlighting for this assembly code block, please change the language identifier from text to asm or gas. This will significantly improve readability for your readers.

This suggestion applies to other assembly code blocks in the new markdown files as well. For example, for AArch64 assembly, you can use aarch64.

Suggested change
```text
```asm

<ReactMarkdown
remarkPlugins={[remarkGfm]}
components={{
code({ node, inline, className, children, ...props }) {

Choose a reason for hiding this comment

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

medium

The node prop is destructured here but never used within the code component. Removing it will make the code slightly cleaner.

Suggested change
code({ node, inline, className, children, ...props }) {
code({ inline, className, children, ...props }) {

@gapry gapry merged commit f9b62ac into main Mar 5, 2026
2 checks passed
@gapry gapry deleted the import-jekyll-posts branch March 5, 2026 08:12
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.

1 participant