-
Notifications
You must be signed in to change notification settings - Fork 1
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
Showing
16 changed files
with
61 additions
and
44 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
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
{ | ||
"name": "docs", | ||
"type": "module", | ||
"version": "0.0.1", | ||
"version": "0.0.0", | ||
"license": "UNLICENSED", | ||
"private": true, | ||
"scripts": { | ||
"dev": "astro dev", | ||
"start": "astro dev", | ||
|
@@ -36,5 +38,6 @@ | |
"eslint-plugin-astro": "~1.3.1", | ||
"prettier-plugin-astro": "~0.14.1", | ||
"typescript": "~5.7.2" | ||
} | ||
}, | ||
"packageManager": "[email protected]" | ||
} |
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 @@ | ||
User-agent: * | ||
Allow: / |
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 @@ | ||
export const SITE = "https://genshi.samrith.dev"; |
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 |
---|---|---|
@@ -1,6 +1,5 @@ | ||
--- | ||
title: Using with React | ||
description: Learn how to use Genshi with React | ||
sidebar: | ||
order: -1 | ||
--- | ||
|
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,6 +1,5 @@ | ||
--- | ||
title: Core concepts | ||
description: The core concepts of Genshi which make it unique. | ||
sidebar: | ||
order: 0 | ||
--- | ||
|
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 |
---|---|---|
@@ -1,6 +1,5 @@ | ||
--- | ||
title: Core | ||
description: API reference for the core package | ||
prev: false | ||
next: false | ||
sidebar: | ||
|
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,6 +1,5 @@ | ||
--- | ||
title: React | ||
description: API reference for the React package | ||
prev: false | ||
next: false | ||
sidebar: | ||
|
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,45 @@ | ||
--- | ||
import type { Props } from "@astrojs/starlight/props"; | ||
import { SITE } from "../constants"; | ||
const { | ||
entry: { id, data }, | ||
} = Astro.props; | ||
const BASE_TITLE = "Genshi"; | ||
const DESCRIPTION = | ||
"Simple, composable and effective state management for JavaScript"; | ||
const META_IMAGE = `${SITE}/banner.png`; | ||
let title = data.title; | ||
if (!id) { | ||
title = `${BASE_TITLE} - ${DESCRIPTION}`; | ||
} else { | ||
title = `${title} / ${BASE_TITLE}`; | ||
} | ||
--- | ||
|
||
<!-- HTML Meta Tags --> | ||
<title>{title}</title> | ||
<link rel="icon" href="/favicon.svg" sizes="any" type="image/svg+xml" /> | ||
<link rel="sitemap" href="/sitemap-index.xml" /> | ||
<meta name="description" content={DESCRIPTION} /> | ||
|
||
<!-- Facebook Meta Tags --> | ||
<meta property="og:url" content={SITE} /> | ||
<meta property="og:type" content="website" /> | ||
<meta property="og:title" content={title} /> | ||
<meta property="og:description" content={DESCRIPTION} /> | ||
<meta property="og:image" content={META_IMAGE} /> | ||
|
||
<!-- Twitter Meta Tags --> | ||
<meta name="twitter:card" content="summary_large_image" /> | ||
<meta property="twitter:domain" content="genshi.samrith.dev" /> | ||
<meta property="twitter:url" content={SITE} /> | ||
<meta name="twitter:title" content={title} /> | ||
<meta name="twitter:description" content={DESCRIPTION} /> | ||
<meta name="twitter:image" content={META_IMAGE} /> | ||
|
||
<slot /> |
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 |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
"author": "Samrith Shankar <[email protected]>", | ||
"license": "MIT", | ||
"homepage": "https://github.com/samrith-s/genshi#readme", | ||
"private": true, | ||
"type": "module", | ||
"source": "src/index.ts", | ||
"module": "lib/index.js", | ||
|
@@ -59,5 +60,5 @@ | |
"vite-plugin-dts": "~3.9.1", | ||
"vitest": "~1.6.0" | ||
}, | ||
"packageManager": "yarn@4.5.3" | ||
"packageManager": "yarn@4.6.0" | ||
} |