From 6fcf581e3e6690564e3d1858e11454547ad8bccd Mon Sep 17 00:00:00 2001 From: Adrien Delorme Date: Fri, 14 Jun 2019 14:58:58 +0200 Subject: [PATCH] remove all generated doc files before generating it again in order to remove files that should be --- Makefile | 2 ++ .../_ShutdownConfig-not-required.html.md | 16 ------------- .../_ShutdownConfig-not-required.html.md | 11 --------- .../parallels/common/_ShutdownConfig.html.md | 2 -- .../_ShutdownConfig-not-required.html.md | 11 --------- .../_ShutdownConfig-not-required.html.md | 24 +++++++++---------- 6 files changed, 14 insertions(+), 52 deletions(-) delete mode 100644 website/source/partials/builder/hyperv/common/_ShutdownConfig-not-required.html.md delete mode 100644 website/source/partials/builder/parallels/common/_ShutdownConfig-not-required.html.md delete mode 100644 website/source/partials/builder/parallels/common/_ShutdownConfig.html.md delete mode 100644 website/source/partials/builder/vmware/common/_ShutdownConfig-not-required.html.md diff --git a/Makefile b/Makefile index f1c18e11f..42c92ee3f 100644 --- a/Makefile +++ b/Makefile @@ -91,6 +91,8 @@ fmt-examples: # generate runs `go generate` to build the dynamically generated # source files. generate: install-gen-deps ## Generate dynamically generated code + @echo "==> removing autogenerated markdown..." + @find website/source/ -type f | xargs grep -l '^ - -- `shutdown_command` (string) - The command to use to gracefully shut down - the machine once all provisioning is complete. By default this is an - empty string, which tells Packer to just forcefully shut down the - machine. This setting can be safely omitted if for example, a shutdown - command to gracefully halt the machine is configured inside a - provisioning script. If one or more scripts require a reboot it is - suggested to leave this blank (since reboots may fail) and instead - specify the final shutdown command in your last script. - -- `shutdown_timeout` (string) - The amount of time to wait after executing - the shutdown_command for the virtual machine to actually shut down. - If the machine doesn't shut down in this time it is considered an - error. By default, the time out is "5m" (five minutes). - \ No newline at end of file diff --git a/website/source/partials/builder/parallels/common/_ShutdownConfig-not-required.html.md b/website/source/partials/builder/parallels/common/_ShutdownConfig-not-required.html.md deleted file mode 100644 index 73f702371..000000000 --- a/website/source/partials/builder/parallels/common/_ShutdownConfig-not-required.html.md +++ /dev/null @@ -1,11 +0,0 @@ - - -- `shutdown_command` (string) - The command to use to gracefully shut down the - machine once all the provisioning is done. By default this is an empty - string, which tells Packer to just forcefully shut down the machine. - -- `shutdown_timeout` (string) - The amount of time to wait after executing the - shutdown_command for the virtual machine to actually shut down. If it - doesn't shut down in this time, it is an error. By default, the timeout is - "5m", or five minutes. - \ No newline at end of file diff --git a/website/source/partials/builder/parallels/common/_ShutdownConfig.html.md b/website/source/partials/builder/parallels/common/_ShutdownConfig.html.md deleted file mode 100644 index 4401e453e..000000000 --- a/website/source/partials/builder/parallels/common/_ShutdownConfig.html.md +++ /dev/null @@ -1,2 +0,0 @@ - -ShutdownConfig contains the configuration for VM shutdown. diff --git a/website/source/partials/builder/vmware/common/_ShutdownConfig-not-required.html.md b/website/source/partials/builder/vmware/common/_ShutdownConfig-not-required.html.md deleted file mode 100644 index ec9a2a69e..000000000 --- a/website/source/partials/builder/vmware/common/_ShutdownConfig-not-required.html.md +++ /dev/null @@ -1,11 +0,0 @@ - - -- `shutdown_command` (string) - The command to use to gracefully shut down the - machine once all the provisioning is done. By default this is an empty - string, which tells Packer to just forcefully shut down the machine. - -- `shutdown_timeout` (string) - The amount of time to wait after executing the - shutdown_command for the virtual machine to actually shut down. If it - doesn't shut down in this time, it is an error. By default, the timeout is - 5m or five minutes. - \ No newline at end of file diff --git a/website/source/partials/common/shutdowncommand/_ShutdownConfig-not-required.html.md b/website/source/partials/common/shutdowncommand/_ShutdownConfig-not-required.html.md index f90ba4b55..6094b9154 100644 --- a/website/source/partials/common/shutdowncommand/_ShutdownConfig-not-required.html.md +++ b/website/source/partials/common/shutdowncommand/_ShutdownConfig-not-required.html.md @@ -1,16 +1,16 @@ -- `shutdown_command` (string) - The command to use to gracefully shut down - the machine once all provisioning is complete. By default this is an - empty string, which tells Packer to just forcefully shut down the - machine. This setting can be safely omitted if for example, a shutdown - command to gracefully halt the machine is configured inside a - provisioning script. If one or more scripts require a reboot it is - suggested to leave this blank (since reboots may fail) and instead - specify the final shutdown command in your last script. +- `shutdown_command` (string) - The command to use to gracefully shut down the machine once all + provisioning is complete. By default this is an empty string, which + tells Packer to just forcefully shut down the machine. This setting can + be safely omitted if for example, a shutdown command to gracefully halt + the machine is configured inside a provisioning script. If one or more + scripts require a reboot it is suggested to leave this blank (since + reboots may fail) and instead specify the final shutdown command in your + last script. -- `shutdown_timeout` (string) - The amount of time to wait after executing - the shutdown_command for the virtual machine to actually shut down. - If the machine doesn't shut down in this time it is considered an - error. By default, the time out is "5m" (five minutes). +- `shutdown_timeout` (string) - The amount of time to wait after executing the shutdown_command for the + virtual machine to actually shut down. If the machine doesn't shut down + in this time it is considered an error. By default, the time out is "5m" + (five minutes). \ No newline at end of file