-
Notifications
You must be signed in to change notification settings - Fork 0
docs updates #15
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
docs updates #15
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
c06b8bc
links in nav header
skarim 8c86909
add announcement banner
skarim f545521
docs updates
skarim 5bb31d6
updated feedback url
skarim 97e3fea
proofreading
skarim 1e3b9ee
updated skill instructions
skarim 19e3549
prevent duplicate event listeners
skarim 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
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
Binary file removed
BIN
-62.4 KB
docs/src/assets/screenshots/merge-box-failing-stack-requirements.png
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,172 @@ | ||
| --- | ||
| import Default from '@astrojs/starlight/components/SocialIcons.astro'; | ||
| const base = import.meta.env.BASE_URL; | ||
| --- | ||
|
|
||
| <nav class="custom-header-links" aria-label="Primary navigation"> | ||
| <a href={`${base}introduction/overview/`} class="header-link">Overview</a> | ||
| <a href={`${base}getting-started/quick-start/`} class="header-link">Quick Start</a> | ||
| <a href={`${base}reference/cli/`} class="header-link">CLI</a> | ||
| <a href={`${base}guides/ui/`} class="header-link">UI</a> | ||
| <a href={`${base}faq/`} class="header-link">FAQ</a> | ||
| </nav> | ||
|
|
||
| <!-- Hamburger menu for narrow viewports where full nav would overflow --> | ||
| <div class="tablet-nav-wrapper"> | ||
| <button class="hamburger-btn" aria-label="Toggle navigation menu" aria-expanded="false" aria-controls="tablet-nav-dropdown"> | ||
| <span class="hamburger-icon" aria-hidden="true"></span> | ||
| </button> | ||
| <nav class="tablet-dropdown" id="tablet-nav-dropdown" aria-label="Primary navigation" hidden> | ||
| <a href={`${base}introduction/overview/`} class="dropdown-link">Overview</a> | ||
| <a href={`${base}getting-started/quick-start/`} class="dropdown-link">Quick Start</a> | ||
| <a href={`${base}reference/cli/`} class="dropdown-link">CLI</a> | ||
| <a href={`${base}guides/ui/`} class="dropdown-link">UI</a> | ||
| <a href={`${base}faq/`} class="dropdown-link">FAQ</a> | ||
| </nav> | ||
| </div> | ||
|
|
||
| <Default {...Astro.props} /> | ||
|
|
||
| <style> | ||
| .custom-header-links { | ||
| display: flex; | ||
| align-items: center; | ||
| gap: 1rem; | ||
| margin-right: 1rem; | ||
| } | ||
|
|
||
| .header-link { | ||
| color: var(--sl-color-text); | ||
| text-decoration: none; | ||
| font-size: 0.875rem; | ||
| font-weight: 500; | ||
| padding: 0.25rem 0.75rem; | ||
| border-radius: 4px; | ||
| transition: color 0.15s ease, background-color 0.15s ease; | ||
| white-space: nowrap; | ||
| } | ||
|
|
||
| .header-link:hover { | ||
| color: var(--sl-color-text-accent); | ||
| background-color: rgba(110, 118, 129, 0.1); | ||
| } | ||
|
|
||
| /* Tablet navigation — hidden by default; shown via global CSS at narrow widths */ | ||
| .tablet-nav-wrapper { | ||
| display: none; | ||
| position: relative; | ||
| margin-right: 0.5rem; | ||
| } | ||
|
|
||
| .hamburger-btn { | ||
| background: none; | ||
| border: none; | ||
| cursor: pointer; | ||
| padding: 0.5rem; | ||
| color: var(--sl-color-text); | ||
| border-radius: 4px; | ||
| min-height: 44px; | ||
| min-width: 44px; | ||
| display: inline-flex; | ||
| align-items: center; | ||
| justify-content: center; | ||
| } | ||
|
|
||
| .hamburger-btn:hover { | ||
| background-color: rgba(110, 118, 129, 0.1); | ||
| } | ||
|
|
||
| .hamburger-icon { | ||
| display: block; | ||
| width: 20px; | ||
| height: 2px; | ||
| background: currentColor; | ||
| position: relative; | ||
| } | ||
|
|
||
| .hamburger-icon::before, | ||
| .hamburger-icon::after { | ||
| content: ''; | ||
| display: block; | ||
| width: 20px; | ||
| height: 2px; | ||
| background: currentColor; | ||
| position: absolute; | ||
| left: 0; | ||
| } | ||
|
|
||
| .hamburger-icon::before { top: -6px; } | ||
| .hamburger-icon::after { top: 6px; } | ||
|
|
||
| .tablet-dropdown { | ||
| position: absolute; | ||
| top: calc(100% + 0.5rem); | ||
| right: 0; | ||
| background: var(--sl-color-bg-nav, #161b22); | ||
| border: 1px solid rgba(48, 54, 61, 0.8); | ||
| border-radius: 8px; | ||
| padding: 0.5rem 0; | ||
| min-width: 180px; | ||
| z-index: 100; | ||
| box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); | ||
| } | ||
|
|
||
| .dropdown-link { | ||
| display: block; | ||
| padding: 0.625rem 1rem; | ||
| color: var(--sl-color-text); | ||
| text-decoration: none; | ||
| font-size: 0.875rem; | ||
| font-weight: 500; | ||
| transition: background-color 0.15s ease; | ||
| } | ||
|
|
||
| .dropdown-link:hover { | ||
| background-color: rgba(110, 118, 129, 0.1); | ||
| color: var(--sl-color-text-accent); | ||
| } | ||
| </style> | ||
|
|
||
| <script> | ||
| let hamburgerAbort: AbortController | undefined; | ||
|
|
||
| function initHamburgerMenu() { | ||
| hamburgerAbort?.abort(); | ||
| hamburgerAbort = new AbortController(); | ||
| const { signal } = hamburgerAbort; | ||
|
|
||
| const hamburgerBtn = document.querySelector<HTMLButtonElement>('.hamburger-btn'); | ||
| const tabletDropdown = document.querySelector<HTMLElement>('.tablet-dropdown'); | ||
|
|
||
| if (!hamburgerBtn || !tabletDropdown) return; | ||
|
|
||
| hamburgerBtn.addEventListener('click', (e) => { | ||
| e.stopPropagation(); | ||
| const isOpen = hamburgerBtn.getAttribute('aria-expanded') === 'true'; | ||
| hamburgerBtn.setAttribute('aria-expanded', String(!isOpen)); | ||
| tabletDropdown.hidden = isOpen; | ||
| if (!isOpen) { | ||
| const firstLink = tabletDropdown.querySelector<HTMLAnchorElement>('.dropdown-link'); | ||
| firstLink?.focus(); | ||
| } | ||
| }, { signal }); | ||
|
|
||
| document.addEventListener('click', (e) => { | ||
| if (!hamburgerBtn.contains(e.target as Node) && !tabletDropdown.contains(e.target as Node)) { | ||
| hamburgerBtn.setAttribute('aria-expanded', 'false'); | ||
| tabletDropdown.hidden = true; | ||
| } | ||
| }, { signal }); | ||
|
|
||
| document.addEventListener('keydown', (e) => { | ||
| if (e.key === 'Escape' && hamburgerBtn.getAttribute('aria-expanded') === 'true') { | ||
| hamburgerBtn.setAttribute('aria-expanded', 'false'); | ||
| tabletDropdown.hidden = true; | ||
| hamburgerBtn.focus(); | ||
| } | ||
| }, { signal }); | ||
| } | ||
|
|
||
| initHamburgerMenu(); | ||
| document.addEventListener('astro:page-load', initHamburgerMenu); | ||
| </script> | ||
skarim marked this conversation as resolved.
Show resolved
Hide resolved
|
||
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,10 +1,18 @@ | ||
| import { defineCollection } from 'astro:content'; | ||
| import { defineCollection, z } from 'astro:content'; | ||
| import { docsLoader } from '@astrojs/starlight/loaders'; | ||
| import { docsSchema } from '@astrojs/starlight/schema'; | ||
|
|
||
| export const collections = { | ||
| docs: defineCollection({ | ||
| loader: docsLoader(), | ||
| schema: docsSchema(), | ||
| schema: docsSchema({ | ||
| extend: z.object({ | ||
| banner: z.object({ | ||
| content: z.string(), | ||
| }).default({ | ||
| content: 'Stacked PRs is currently in private preview. <a href="https://gh.io/stacksbeta">Sign up for the waitlist →</a>', | ||
| }), | ||
| }), | ||
| }), | ||
| }), | ||
| }; |
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.