This repo houses the assets used to build the Flux project's landing page at https://fluxcd.io.
Note: The sources for some of Flux's documentation are housed in the other Flux repositories within https://github.com/fluxcd. Issues and pull requests for this documentation should be registered at that repos.
Project Docs Site Github Source Flux v1 https://docs.fluxcd.io https://github.com/fluxcd/flux Helm Operator https://docs.fluxcd.io/projects/helm-operator/ https://github.com/fluxcd/helm-operator Flux v2 https://fluxcd.io/docs https://github.com/fluxcd/website We are in the process of moving everything into this repository:
/fluxcd/website
. The work can be tracked here: fluxcd#76.
The main landing page of this website can be modified in config.toml
.
All other content lives in the content
directory:
./content/en/blog
contains all blog posts - make sure you update the front-matter for posts to show up correctly../external-sources/
defines how files from other repositories are pulled in. We currently do this for Markdown files from the/fluxcd/community
and/fluxcd/.github
repositories. (make gen-content
pulls these in.)- Flux CLI docs (
cmd
) andcomponents
docs: under./content/en/docs
but pulled in through inmake gen-content
as well.
In order to run the Flux site locally, you need to install:
- Node.js
- The Hugo static site generator. Make sure to install the "extended" variant of Hugo with support for the Hugo Pipes feature and to check the
netlify.toml
configuration file for which version of Hugo you should install.
Once those tools are installed, fetch the assets necessary to run the site:
npm install
make theme
Then run the site in "server" mode:
make serve
Navigate to http://localhost:1313 to see the site running in your browser. As you make updates to the site, the browser will immediately update to reflect those changes.
The Flux website is published automatically by Netlify when changes are pushed to the main
branch. The site does not need to be published manually.
When you submit a pull request to this repository, Netlify builds a "deploy preview" of your changes. You can see that preview by clicking on the deploy/netlify link in the pull request window.