Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hugo could be better when linking markdown files if they are outside their own folder. With this improvement, we will fetch all relative links, even with `.md,` and generate their url different than the [originial version](https://gohugo.io/templates/render-hooks/#link-with-title-markdown-example). This change now also allows links to `.md` files within the links, so we don't need to care about this anymore. In Hugo you can write documentation with two different naming/structuring approaches: 1. `<docName>/_index.md` 2. `<docName>.md` The problem is that links from files within the second approach could be simpler. Locally and in the Markdown space, they're in the same folder. But when Hugo renders them, there is a folder level in between. With this approach, we're changing how hugo renders relative files. Rather than blindly using the link for pages within the documentation, we search for that page, and take the link from this page, generate via Hugo. This way we will always have the right directory levels, for markdown and for hugo relates: keptn/lifecycle-toolkit#1177 Signed-off-by: Simon Schrottner <[email protected]>
- Loading branch information