mirror of
https://github.com/docker/docs.git
synced 2026-03-27 14:28:47 +07:00
chore: move cli data files to data subdir
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
2
.github/workflows/validate-upstream.yml
vendored
2
.github/workflows/validate-upstream.yml
vendored
@@ -61,7 +61,7 @@ jobs:
|
||||
const yamlSrcFilename = path.basename(yamlSrcPath);
|
||||
const yamlSrcNoExt = yamlSrcPath.replace(".yaml", "");
|
||||
const hasSubCommands = (await (await glob.create(yamlSrcNoExt)).glob()).length > 1;
|
||||
const yamlDestPath = path.join('data', `${{ inputs.data-files-folder }}`, yamlSrcFilename);
|
||||
const yamlDestPath = path.join('data', 'cli', `${{ inputs.data-files-folder }}`, yamlSrcFilename);
|
||||
let placeholderPath = path.join("content/reference/cli", yamlSrcFilename.replace('_', '/').replace(/\.yaml$/, '.md'));
|
||||
if (hasSubCommands) {
|
||||
placeholderPath = placeholderPath.replace('.md', '/_index.md');
|
||||
|
||||
Reference in New Issue
Block a user