-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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(v2): add optional custom wrapper class name for pages based on theme classic Layout #3457
feat(v2): add optional custom wrapper class name for pages based on theme classic Layout #3457
Conversation
…heme classic Layout
Deploy preview for docusaurus-2 ready! Built without sensitive environment variables with commit bc0a7cd |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is nice feature indeed, I think what else can we add a similar feature for MD page in its frontmatter?
---
title: my hello page title
description: my hello page description
wrapperClassName: hello
---
Content..
Alternatively, I can (in a later time) try to add Layout component related section to the Theme Classic page.
That would be great, we definitely need it.
@lex111 I have added the |
@lex111 Is there anything more you would like to see implemented within this PR? 🙂 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, we will write docs for Layout component in a separate PR.
@Simek thank you! |
@lex111 I'm happy to do this after I finish my part on the RN website migration. |
…heme classic Layout (#3457) * feat(v2): add optional custom wrapper class name for pages based on theme classic Layout * feat(v2): add optional custom wrapper class name for markdown pages * fix TS types
Motivation
Some custom pages may require different layout or additional customizations to the main page wrapper.
This small PR introduces an ability to specify an optional, custom
wrapperClassName
to the theme classicLayout
component.I have NOT updated the docs because I was not able to find the page which describes all other optional
Layout
props. "Theme classic" and "Creating pages" only briefly mentionLayout
usage. The most properties is used in the "Migration guide" but still without a description.I can add the note about this feature if you will be able to tell me where to put it. Alternatively, I can (in a later time) try to add
Layout
component related section to the Theme Classic page. 🙂Have you read the Contributing Guidelines on pull requests?
Yes
Test Plan
Feature has been tested with the local Docusaurus V2 website.
Related PRs