-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
93bf6f5
commit 0ba81f7
Showing
26 changed files
with
163 additions
and
61 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
--- |
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
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
35 changes: 35 additions & 0 deletions
35
packages/docs-site/src/components/CustomStarlightPageTitle.astro
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,35 @@ | ||
--- | ||
// import { PAGE_TITLE_ID } from "@astrojs/starlight/constants"; | ||
import type { Props } from "@astrojs/starlight/props"; | ||
// not acutally exported...? | ||
const PAGE_TITLE_ID = '_top'; | ||
--- | ||
|
||
<div> | ||
<h1 id={PAGE_TITLE_ID}> | ||
{Astro.props.entry.data.title} | ||
{Astro.props.entry.data.npmPackage && <div class="page-title-badges"> | ||
<a href=`https://www.npmjs.com/package/${Astro.props.entry.data.npmPackage}`> | ||
<img src=`https://img.shields.io/npm/v/${Astro.props.entry.data.npmPackage}?label=${encodeURIComponent(Astro.props.entry.data.npmPackage)}&color=9B55F5` /> | ||
</a> | ||
</div>} | ||
</h1> | ||
</div> | ||
|
||
<style> | ||
h1 { | ||
margin-top: 1rem; | ||
font-size: var(--sl-text-h1); | ||
line-height: var(--sl-line-height-headings); | ||
font-weight: 600; | ||
color: var(--sl-color-white); | ||
} | ||
.page-title-badges { | ||
margin-top: 8px; | ||
&:empty { | ||
display: none; | ||
} | ||
} | ||
</style> |
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 |
---|---|---|
@@ -1,9 +1,15 @@ | ||
import { defineCollection } from 'astro:content'; | ||
import { defineCollection, z } from 'astro:content'; | ||
import { docsSchema } from '@astrojs/starlight/schema'; | ||
import { blogSchema } from 'starlight-blog/schema'; | ||
|
||
export const collections = { | ||
docs: defineCollection({ | ||
schema: docsSchema({ extend: (context) => blogSchema(context) }), | ||
schema: docsSchema({ | ||
extend: (context) => ( | ||
blogSchema(context).merge(z.object({ | ||
npmPackage: z.string().optional(), | ||
})) | ||
), | ||
}), | ||
}), | ||
}; |
1 change: 1 addition & 0 deletions
1
packages/docs-site/src/content/docs/docs/integrations/astro.mdx
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
1 change: 1 addition & 0 deletions
1
packages/docs-site/src/content/docs/docs/integrations/nextjs.mdx
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
1 change: 1 addition & 0 deletions
1
packages/docs-site/src/content/docs/docs/integrations/remix.mdx
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
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
1 change: 1 addition & 0 deletions
1
packages/docs-site/src/content/docs/docs/plugins/encrypted-vault.mdx
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
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,9 @@ | ||
Check out the [docs](https://dmno.dev/docs/platforms/netlify/) for more information on how to use [DMNO](https://dmno.dev) with [Netlify](https://netlify.com/). | ||
|
||
*** THIS IS PREVIEW SOFTWARE AND SUBJECT TO RAPID CHANGE *** | ||
|
||
If you have any questions, please reach out to us on [Discord](https://chat.dmno.dev). | ||
|
||
---- | ||
|
||
# @dmno/netlify-platform [![npm](https://img.shields.io/npm/v/@dmno/netlify-platform)](https://www.npmjs.com/package/@dmno/netlify-platform) |
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,9 @@ | ||
Check out the [docs](https://dmno.dev/docs/platforms/vercel/) for more information on how to use [DMNO](https://dmno.dev) with [Vercel](https://vercel.com/). | ||
|
||
*** THIS IS PREVIEW SOFTWARE AND SUBJECT TO RAPID CHANGE *** | ||
|
||
If you have any questions, please reach out to us on [Discord](https://chat.dmno.dev). | ||
|
||
---- | ||
|
||
# @dmno/vercel-platform [![npm](https://img.shields.io/npm/v/@dmno/vercel-platform)](https://www.npmjs.com/package/@dmno/vercel-platform) |
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
Oops, something went wrong.