Skip to content

Document data-current-path HTML attribute#5491

Merged
brandonmcconnell merged 2 commits intomainfrom
mintlify/data-current-path-attr-1776894118
Apr 23, 2026
Merged

Document data-current-path HTML attribute#5491
brandonmcconnell merged 2 commits intomainfrom
mintlify/data-current-path-attr-1776894118

Conversation

@mintlify
Copy link
Copy Markdown
Contributor

@mintlify mintlify Bot commented Apr 22, 2026

Adds documentation for the new data-current-path attribute exposed on the <html> element in the Data attributes section of Custom scripts.

Context: mintlify/mint#7230


Note

Low Risk
Low risk documentation-only change that adds a new selector reference with no runtime or behavior changes.

Overview
Documents a new html[data-current-path] attribute in customize/custom-scripts.mdx so users can target custom CSS to specific pages or subpaths, including examples for exact matches and prefix matches (e.g., section-wide styling).

Reviewed by Cursor Bugbot for commit a1ef37b. Bugbot is set up for automated code reviews on this repo. Configure here.

Generated-By: mintlify-agent
@mintlify
Copy link
Copy Markdown
Contributor Author

mintlify Bot commented Apr 22, 2026

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
mintlify 🟡 Building Apr 22, 2026, 9:42 PM

@mintlify-development
Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
userauth 🟡 Building Apr 22, 2026, 9:42 PM

Copy link
Copy Markdown
Collaborator

@ethanpalm ethanpalm left a comment

Choose a reason for hiding this comment

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

I think we can make it more concise but lgtm!

Comment thread customize/custom-scripts.mdx Outdated
Co-authored-by: Ethan Palm <56270045+ethanpalm@users.noreply.github.com>
@brandonmcconnell brandonmcconnell merged commit b318512 into main Apr 23, 2026
5 checks passed
@brandonmcconnell brandonmcconnell deleted the mintlify/data-current-path-attr-1776894118 branch April 23, 2026 00:25
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.

2 participants