Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: migrate docs to astro #8

Merged
merged 7 commits into from
Aug 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ coverage/

.nx/cache
.nx/workspace-data

demo.old
4 changes: 1 addition & 3 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
coverage
dist
node_modules
.nuxt
.output
pnpm-lock.yaml
/.nx/workspace-data
/.nx/workspace-data
10 changes: 9 additions & 1 deletion .prettierrc.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ import config from "@lehoczky/prettier-config"
/** @type {import("prettier").Options} */
export default {
...config,
plugins: ["prettier-plugin-tailwindcss"],
plugins: ["prettier-plugin-astro", "prettier-plugin-tailwindcss"],
tailwindConfig: "./packages/demo/tailwind.config.ts",
overrides: [
{
files: "*.astro",
options: {
parser: "astro",
},
},
],
}
2 changes: 1 addition & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"esbenp.prettier-vscode",
"stylelint.vscode-stylelint",
"streetsidesoftware.code-spell-checker",
"bierner.comment-tagged-templates",
"astro-build.astro-vscode",
"vitest.explorer"
]
}
12 changes: 11 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,15 @@
},
"css.validate": false,
"stylelint.validate": ["css", "vue"],
"cSpell.words": ["octo", "octocat", "postcss", "Shiki", "shikiji", "vueuse"]
"cSpell.words": [
"astro",
"astrojs",
"clsx",
"octo",
"octocat",
"postcss",
"Shiki",
"shikiji",
"vueuse"
]
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@
"postcss": "^8.4.40",
"postcss-html": "^1.7.0",
"prettier": "^3.3.3",
"prettier-plugin-astro": "^0.14.1",
"prettier-plugin-tailwindcss": "^0.5.14",
"stylelint": "^16.8.1",
"stylelint-config-recommended-vue": "^1.5.0",
"stylelint-config-standard": "^36.0.1",
"typescript": "~5.4.5"
},
"nx": {},
"packageManager": "pnpm@9.6.0"
"packageManager": "pnpm@9.7.0"
}
30 changes: 23 additions & 7 deletions packages/demo/.gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,24 @@
node_modules
*.log*
.nuxt
.nitro
.cache
.output
# 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
dist
.env.production

# macOS-specific files
.DS_Store

# jetbrains setting folder
.idea/
21 changes: 0 additions & 21 deletions packages/demo/assets/css/main.css

This file was deleted.

14 changes: 14 additions & 0 deletions packages/demo/astro.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import tailwind from "@astrojs/tailwind"
import { defineConfig } from "astro/config"

// https://astro.build/config
export default defineConfig({
integrations: [
tailwind({
applyBaseStyles: false,
}),
],
devToolbar: {
enabled: false,
},
})
103 changes: 0 additions & 103 deletions packages/demo/code-examples.ts

This file was deleted.

22 changes: 0 additions & 22 deletions packages/demo/components/CodeBlock.vue

This file was deleted.

16 changes: 0 additions & 16 deletions packages/demo/components/DemoFrame.vue

This file was deleted.

28 changes: 0 additions & 28 deletions packages/demo/components/DemoSection.vue

This file was deleted.

57 changes: 0 additions & 57 deletions packages/demo/components/GithubBadge.vue

This file was deleted.

8 changes: 0 additions & 8 deletions packages/demo/components/GithubLink.vue

This file was deleted.

8 changes: 0 additions & 8 deletions packages/demo/components/Icon/Github.vue

This file was deleted.

Loading
Loading