vuepress icon indicating copy to clipboard operation
vuepress copied to clipboard

Inject dynamic script based on sidebar route.

Open arvindanta opened this issue 3 years ago • 0 comments

  • [ ] 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 info in my VuePress project:

arvindanta avatar Mar 18 '22 19:03 arvindanta