Replies: 1 comment 3 replies
-
You can simply write data loader files instead - https://vitepress.dev/guide/data-loading#createcontentloader You don't need to write a separate script to generate a summary page. However, if you want to write a separate script, you'll need to use something like |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I created a script that I'm looking to further integrate into my vitePress dev process "statusCheck.mjs".
Initially, I added the script into my package.json file, so that it executes upon calling docs:dev.
package.json
But then I realised how it would be nice to have it execute when saving my config.js file, so I updated my config.js file like this;
config.js
This seems to trigger my script as desired.
But then it had me thinking how I'd really prefer my script to execute when any of my markdown files are updated. How can I integrate my script into my vitepress project so that it triggers upon any of my docs being saved whilst in dev?
The output of this script simply scans all frontmatter from each docs\markdown.md file, and is creating a summary markdown page.
Beta Was this translation helpful? Give feedback.
All reactions