Add tests to prevent file naming conflicts
The move to Hugo, and dropping the ee
prefix for GitLab project paths, introduces a few potential problems caused by filenames:
- Index pages should be named
_index.md
rather than the standardindex.md
. Missing the underscore will cause sub-pages in this directory to not be built by Hugo (see https://gohugo.io/content-management/page-bundles/). - The
gitlab
project must not include top-level directories with the same names as the other projects (runner
,charts
, etc). Otherwise thegitlab
page will be built, but not the page for the other project.
Let's add tests for these conditions. The first applies to all projects; the second only applies to the GitLab project. Either of these conditions should cause the pipeline to fail.
Edited by Sarah German