forked from lxchapu/astro-gyoza
-
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.
- Loading branch information
0 parents
commit 37f9027
Showing
109 changed files
with
8,790 additions
and
0 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 @@ | ||
* text=auto eol=lf |
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,24 @@ | ||
# build output | ||
dist/ | ||
|
||
# generated types | ||
.astro/ | ||
|
||
# dependencies | ||
node_modules/ | ||
|
||
# logs | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
|
||
# environment variables | ||
.env | ||
.env.production | ||
|
||
# macOS-specific files | ||
.DS_Store | ||
|
||
# jetbrains setting folder | ||
.idea/ |
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,4 @@ | ||
.astro/ | ||
node_modules/ | ||
dist/ | ||
pnpm-lock.yaml |
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,5 @@ | ||
{ | ||
"printWidth": 100, | ||
"semi": false, | ||
"singleQuote": true | ||
} |
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,4 @@ | ||
{ | ||
"recommendations": ["astro-build.astro-vscode"], | ||
"unwantedRecommendations": [] | ||
} |
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,11 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"command": "./node_modules/.bin/astro dev", | ||
"name": "Development server", | ||
"request": "launch", | ||
"type": "node-terminal" | ||
} | ||
] | ||
} |
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,5 @@ | ||
# Gyoza | ||
|
||
## Features | ||
|
||
- 支持 Tailwind CSS |
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,31 @@ | ||
import { defineConfig } from 'astro/config' | ||
import { remarkReadingTime } from './src/plugins/remarkReadingTime' | ||
import { rehypeCodeBlock } from './src/plugins/rehypeCodeBlock' | ||
import { rehypeCodeHighlight } from './src/plugins/rehypeCodeHighlight' | ||
import { rehypeImage } from './src/plugins/rehypeImage' | ||
import { rehypeLink } from './src/plugins/rehypeLink' | ||
import { rehypeHeading } from './src/plugins/rehypeHeading' | ||
import tailwind from '@astrojs/tailwind' | ||
import react from '@astrojs/react' | ||
import sitemap from '@astrojs/sitemap' | ||
import { rehypeHeadingIds } from '@astrojs/markdown-remark' | ||
|
||
// https://astro.build/config | ||
export default defineConfig({ | ||
site: 'https://gyoza.lxchapu.com', | ||
integrations: [tailwind(), react(), sitemap()], | ||
markdown: { | ||
syntaxHighlight: false, | ||
smartypants: false, | ||
remarkPlugins: [remarkReadingTime], | ||
rehypePlugins: [ | ||
rehypeHeadingIds, | ||
rehypeLink, | ||
rehypeImage, | ||
rehypeHeading, | ||
rehypeCodeBlock, | ||
rehypeCodeHighlight, | ||
], | ||
remarkRehype: { footnoteLabel: '参考', footnoteBackLabel: '返回正文' }, | ||
}, | ||
}) |
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,46 @@ | ||
{ | ||
"name": "astr-gyoza", | ||
"type": "module", | ||
"version": "0.0.1", | ||
"scripts": { | ||
"dev": "astro dev", | ||
"start": "astro dev", | ||
"build": "astro check && astro build", | ||
"preview": "astro preview", | ||
"astro": "astro", | ||
"format": "prettier --write ." | ||
}, | ||
"dependencies": { | ||
"@astrojs/check": "^0.5.10", | ||
"@astrojs/markdown-remark": "^5.1.0", | ||
"@astrojs/react": "^3.3.0", | ||
"@astrojs/rss": "^4.0.5", | ||
"@astrojs/sitemap": "^3.1.3", | ||
"@astrojs/tailwind": "^5.1.0", | ||
"@radix-ui/react-dialog": "^1.0.5", | ||
"@shikijs/rehype": "^1.3.0", | ||
"@tailwindcss/typography": "^0.5.12", | ||
"@types/chroma-js": "^2.4.4", | ||
"@types/lodash-es": "^4.17.12", | ||
"@types/react": "^18.2.78", | ||
"@types/react-dom": "^18.2.25", | ||
"astro": "^4.6.1", | ||
"chroma-js": "^2.4.2", | ||
"clsx": "^2.1.0", | ||
"framer-motion": "^11.1.5", | ||
"hastscript": "^9.0.0", | ||
"jotai": "^2.8.0", | ||
"lodash-es": "^4.17.21", | ||
"mdast-util-to-string": "^4.0.0", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"reading-time": "^1.5.0", | ||
"tailwindcss": "^3.4.3", | ||
"typescript": "^5.4.5", | ||
"unist-util-visit": "^5.0.0" | ||
}, | ||
"devDependencies": { | ||
"prettier": "^3.2.5", | ||
"prettier-plugin-astro": "^0.13.0" | ||
} | ||
} |
Oops, something went wrong.