Skip to content

Commit

Permalink
User guide, conversion to modules: fixing config.yaml (google#1209)
Browse files Browse the repository at this point in the history
  • Loading branch information
deining authored Oct 7, 2022
1 parent 326b0f1 commit 3147661
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ module:
imports:
- path: github.com/google/docsy
disable: false
imports:
- path: github.com/google/docsy/dependencies
disable: false
{{< /tab >}}
Expand Down
18 changes: 9 additions & 9 deletions userguide/content/en/docs/adding-content/content.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ menu:
weight: 30

cascade:
- type: "blog"
- type: "blog"
---
{{< /tab >}}
{{< tab header="json" lang="json" >}}
Expand Down Expand Up @@ -151,12 +151,12 @@ type = "docs"
title: "My Wonderful Site"

cascade:
- type: "blog"
toc_root: true
_target:
- type: "blog"
toc_root: true
_target:
path: "/news/**"
- type: "docs"
_target:
- type: "docs"
_target:
path: "/**"
---
{{< /tab >}}
Expand Down Expand Up @@ -431,9 +431,9 @@ linkTitle: "Announcing Docsy"
description: "The Docsy Hugo theme lets project maintainers and contributors focus on content, not on reinventing a website infrastructure from scratch"
author: Riona MacNamara
resources:
- src: "**.{png,jpg}"
title: "Image #:counter"
params:
- src: "**.{png,jpg}"
title: "Image #:counter"
params:
byline: "Photo: Riona MacNamara / CC-BY-CA"
---
{{< /tab >}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ errorColor = "#CD5C5C"
display = false
[[params.katex.options.delimiters]]
left = "\\["
right = '\\]'
right = "\\]"
display = true
{{< /tab >}}
{{< tab header="config.yaml" lang="yaml" >}}
Expand Down Expand Up @@ -135,8 +135,8 @@ params:
- left: \(
right: \)
display: false
- left: '\['
right: '\\]'
- left: \[
right: \]
display: true
{{< /tab >}}
{{< tab header="config.json" lang="json" >}}
Expand Down Expand Up @@ -166,7 +166,7 @@ params:
},
{
"left": "\\[",
"right": "\\\\]",
"right": "\\]",
"display": true
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ The Docsy template provides two shortcodes `tabpane` and `tab` that let you easi
![Flag Tanzania](flags/tz.png)
**Karibu sana!**
{{%/* /tab */%}}
{{%/* /tabpane */%}}
{{</* /tabpane */>}}
```

This code translates to the right aligned tabbed pane below, showing a `Welcome!` greeting in English, German or Swahili:
Expand Down

0 comments on commit 3147661

Please sign in to comment.