Conversation
|
I wonder whether it's not easier to just copy the README.md file from Orthogonal to this PR, I realized that the Helm README.md is generated, but there's nothing that guarantees that the file is up to date. I think, it would be better to not track the generated README.md in Git or at least have a CI step that verifies that the README.md file is up to date (aka generate in CI and compare with the one in Git). WDYT? |
+1. The only reason to have that generated README.md file committed in Git was to allow users to read the Helm docs when browsing the GitHub repo. A CI check to enforce that it's in sync with the template would be nice. |
Great. So everyone agreed we will just copy file (automate it as part of the CI). I will close this for now then raise two separate PRs for adding the one time doc then another PR for the automation. I have some ideas on what we can do to streamline those processes and I will raise an PR with sample workflow to get more feedback on the purposed workflow soon. |
The challenge with publishing helm doc to hugo site is the helm doc is outside of the
contentdir used by hugo (quick test with symbolic link doesn't appear to be working and hugo doesn't read the content from symbolic link). Thus, I am usingmountsoption from hugo to mount the currentcontentinto avirtual contentthen mount the relative path from helm chart README.md into the samevirtual contentbut one directory under. By doing so, hugo is able to read this file without us duplicating the file.One problem I see with this route is if we need to promo the current
unreleaseddoc into<version>doc, we will need to duplicate the mounts entry such as following to allow same doc be read-able from both versions:Also, as now we are trying to read chart's README file as web page, I had removed header as it will show duplicate header if we do so. Here is the rendered page with this solution:
