This repository has been archived by the owner on Aug 8, 2024. It is now read-only.
forked from mearashadowfax/ScrewFast
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from spryker-community/feature/docs-same-design
Implements design sharing with docs section
- Loading branch information
Showing
8 changed files
with
2,155 additions
and
3,654 deletions.
There are no files selected for viewing
This file contains 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
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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 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 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,83 @@ | ||
--- | ||
// Built-in CSS styles. | ||
import '../../../../node_modules/@astrojs/starlight/style/props.css'; | ||
import '../../../styles/starlight/reset.css'; | ||
import '../../../../node_modules/@astrojs/starlight/style/shiki.css'; | ||
import '../../../../node_modules/@astrojs/starlight/style/util.css'; | ||
import MainLayout from "@/layouts/MainLayout.astro"; | ||
import ContentPanel from "@astrojs/starlight/components/ContentPanel.astro"; | ||
import DraftContentNotice from "@astrojs/starlight/components/DraftContentNotice.astro"; | ||
import FallbackContentNotice from "@astrojs/starlight/components/FallbackContentNotice.astro"; | ||
import Footer from "@astrojs/starlight/components/Footer.astro"; | ||
import MarkdownContent from '@astrojs/starlight/components/MarkdownContent.astro'; | ||
import PageTitle from "@astrojs/starlight/components/PageTitle.astro"; | ||
// Remark component CSS (needs to override `MarkdownContent.astro`) | ||
import '../../../../node_modules/@astrojs/starlight/style/asides.css'; | ||
// Important that this is the last import so it can override built-in styles. | ||
import 'virtual:starlight/user-css'; | ||
import Hero from "@astrojs/starlight/components/Hero.astro"; | ||
import Banner from "@astrojs/starlight/components/Banner.astro"; | ||
import PageSidebar from "@astrojs/starlight/components/PageSidebar.astro"; | ||
import TwoColumnContent from "@astrojs/starlight/components/TwoColumnContent.astro"; | ||
import MobileMenuToggle from "@astrojs/starlight/components/MobileMenuToggle.astro"; | ||
// disables page-sidebar (the right-side one) | ||
Astro.props.toc = false; | ||
const pagefindEnabled = | ||
Astro.props.entry.slug !== '404' && | ||
!Astro.props.entry.slug.endsWith('/404') && | ||
Astro.props.entry.data.pagefind !== false; | ||
--- | ||
{/* NOTE: Do not use any "id" attribute since it hangs up the application (keeps websocket connection open) */} | ||
|
||
<MainLayout> | ||
|
||
|
||
<div class="mx-auto max-w-screen-2xl px-4 sm:px-6 lg:px-8"> | ||
<TwoColumnContent {...Astro.props }> | ||
<!--<PageSidebar slot="right-sidebar" {...Astro.props} />--> | ||
<main | ||
data-pagefind-body={pagefindEnabled} | ||
lang={Astro.props.entryMeta.lang} | ||
dir={Astro.props.entryMeta.dir} | ||
> | ||
{/* TODO: Revisit how this logic flows. */} | ||
<Banner {...Astro.props} /> | ||
{ | ||
Astro.props.entry.data.hero ? ( | ||
<ContentPanel {...Astro.props}> | ||
<Hero {...Astro.props} /> | ||
<MarkdownContent {...Astro.props}> | ||
<slot /> | ||
</MarkdownContent> | ||
<Footer {...Astro.props} /> | ||
</ContentPanel> | ||
) : ( | ||
<> | ||
<ContentPanel {...Astro.props}> | ||
<PageTitle {...Astro.props} /> | ||
{Astro.props.entry.data.draft && <DraftContentNotice {...Astro.props} />} | ||
{Astro.props.isFallback && <FallbackContentNotice {...Astro.props} />} | ||
</ContentPanel> | ||
<ContentPanel {...Astro.props}> | ||
<MarkdownContent {...Astro.props}> | ||
<slot /> | ||
</MarkdownContent> | ||
<Footer {...Astro.props} /> | ||
</ContentPanel> | ||
</> | ||
) | ||
} | ||
</main> | ||
</TwoColumnContent> | ||
</div> | ||
|
||
</MainLayout> | ||
|
This file contains 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 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 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,12 @@ | ||
html { | ||
color-scheme: dark; | ||
} | ||
|
||
html[data-theme='light'] { | ||
color-scheme: light; | ||
} | ||
|
||
body { | ||
color: var(--sl-color-text); | ||
background-color: var(--sl-color-bg); | ||
} |