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
Dispatch-Trailer: {"type":"trybot","CL":1176750,"patchset":3,"ref":"refs/changes/50/1176750/3","targetBranch":"alpha"}
  • Loading branch information
myitcv authored and cueckoo committed Feb 12, 2024
1 parent 6b6b61e commit 9f5a6a6
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 9f5a6a6

Please sign in to comment.