Skip to content

Commit

Permalink
site: remove CLI auto-generated docs prior to generate
Browse files Browse the repository at this point in the history
Otherwise we can leave behind stale generated files from previous
instances of the site configuration.

Do not remove the cache files, because otherwise on a
Preprocessor-No-Write-Cache they will not get added back, a change that
would, ironically, create noise in a commit where we are intending there
to be less noise.

Preprocessor-No-Write-Cache: true
Signed-off-by: Paul Jolly <[email protected]>
Change-Id: Ibb6aeb84da3badbd3e24853eea079b93099d3de1
  • Loading branch information
myitcv committed Feb 12, 2024
1 parent 6b6b61e commit dbaca6f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions site.cue
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@ let donotedit = base.doNotEditMessage & {#generatedBy: "site_tool.cue", _}
// template is an io/fs.FS-like map of files that are templated
// by site_tool.cue:gen for the working of cuelang.org
template: ci.#writefs & {
Remove: [
// The generated artefacts from the CLI auto-generation. Do not remove
// the cache files, because otherwise on a Preprocessor-No-Write-Cache
// they will not get added back, a change that would, ironically, create
// noise in a commit where we are intending there to be less noise.
"content/docs/reference/cli/cue-*/*.md",
]
Create: {
"internal/cmd/preprocessor/cmd/_docker/Dockerfile": {
Contents: #"""
Expand Down

0 comments on commit dbaca6f

Please sign in to comment.