-
Notifications
You must be signed in to change notification settings - Fork 45
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
200 changed files
with
14,491 additions
and
5,659 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 @@ | ||
defaults and supports es6-module |
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 |
---|---|---|
|
@@ -26,7 +26,7 @@ jobs: | |
- name: Deploy to Netlify | ||
uses: nwtgck/[email protected] | ||
with: | ||
publish-dir: './docs/.vitepress/dist' | ||
publish-dir: './dist' | ||
production-branch: main | ||
deploy-message: 'deploy from github actions' | ||
enable-pull-request-comment: false | ||
|
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,2 +1,3 @@ | ||
**/*.mdx | ||
changelog.md | ||
package.json |
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 |
---|---|---|
@@ -0,0 +1,96 @@ | ||
import rehypeExternalLinks from 'rehype-external-links' | ||
import { browserslistToTargets } from 'lightningcss' | ||
import svelteSvg from '@poppanator/sveltekit-svg' | ||
import remarkSectionize from 'remark-sectionize' | ||
import { defineConfig } from 'astro/config' | ||
import compress from '@playform/compress' | ||
import { fileURLToPath } from 'node:url' | ||
import browserslist from 'browserslist' | ||
import sitemap from '@astrojs/sitemap' | ||
import svelte from '@astrojs/svelte' | ||
import mdx from '@astrojs/mdx' | ||
import path from 'node:path' | ||
|
||
import { remarkHeadings } from './docs/plugins/remark-headings' | ||
import { colorTheme } from './docs/utils/shiki-theme' | ||
|
||
let dirname = fileURLToPath(path.dirname(import.meta.url)) | ||
|
||
export default defineConfig({ | ||
markdown: { | ||
shikiConfig: { | ||
transformers: [ | ||
{ | ||
pre: node => { | ||
delete node.properties.tabindex | ||
delete node.properties.style | ||
}, | ||
}, | ||
], | ||
theme: colorTheme, | ||
}, | ||
rehypePlugins: [ | ||
[ | ||
rehypeExternalLinks, | ||
{ | ||
rel: ['noopener', 'noreferrer'], | ||
target: '_blank', | ||
}, | ||
], | ||
], | ||
remarkPlugins: [remarkSectionize, remarkHeadings], | ||
}, | ||
vite: { | ||
css: { | ||
lightningcss: { | ||
targets: browserslistToTargets( | ||
browserslist(null, { | ||
config: path.join(dirname, './.browserslistrc'), | ||
}), | ||
), | ||
}, | ||
transformer: 'lightningcss', | ||
}, | ||
plugins: [ | ||
// @ts-ignore | ||
svelteSvg(), | ||
], | ||
}, | ||
integrations: [ | ||
compress({ | ||
JavaScript: true, | ||
Image: true, | ||
CSS: false, | ||
HTML: true, | ||
SVG: true, | ||
}), | ||
svelte({ | ||
compilerOptions: { | ||
cssHash: ({ hash, css }) => `s-${hash(css)}`, | ||
discloseVersion: false, | ||
}, | ||
}), | ||
sitemap(), | ||
mdx(), | ||
], | ||
prefetch: { | ||
defaultStrategy: 'viewport', | ||
prefetchAll: true, | ||
}, | ||
build: { | ||
inlineStylesheets: 'always', | ||
format: 'file', | ||
}, | ||
experimental: { | ||
clientPrerender: true, | ||
}, | ||
publicDir: path.join(dirname, './docs/public'), | ||
server: { | ||
port: 3000, | ||
host: true, | ||
}, | ||
srcDir: path.join(dirname, './docs'), | ||
root: path.join(dirname, './docs'), | ||
site: 'https://perfectionist.dev', | ||
compressHTML: true, | ||
}) |
Oops, something went wrong.