-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
feat(platform): Navigation buttons #11639
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
Merged
Merged
Changes from 8 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
a8454d3
feat: add logic for adding next page
chargome 93f0d44
feat: add functionality for getting previous page
chargome dd10265
some fixes for path traversal
chargome 6f73a58
add ui elements
chargome cd95fbd
show welcome page as previous page for root pages
chargome 83b2029
allow overriding pagination through frontmatter
chargome fbd12a4
enable this stuff on dev docs
chargome 3854128
increase top margin for pagination
chargome 6582c1d
refactor ternaries
chargome 8aab1f7
remove transitions
chargome ccec999
rename sorting func
chargome 8a44845
Update src/components/sidebar/sidebarLinks.tsx
chargome 23e0622
update border color on dark mode
chargome 0e1c2cd
add frontmatter documentation
chargome File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,6 @@ | ||
| --- | ||
| title: Application | ||
| sidebar_order: 30 | ||
| --- | ||
|
|
||
| <PageGrid /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| --- | ||
| title: Developing Integrations | ||
| sidebar_order: 80 | ||
| sidebar_order: 90 | ||
| --- | ||
|
|
||
| <PageGrid /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| --- | ||
| title: Services | ||
| sidebar_order: 60 | ||
| sidebar_order: 80 | ||
| --- | ||
|
|
||
| <PageGrid /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| --- | ||
| title: "Sentry CLI" | ||
| sidebar_order: 4000 | ||
| sidebar_order: 50 | ||
| keywords: | ||
| [ | ||
| "cli", | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| import {DoubleArrowLeftIcon, DoubleArrowRightIcon} from '@radix-ui/react-icons'; | ||
|
|
||
| import {PaginationNavNode} from 'sentry-docs/types/paginationNavNode'; | ||
|
|
||
| export function PaginationNav({ | ||
| node, | ||
| title, | ||
| }: { | ||
| node: PaginationNavNode; | ||
| title: 'Previous' | 'Next'; | ||
| }) { | ||
| return ( | ||
| <a href={`/${node.path}`} className="no-underline group"> | ||
| <div | ||
| className={`py-3 px-4 border-2 rounded-md transition-colors hover:[border-color:var(--accent)] ${ | ||
| title === 'Previous' ? 'text-left' : 'text-right' | ||
| }`} | ||
| > | ||
| <div className="text-sm [color:var(--foreground)]">{title}</div> | ||
| <div | ||
| className={`flex items-center gap-1 font-[500] ${ | ||
| title === 'Previous' ? 'justify-start' : 'justify-end' | ||
| }`} | ||
| > | ||
| {title === 'Previous' && ( | ||
| <div className="transition-transform group-hover:-translate-x-1"> | ||
chargome marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| <DoubleArrowLeftIcon /> | ||
| </div> | ||
| )} | ||
|
|
||
| {node.title} | ||
|
|
||
| {title === 'Next' && ( | ||
| <div className="transition-transform group-hover:translate-x-1"> | ||
| <DoubleArrowRightIcon /> | ||
| </div> | ||
| )} | ||
| </div> | ||
| </div> | ||
| </a> | ||
| ); | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.