vuepress
vuepress copied to clipboard
Inject dynamic script based on sidebar route.
- [ ] I confirm that this is an issue rather than a question.
Bug report
Can we inject scripts in the head based on the sidebar route ?
I have the below sidebar config. Can I Inject particular version of script for each sidebar route ?
{
'/v2/': [ { title: 'Getting Startedv2' }, { title: 'Getting Startedv21' } ],
'/v3/': [ { title: 'Getting Startedv3' }, { title: 'Getting Startedv31' } ]
}
Steps to reproduce
What is expected?
What is actually happening?
Other relevant information
- Output of
npx vuepress infoin my VuePress project: