mirror of https://github.com/fluxcd/website.git
There is no permalink on the fluxcd.io site for each content, we'll just reuse /kubecon each time - for SEO purposes this is better. (A permanent content archive will be hosted @ fluxcd/community repo, where we can archive `KUBECON.md` as `attic/KUBECON24EU.md` for example) * set KUBECON.md as external source * try adding css rules to some classes * Make more kubecon page formatting classes I've added "clearfix" after reading w3schools about css float https://www.w3schools.com/css/css_float.asp * More CSS things Signed-off-by: Kingdon Barrett <kingdon@tuesdaystudios.com> |
||
|---|---|---|
| .. | ||
| fluxcd | ||
| README.md | ||
README.md
Instructions
hack/gen-content.py uses this directory. Here is how it works:
-
Create a file called
external-sources/<github-org>/<github-repo> -
Make it a CSV file of the following format:
<file in repo>, <file in website> -
Optionally add a title argument.
-
Optionally add a weight as fourth argument. If you do, you need to pass a third as well. To pass an empty argument, use "" or "-".
Example
Here is a simple example:
external-sources/fluxcd/flux2 contains:
"/CONTRIBUTING.md","/contributing/flux.md","Contributing to Flux"
This means that the script will do a shallow clone of github.com/fluxcd/flux2 and copy the top-level CONTRIBUTING.md file into /contributing/flux.md (under content/en). It will also change the title to "Contributing to Flux".
Behind the scenes the script does quite a few other changes as well to make the front-matter look good.