aboutsummaryrefslogtreecommitdiff
path: root/examples/with-markdown-plugins/astro.config.mjs
diff options
context:
space:
mode:
authorGravatar Fred K. Schott <fkschott@gmail.com> 2021-08-23 14:07:03 -0700
committerGravatar GitHub <noreply@github.com> 2021-08-23 14:07:03 -0700
commitf9cd031033d03a5f22b4a1272bbe97f92b845ef7 (patch)
treed8725a5227213afa807c230b56d7b21efeb16c2b /examples/with-markdown-plugins/astro.config.mjs
parent010c71e16ad885376dea548a7a0f8980174a207e (diff)
downloadastro-f9cd031033d03a5f22b4a1272bbe97f92b845ef7.tar.gz
astro-f9cd031033d03a5f22b4a1272bbe97f92b845ef7.tar.zst
astro-f9cd031033d03a5f22b4a1272bbe97f92b845ef7.zip
Add zod schema validation (#1198)
* add zod schema validation * update pageUrlFormat config name * add trailing slash support to config
Diffstat (limited to 'examples/with-markdown-plugins/astro.config.mjs')
-rw-r--r--examples/with-markdown-plugins/astro.config.mjs26
1 files changed, 12 insertions, 14 deletions
diff --git a/examples/with-markdown-plugins/astro.config.mjs b/examples/with-markdown-plugins/astro.config.mjs
index e02cde821..690d8f434 100644
--- a/examples/with-markdown-plugins/astro.config.mjs
+++ b/examples/with-markdown-plugins/astro.config.mjs
@@ -1,12 +1,14 @@
-export default {
- // projectRoot: '.', // Where to resolve all URLs relative to. Useful if you have a monorepo project.
- // pages: './src/pages', // Path to Astro components, pages, and data
- // dist: './dist', // When running `astro build`, path to final static output
- // public: './public', // A folder of static files Astro will copy to the root. Useful for favicons, images, and other files that don’t need processing.
- buildOptions: {
- site: 'http://example.com', // Your public domain, e.g.: https://my-site.dev/. Used to generate sitemaps and canonical URLs.
- // sitemap: true, // Generate sitemap (set to "false" to disable)
- },
+// Full Astro Configuration API Documentation:
+// https://docs.astro.build/reference/configuration-reference
+
+// @type-check enabled!
+// VSCode and other TypeScript-enabled text editors will provide auto-completion,
+// helpful tooltips, and warnings if your exported object is invalid.
+// You can disable this by removing "@ts-check" and `@type` comments below.
+
+// @ts-check
+export default /** @type {import('astro').AstroUserConfig} */ ({
+ // Enable Custom Markdown options, plugins, etc.
markdownOptions: {
remarkPlugins: ['remark-code-titles', 'remark-slug', ['remark-autolink-headings', { behavior: 'prepend' }]],
rehypePlugins: [
@@ -14,8 +16,4 @@ export default {
['rehype-add-classes', { 'h1,h2,h3': 'title' }],
],
},
- devOptions: {
- // port: 3000, // The port to run the dev server on.
- // tailwindConfig: '', // Path to tailwind.config.js if used, e.g. './tailwind.config.js'
- },
-};
+});