mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-01-04 04:04:02 +00:00
1.7 KiB
1.7 KiB
Running in Docker
To run this site in a Docker container, you can use make serve-docs from the root directory.
Dependencies for MacOS
Install the following for an easy to use dev environment:
brew install hugo
Dependencies for Linux
If you are running a build on Ubuntu you will need the following packages:
- hugo
Local Development
- Clone down your own fork, or clone the main repo
git clone https://github.com/vmware-tanzu/veleroand add your own remote. cd velero/site- Serve the site and watch for markup/sass changes
hugo serve. - View your website at http://127.0.0.1:1313/
- Commit any changes and push everything to your fork.
- Once you're ready, submit a PR of your changes. Netlify will automatically generate a preview of your changes.
Jetbrains IDE setup (IntelliJ, Goland, etc)
- Install the
Hugo Integrationplugin: https://plugins.jetbrains.com/plugin/13215-hugo-integration- Under
Preferences...->Plugins
- Under
- Create a new configuration:
- Click
Edit Configurations... - Click the
+button to create a new configuration and selectHugo - Select
hugo serveand make sure it is running under thesitedirectory - Save and run the new Configuration
- View your website at http://127.0.0.1:1313/
- Any changes in
sitewill reload the website automatically
- Click
Adding a New Docs Version
To add a new set of versioned docs to go with a new Velero release:
-
In the root of the repository, run:
# set to the appropriate version numbers NEW_DOCS_VERSION=vX.Y VELERO_VERSION=vX.Y.Z make gen-docs -
[Pre-release only] In
site/config.yaml, revert the change to thelatestfield, so the pre-release docs do not become the default.