MonkeyCanCode opened a new pull request, #2006:
URL: https://github.com/apache/polaris/pull/2006
The challenge with publishing helm doc to hugo site is the helm doc is
outside of the `content` dir 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 using `mounts` option from hugo to mount the current
`content` into a `virtual content` then mount the relative path from helm chart
README.md into the same `virtual content` but 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
`unreleased` doc into `<version>` doc, we will need to duplicate the mounts
entry such as following to allow same doc be read-able from both versions:
```
# Mount from ../../polaris/helm/polaris into the virtual
content/in-dev/unreleased/helm path
- source: ../../polaris/helm/polaris
target: content/in-dev/unreleased/helm
excludeFiles: ["**"]
includeFiles: ["README.md"]
# Mount from ../../polaris/helm/polaris into the virtual
content/in-dev/1.0.0/helm path
- source: ../../polaris/helm/polaris
target: content/in-dev/1.0.0/helm
excludeFiles: ["**"]
includeFiles: ["README.md"]
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]