Questions tagged [vitepress]

27 questions
8
votes
0 answers

vitepress env variables in markdown files

I'd like to retrieve the git build and branch data from an environment variable I can set/export at build time. is there a way I can reference such an env variable somewhere in the markdown files or config files? tia!
fessacchiotto
  • 151
  • 1
  • 5
4
votes
1 answer

Is it possible to render TS types or values of variables inside markdown files using static site generators like VitePress?

I want to create a documentation using Vitepress ( or similiar ). This app uses a package which contains types and Zod schemas. The root library index.ts could be import { z } from 'zod'; const userSchema = z .object({ username:…
baitendbidz
  • 187
  • 3
  • 19
3
votes
0 answers

Removing the aside in vitepress

Feeling really silly right now, but for whatever reason I cannot get this aside to go away in my vitepress docs. The docs say that I just need to add aside: false and it should be gone, but mine is still there for some reason. Am I missing…
LovelyAndy
  • 841
  • 8
  • 22
3
votes
1 answer

Is there any way to embed JavaScript into Vitepress markdown template?

Is there a way to embed a script from external source as well as local script into Vitepress markdown for it to be generated? This example ## my test button