Skip to content

Conversation

@toshimaru
Copy link
Member

@toshimaru toshimaru commented Oct 25, 2025

image

This pull request updates both the JavaScript and SCSS files to improve code consistency, enhance the appearance of anchor links, and refine the layout of method documentation. The most important changes are grouped below.

JavaScript code improvements:

  • Refactored the initialization of the anchors library in app.js for better clarity and consistency, changing the options assignment to use an object and updating quote usage. Also improved the jQuery selector code style for consistency.

SCSS styling enhancements:

  • Adjusted the color of .anchorjs-link to use the $red variable and a specific red shade on hover, improving visual consistency with the site's color scheme.
  • Improved the .method class styles by adding left margin to .description, .method__aka, and .method__source elements, with increased spacing on larger screens for better readability.

@toshimaru toshimaru force-pushed the update-anchorjs-style branch from 9a989cb to 2f51cc5 Compare October 25, 2025 09:27
@toshimaru toshimaru marked this pull request as ready for review October 25, 2025 10:32
Copilot AI review requested due to automatic review settings October 25, 2025 10:32
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR modernizes JavaScript code style and enhances visual consistency for anchor links and method documentation. The changes improve code quality through consistent quote usage and modern syntax while refining the UI appearance.

  • JavaScript updates use consistent double quotes and modern object/arrow function syntax
  • Anchor link colors now use the site's red color scheme for better visual consistency
  • Method documentation layout gains improved readability with responsive left margins

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/assets/js/app.js Modernizes code style with consistent double quotes, object literal syntax for anchors options, and arrow function callbacks
src/_sass/railsdoc.scss Updates anchor link colors to red theme and adds responsive left margins to method documentation elements

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@toshimaru toshimaru merged commit 2c7c676 into railsdoc:main Oct 25, 2025
11 checks passed
@toshimaru toshimaru deleted the update-anchorjs-style branch October 25, 2025 10:33
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