setup prettier
This commit is contained in:
parent
9f61dc7684
commit
a81f858848
19 changed files with 239 additions and 177 deletions
|
@ -8,6 +8,8 @@ Buttons are styled links that can lead to local page or external link.
|
|||
## Example
|
||||
|
||||
<!-- spellchecker-disable -->
|
||||
|
||||
{{< button relref="/" >}}Get Home{{< /button >}}
|
||||
{{< button href="https://github.com/xoxys/hugo-geekdoc" >}}Contribute{{< /button >}}
|
||||
|
||||
<!-- spellchecker-enable -->
|
||||
|
|
|
@ -14,17 +14,17 @@ Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclima
|
|||
{{< hint info >}}
|
||||
**Markdown content**\
|
||||
Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture.
|
||||
Ornateness bland it ex enc, est yeti am bongo detract re.
|
||||
Ornateness bland it ex enc, est yeti am bongo detract re.
|
||||
{{< /hint >}}
|
||||
|
||||
{{< hint warning >}}
|
||||
**Markdown content**\
|
||||
Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture.
|
||||
Ornateness bland it ex enc, est yeti am bongo detract re.
|
||||
Ornateness bland it ex enc, est yeti am bongo detract re.
|
||||
{{< /hint >}}
|
||||
|
||||
{{< hint danger >}}
|
||||
**Markdown content**\
|
||||
Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture.
|
||||
Ornateness bland it ex enc, est yeti am bongo detract re.
|
||||
Ornateness bland it ex enc, est yeti am bongo detract re.
|
||||
{{< /hint >}}
|
||||
|
|
|
@ -8,6 +8,7 @@ Include shortcode can include files of different types. By specifying a language
|
|||
|
||||
Attributes:
|
||||
|
||||
<!-- prettier-ignore -->
|
||||
| Name | Usage | default |
|
||||
|---|---|---|
|
||||
| file | path to the included file relative to the hugo root | empty value |
|
||||
|
@ -17,17 +18,19 @@ Attributes:
|
|||
|
||||
\* if not set, the content will be rendered as plain HTML
|
||||
|
||||
### Include *.yml file with options
|
||||
### Include \*.yml file with options
|
||||
|
||||
```tpl
|
||||
{{</* include file="config.yaml" language="yaml" options="linenos=table,hl_lines=5-6,linenostart=100" */>}}
|
||||
```
|
||||
|
||||
<!-- spellchecker-disable -->
|
||||
|
||||
{{< include file="config.yaml" language="yaml" options="linenos=table,hl_lines=5-6,linenostart=100">}}
|
||||
|
||||
<!-- spellchecker-enable -->
|
||||
|
||||
### Include *.md file
|
||||
### Include \*.md file
|
||||
|
||||
Included markdown files will be rendered using the `markdownify` filter.
|
||||
|
||||
|
@ -41,10 +44,12 @@ If you include markdown files that should not get a menu entry, place them outsi
|
|||
```
|
||||
|
||||
<!-- spellchecker-disable -->
|
||||
|
||||
{{< include file="static/includes/table.md.part" markdown="true" >}}
|
||||
|
||||
<!-- spellchecker-enable -->
|
||||
|
||||
### Include *.html file
|
||||
### Include \*.html file
|
||||
|
||||
HTML content will be filtered by the `safeHTML` filter and added to the rendered page output.
|
||||
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
{{< columns >}}
|
||||
|
||||
<!-- prettier-ignore -->
|
||||
```tpl
|
||||
{{</* mermaid class="text-center"*/>}}
|
||||
sequenceDiagram
|
||||
|
@ -22,6 +23,7 @@ sequenceDiagram
|
|||
<--->
|
||||
|
||||
<!-- spellchecker-disable -->
|
||||
<!-- prettier-ignore -->
|
||||
{{< mermaid class="text-center" >}}
|
||||
sequenceDiagram
|
||||
Alice->>Bob: Hello Bob, how are you?
|
||||
|
@ -34,6 +36,7 @@ sequenceDiagram
|
|||
Bob->>Alice: Thanks for asking
|
||||
end
|
||||
{{< /mermaid >}}
|
||||
|
||||
<!-- spellchecker-enable -->
|
||||
|
||||
{{< /columns >}}
|
||||
|
|
|
@ -30,7 +30,7 @@ fastidious copious quo ad. Stet probates in duo.
|
|||
This is tab **Linux** content.
|
||||
|
||||
Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates
|
||||
investiture. __Ornateness__ bland it ex enc, est yeti am bongo detract re. Pro ad
|
||||
investiture. **Ornateness** bland it ex enc, est yeti am bongo detract re. Pro ad
|
||||
prompts feud gait, quid exercise emeritus bis e. In pro quints consequent, denim
|
||||
fastidious copious quo ad. Stet probates in duo.
|
||||
{{< /tab >}}
|
||||
|
|
|
@ -5,7 +5,9 @@ Simple wrapper to generate a page Table of Content from a shortcode.
|
|||
```
|
||||
|
||||
<!-- spellchecker-disable -->
|
||||
|
||||
{{< toc >}}
|
||||
|
||||
<!-- spellchecker-enable -->
|
||||
|
||||
## Level 1
|
||||
|
|
|
@ -6,5 +6,7 @@ geekdocFlatSection: true
|
|||
This is just a demo section for the <!-- spellchecker-disable -->[toc-tree](/shortcodes/toc-tree/)<!-- spellchecker-enable --> shortcode.
|
||||
|
||||
<!-- spellchecker-disable -->
|
||||
|
||||
{{< toc-tree >}}
|
||||
|
||||
<!-- spellchecker-enable -->
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
Level 1
|
||||
|
||||
<!-- spellchecker-disable -->
|
||||
|
||||
{{< toc-tree >}}
|
||||
|
||||
<!-- spellchecker-enable -->
|
||||
|
|
|
@ -5,5 +5,7 @@ title: Level 1.3
|
|||
Level 1.3
|
||||
|
||||
<!-- spellchecker-disable -->
|
||||
|
||||
{{< toc-tree >}}
|
||||
|
||||
<!-- spellchecker-enable -->
|
||||
|
|
|
@ -67,6 +67,7 @@ pygmentsCodeFences: true
|
|||
|
||||
You can use it like every other shortcode:
|
||||
|
||||
<!-- prettier-ignore -->
|
||||
```markdown
|
||||
{{</* highlight Shell "linenos=table" */>}}
|
||||
# some code
|
||||
|
@ -77,8 +78,12 @@ echo "Hello World"
|
|||
**Example:**
|
||||
|
||||
<!-- markdownlint-disable -->
|
||||
|
||||
<!-- prettier-ignore-start -->
|
||||
{{< highlight Shell "linenos=table" >}}
|
||||
# some code
|
||||
echo "Hello World"
|
||||
{{< /highlight >}}
|
||||
<!-- prettier-ignore-end-->
|
||||
|
||||
<!-- markdownlint-enable -->
|
||||
|
|
|
@ -4,6 +4,8 @@ All necessary class names are listed below. If you miss some classes required fo
|
|||
|
||||
<!-- markdownlint-disable -->
|
||||
<!-- spellchecker-disable -->
|
||||
|
||||
<!-- prettier-ignore-start -->
|
||||
{{< highlight CSS "linenos=table" >}}
|
||||
/* default link color */
|
||||
a { color: #1c388e; }
|
||||
|
@ -32,6 +34,8 @@ a:visited { color: #73bfb8 }
|
|||
.gdoc-hint.warning { background: #fef5dc; border-color: #e4ba48; color: black; }
|
||||
.gdoc-hint.danger { background: #fae1db; border-color: #cf5f46; color: black; }
|
||||
{{< /highlight >}}
|
||||
<!-- prettier-ignore-end -->
|
||||
|
||||
<!-- spellchecker-enable -->
|
||||
<!-- markdownlint-enable -->
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue