Is it possible to install and run vitepress completely within Github action for a repo that does not use node otherwise? #4362
-
I have a few repos and wondering about using Vitepress to build Github Pages for the docs rather than using the wiki. The repos are for PHP based tools and modules for Backdrop CMS so don't normally use Is it possible to build it into the github action so node and vitepress are installed and the docs are build into pages without any local node steps? The docs would be in |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can install vitepress on CI too, but might need to lock its version in workflow if you don't want a package.json in your repo. Some steps like this maybe: cd docs
npm add [email protected]
npx vitepress build You'll need to store the config file in your repo too ( |
Beta Was this translation helpful? Give feedback.
You can install vitepress on CI too, but might need to lock its version in workflow if you don't want a package.json in your repo.
Some steps like this maybe:
You'll need to store the config file in your repo too (
docs/.vitepress/config.mjs
). Autocompletions inside that won't work if you're editing it locally and don't have node install.