Skip to content

Commit

Permalink
chore: init commit
Browse files Browse the repository at this point in the history
  • Loading branch information
lxchapu committed Apr 26, 2024
0 parents commit 37f9027
Show file tree
Hide file tree
Showing 109 changed files with 8,790 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
24 changes: 24 additions & 0 deletions .gitignore
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/
4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.astro/
node_modules/
dist/
pnpm-lock.yaml
5 changes: 5 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"printWidth": 100,
"semi": false,
"singleQuote": true
}
4 changes: 4 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"recommendations": ["astro-build.astro-vscode"],
"unwantedRecommendations": []
}
11 changes: 11 additions & 0 deletions .vscode/launch.json
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"
}
]
}
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Gyoza

## Features

- 支持 Tailwind CSS
31 changes: 31 additions & 0 deletions astro.config.js
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: '返回正文' },
},
})
46 changes: 46 additions & 0 deletions package.json
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"
}
}
Loading

0 comments on commit 37f9027

Please sign in to comment.