feat: add details shortcode

This commit is contained in:
Henk Verlinde
2022-02-09 20:05:13 +01:00
parent e3fdbaa259
commit 7bc15dc0ec
4 changed files with 149 additions and 0 deletions

View File

@ -13,6 +13,74 @@ weight: 100
toc: true
---
## Shortcode
{{< details "Markdown and HTML" >}}
_Markdown_ and <em>HTML</em> will be rendered.
{{< /details >}}
{{< details "Unordered list" >}}
- step 1
- step 2
{{< /details >}}
{{< details "Ordered list" >}}
1. step 1
2. step 2
3. step 3
{{< /details >}}
{{< details "Parent" >}}
Doks is a Hugo theme for building secure, fast, and SEO-ready documentation websites, which you can easily update and customize.
{{< details "Child" >}}
Doks is a Hugo theme for building secure, fast, and SEO-ready documentation websites, which you can easily update and customize.
{{< details "Grandchild" >}}
Doks is a Hugo theme for building secure, fast, and SEO-ready documentation websites, which you can easily update and customize.
{{< /details >}}
{{< /details >}}
{{< /details >}}
{{< details "Start in open state" open >}}
Doks is a Hugo theme for building secure, fast, and SEO-ready documentation websites, which you can easily update and customize.
{{< /details >}}
{{< details "Headings" >}}
## Heading 2
Doks is a Hugo theme for building secure, fast, and SEO-ready documentation websites, which you can easily update and customize.
Doks is a Hugo theme for building secure, fast, and SEO-ready documentation websites, which you can easily update and customize.
Doks is a Hugo theme for building secure, fast, and SEO-ready documentation websites, which you can easily update and customize.
### Heading 3
Doks is a Hugo theme for building secure, fast, and SEO-ready documentation websites, which you can easily update and customize.
#### Heading 4
Doks is a Hugo theme for building secure, fast, and SEO-ready documentation websites, which you can easily update and customize.
{{< /details >}}
{{< details "<span class=\"fw-bold\">Custom HTML styled summary</span>" >}}
Doks is a Hugo theme for building secure, fast, and SEO-ready documentation websites, which you can easily update and customize.
{{< /details >}}
{{< details "Code" >}}
Paragraph before code block
```bash
npm run create [path] [flags]
```
Paragraph after code block
{{< /details >}}
## Get started
There are two main ways to get started with Doks: