summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorRobert Basic <robertbasic.com@gmail.com>2018-01-29 16:21:42 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-01-29 16:56:35 +0100
commit2fa70c9344b231c9d999bbafdfa4acbf27ed9f6e (patch)
tree88e43156d7d9a71ef79dda463b84f37b8442d033 /docs
parentb6f3f087aadbab6118edcb39b5bc56032d6afd03 (diff)
command: Remove undraft command
According to @bep, it is easier to undraft content by editing manually the frontmatter of said content by setting the draft flag to `false`, or removing it completely, than to rely on the undraft command which is a source of many bugs. Fixes #4353
Diffstat (limited to 'docs')
-rw-r--r--docs/content/commands/hugo.md1
-rw-r--r--docs/content/commands/hugo_undraft.md43
-rw-r--r--docs/content/getting-started/usage.md1
-rw-r--r--docs/content/hosting-and-deployment/deployment-with-wercker.md8
4 files changed, 2 insertions, 51 deletions
diff --git a/docs/content/commands/hugo.md b/docs/content/commands/hugo.md
index 426d62db8..6aefcf06d 100644
--- a/docs/content/commands/hugo.md
+++ b/docs/content/commands/hugo.md
@@ -75,7 +75,6 @@ hugo [flags]
* [hugo list](/commands/hugo_list/) - Listing out various types of content
* [hugo new](/commands/hugo_new/) - Create new content for your site
* [hugo server](/commands/hugo_server/) - A high performance webserver
-* [hugo undraft](/commands/hugo_undraft/) - Undraft resets the content's draft status
* [hugo version](/commands/hugo_version/) - Print the version number of Hugo
###### Auto generated by spf13/cobra on 25-Jan-2018
diff --git a/docs/content/commands/hugo_undraft.md b/docs/content/commands/hugo_undraft.md
deleted file mode 100644
index 8b4274de9..000000000
--- a/docs/content/commands/hugo_undraft.md
+++ /dev/null
@@ -1,43 +0,0 @@
----
-date: 2018-01-25T10:24:52+01:00
-title: "hugo undraft"
-slug: hugo_undraft
-url: /commands/hugo_undraft/
----
-## hugo undraft
-
-Undraft resets the content's draft status
-
-### Synopsis
-
-Undraft resets the content's draft status
-and updates the date to the current date and time.
-If the content's draft status is 'False', nothing is done.
-
-```
-hugo undraft path/to/content [flags]
-```
-
-### Options
-
-```
- -h, --help help for undraft
-```
-
-### Options inherited from parent commands
-
-```
- --config string config file (default is path/config.yaml|json|toml)
- --debug debug output
- --log enable Logging
- --logFile string log File path (if set, logging enabled automatically)
- --quiet build in quiet mode
- -v, --verbose verbose output
- --verboseLog verbose logging
-```
-
-### SEE ALSO
-
-* [hugo](/commands/hugo/) - hugo builds your site
-
-###### Auto generated by spf13/cobra on 25-Jan-2018
diff --git a/docs/content/getting-started/usage.md b/docs/content/getting-started/usage.md
index 198dc25f9..bc988d27c 100644
--- a/docs/content/getting-started/usage.md
+++ b/docs/content/getting-started/usage.md
@@ -53,7 +53,6 @@ Available Commands:
list Listing out various types of content
new Create new content for your site
server A high performance webserver
- undraft Undraft resets the content's draft status
version Print the version number of Hugo
Flags:
diff --git a/docs/content/hosting-and-deployment/deployment-with-wercker.md b/docs/content/hosting-and-deployment/deployment-with-wercker.md
index 1cc0f3036..9b41ed793 100644
--- a/docs/content/hosting-and-deployment/deployment-with-wercker.md
+++ b/docs/content/hosting-and-deployment/deployment-with-wercker.md
@@ -75,13 +75,9 @@ hugo new about.md
The preceding example for the about page leverages archetypes to scaffold a new content file with preconfigured front matter. [Find out more about Hugo's archetypes](/content-management/archetypes/).
{{% /note %}}
-Now you can edit `contents/about.md` in your text editor of choice, but this is not necessary for the purposes of this guide. Running the following command will build your Hugo site into the `public` directory. We have added `undraft` to ensure that the example page is no longer in draft mode:
+Now you can edit `contents/about.md` in your text editor of choice, but this is not necessary for the purposes of this guide. Running the following command will build your Hugo site into the `public` directory.
-{{< code file="hugo-build-undraft.sh" >}}
-hugo undraft content/about.md
-{{< /code >}}
-
-Once the website is build, t's a good idea to run the following command to start a local server and ensure you're changes have been implemented:
+Once the website is build, it's a good idea to run the following command to start a local server and ensure you're changes have been implemented:
```
hugo server --theme=herring-cove