diff --git a/content/reusable/md/chef_tags.md b/content/reusable/md/chef_tags.md
index 1f9d83de43..7e93a43e90 100644
--- a/content/reusable/md/chef_tags.md
+++ b/content/reusable/md/chef_tags.md
@@ -1,4 +1,2 @@
-A tag is a custom description that is applied to a node. A tag, once
-applied, can be helpful when managing nodes using knife or when building
-recipes by providing alternate methods of grouping similar types of
-information.
+A tag is a custom description that's applied to a node.
+A tag, once applied, can be helpful when managing nodes using knife or when building recipes by providing alternate methods of grouping similar types of information.
diff --git a/content/reusable/md/cookbooks_recipe_tags.md b/content/reusable/md/cookbooks_recipe_tags.md
index 80be325b68..e5e6567408 100644
--- a/content/reusable/md/cookbooks_recipe_tags.md
+++ b/content/reusable/md/cookbooks_recipe_tags.md
@@ -1,38 +1,39 @@
-Tags can be added and removed. Machines can be checked to see if they
-already have a specific tag. To use tags in your recipe simply add the
-following:
+You can add tags, remove tags, and check if nodes have a specific tag.
+
+To add a tag in your recipe, use `tag` with the tag name you want to apply to a node.
```ruby
-tag('mytag')
+tag('tag-name')
```
-To test if a machine is tagged, add the following:
+To test if a machine is tagged with a specific tag, use `tagged?` with the tag name.
```ruby
-tagged?('mytag')
+tagged?('tag-name')
```
-to return `true` or `false`. `tagged?` can also use an array as an
-argument.
+This will return `true` or `false`.
+
+`tagged?` also accepts an array as an argument.
-To remove a tag:
+Remove a tag using `untag`.
```ruby
-untag('mytag')
+untag('tag-name')
```
For example:
```ruby
-tag('machine')
+tag('test_node')
-if tagged?('machine')
+if tagged?('test_node')
Chef::Log.info("Hey I'm #{node['tags']}")
end
-untag('machine')
+untag('test_node')
-unless tagged?('machine')
+unless tagged?('test_node')
Chef::Log.info('I am not tagged')
end
```
@@ -40,6 +41,6 @@ end
Will return something like this:
```none
-[Thu, 22 Jul 2010 18:01:45 +0000] INFO: Hey I'm machine
-[Thu, 22 Jul 2010 18:01:45 +0000] INFO: I has no tagz
+[Thu, 22 Jul 2010 18:01:45 +0000] INFO: Hey I'm test_node
+[Thu, 22 Jul 2010 18:01:45 +0000] INFO: I am not tagged
```
diff --git a/themes/docs-new/layouts/_default/data-api.html b/themes/docs-new/layouts/_default/data-api.html
index 43285f054f..236156d38e 100644
--- a/themes/docs-new/layouts/_default/data-api.html
+++ b/themes/docs-new/layouts/_default/data-api.html
@@ -14,14 +14,10 @@
{{- end -}}
{{- end }}
- {{ if in .Params.product "automate" }}
-
- {{ else }}
-
- {{ end }}
+
- {{ if in .Params.product "automate" }}
+ {{ if eq $.Page.Params.title "Chef Automate API" }}
Return to Docs
diff --git a/themes/docs-new/static/automate-api-stylesheet.css b/themes/docs-new/static/api-stylesheet.css
similarity index 85%
rename from themes/docs-new/static/automate-api-stylesheet.css
rename to themes/docs-new/static/api-stylesheet.css
index 5ffef397d0..9eaebea560 100644
--- a/themes/docs-new/static/automate-api-stylesheet.css
+++ b/themes/docs-new/static/api-stylesheet.css
@@ -28,30 +28,33 @@ a.return {
padding:20px;
font-family: Montserrat, sans-serif;
font-weight: 400;
- font-size: .9em;
- line-height: 1.6em;
+ font-size: 14px;
+ line-height: 1.5em;
color: rgb(51, 51, 51);
background-color: rgb(250, 250, 250);
+ border-bottom: 1px solid rgb(225, 225, 225);
}
+
#top-container-return {
padding-left: 10px;
flex: 0 0 200px;
margin-top: 1em;
}
+/* The following content is for a note at the top of the Automate API page */
+
#top-container-messages {
flex: 1 1 500px;
- margin: 1em;
- padding: 0 1em;
+ margin: 1em 1em 0 1em;
+ padding: 0;
border-radius: 3px;
display: flex;
flex-direction: column;
}
.top-container-message {
- padding: 0 15px;
- margin: 1em;
padding: 0;
+ margin: 0 1em;
border-radius: 3px;
}
@@ -82,10 +85,5 @@ p#top-container-warning {
}
.top-container-text {
- padding: 1em;
-}
-
-redoc[spec-url] a img[src^="/images/chef-automate-logo.svg"] {
- width: 220px;
- margin: 20px;
+ padding: 0 1em;
}
diff --git a/themes/docs-new/static/habitat-api-styles.css b/themes/docs-new/static/habitat-api-styles.css
deleted file mode 100644
index f065b594aa..0000000000
--- a/themes/docs-new/static/habitat-api-styles.css
+++ /dev/null
@@ -1,24 +0,0 @@
-body {
- margin: 0;
- padding: 0;
-}
-
-a.return {
- background: #EF9600;
- display: block;
- text-align: center;
- width: 260px;
- padding: 8px 0;
- color: white;
- text-decoration: none;
- font-family: montserrat;
- font-size: 14px;
- position: fixed;
- z-index: 1;
-}
-
-redoc[spec-url] a img[src^="/images/habitat-logo.svg"] {
- width: 220px;
- margin: 20px;
-}
-
diff --git a/tools/vale/Microsoft/Contractions.yml b/tools/vale/Microsoft/Contractions.yml
index 8c81dcbce7..9f683139d2 100644
--- a/tools/vale/Microsoft/Contractions.yml
+++ b/tools/vale/Microsoft/Contractions.yml
@@ -48,3 +48,7 @@ swap:
'where''s(?=\.)': where is
will not: won't
+ mightn't've: might not have
+ mustn't've: mustn't have
+ shouldn't've: shouldn't have
+ wouldn't've: wouldn't have
diff --git a/tools/vale/write-good/E-Prime.yml b/tools/vale/write-good/E-Prime.yml
index 074a102b25..1e4a920a5d 100644
--- a/tools/vale/write-good/E-Prime.yml
+++ b/tools/vale/write-good/E-Prime.yml
@@ -5,28 +5,16 @@ level: suggestion
tokens:
- am
- are
- - aren't
- be
- been
- being
- he's
- here's
- - here's
- - how's
- i'm
- is
- - isn't
- - it's
- she's
- - that's
- there's
- they're
- was
- - wasn't
- - we're
- were
- - weren't
- - what's
- - where's
- who's
- - you're