Skip to content

Commit

Permalink
docs: migrate docs to astro (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lehoczky authored Aug 10, 2024
1 parent 653419a commit c9609bb
Show file tree
Hide file tree
Showing 72 changed files with 3,457 additions and 7,414 deletions.
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

0 comments on commit c9609bb

Please sign in to comment.