-
-
Notifications
You must be signed in to change notification settings - Fork 10.7k
docs: Add modes to all explanation/how to #13922
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
base: main
Are you sure you want to change the base?
Conversation
|
## Overview | ||
<br/> | ||
<br/> |
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.
We had a mix of <br/>
versus a new <h2>
across the docs. I think the line breaks look better because then we don't have an effectively empty h1
with just a modes bar followed by an h2
. I aligned them all to match
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.
Yeah, the <br />
s were basically me being lazy and not fixing any spacing issues with the modes bar
I think the pattern Ryan had started was always having an "overview" section at the top of every file (example)

I personally don't super care. I think either is fine, but long term should probably just clean up the css to avoid this <br />
s 😅
I went ahead and opened an issue on react-router-website
to address this eventually. This is good for now though
ee1c6de
to
1939905
Compare
@@ -10,12 +10,22 @@ React Router makes certain accessibility practices the default where possible an | |||
|
|||
## Links | |||
|
|||
[MODES: framework,data,declarative] |
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.
Really small nit, just for consistency
[MODES: framework,data,declarative] | |
[MODES: framework, data, declarative] |
@@ -4,6 +4,11 @@ title: Error Boundaries | |||
|
|||
# Error Boundaries | |||
|
|||
[MODES: framework,data] |
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.
[MODES: framework,data] | |
[MODES: framework, data] |
@@ -4,6 +4,11 @@ title: Using Fetchers | |||
|
|||
# Using Fetchers | |||
|
|||
[MODES: framework,data] |
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.
[MODES: framework,data] | |
[MODES: framework, data] |
@@ -4,6 +4,11 @@ title: Form Validation | |||
|
|||
# Form Validation | |||
|
|||
[MODES: framework,data] |
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.
[MODES: framework,data] | |
[MODES: framework, data] |
@@ -4,6 +4,11 @@ title: Resource Routes | |||
|
|||
# Resource Routes | |||
|
|||
[MODES: framework,data] |
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.
[MODES: framework,data] | |
[MODES: framework, data] |
@@ -4,6 +4,11 @@ title: Status Codes | |||
|
|||
# Status Codes | |||
|
|||
[MODES: framework,data] |
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.
[MODES: framework,data] | |
[MODES: framework ,data] |
@@ -4,6 +4,11 @@ title: Streaming with Suspense | |||
|
|||
# Streaming with Suspense | |||
|
|||
[MODES: framework,data] |
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.
[MODES: framework,data] | |
[MODES: framework, data] |
@@ -4,6 +4,11 @@ title: View Transitions | |||
|
|||
# View Transitions | |||
|
|||
[MODES: framework,data] |
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.
[MODES: framework,data] | |
[MODES: framework, data] |
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.
Thanks @brophdawg11!
Sorry, I got really nitty with the spacing. It really doesn't matter, but I'd already started so I didn't stop. I don't care if you don't commit those, haha
Add's a MODES bar to all docs in the Explanation/How To sections that didn't already have one