Skip to content

Commit

Permalink
Enable embed-pdf and mermaid feature
Browse files Browse the repository at this point in the history
Signed-off-by: hossainemruz <[email protected]>
  • Loading branch information
hossainemruz committed Dec 8, 2023
1 parent 2c32a26 commit 5707448
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 21 deletions.
6 changes: 3 additions & 3 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -189,16 +189,16 @@ params:

# Enable this to use `embed-pdf` shortcode.
embedpdf:
enable: false
enable: true

# Enable this to create flowcharts using shortcodes.
flowchart:
enable: false
enable: true
services:
# Uncomment for `mermaid` shortcode.
mermaid:
# For config options, see: https://mermaid-js.github.io/mermaid/#/Setup?id=configuration
# theme: dark
theme: forest

# Enable this to create mathematic expressions using `$$` blocks
math:
Expand Down
36 changes: 19 additions & 17 deletions content/posts/shortcodes/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,23 +199,21 @@ classDiagram

**Git Graph:**

{{< mermaid background="black" align="right" >}}
gitGraph:
options
{
"nodeSpacing": 150,
"nodeRadius": 10
}
end
commit
branch newbranch
checkout newbranch
commit
commit
checkout master
commit
commit
merge newbranch
{{< mermaid >}}
gitGraph
commit id: "ZERO"
branch develop
commit id:"A"
checkout main
commit id:"ONE"
checkout develop
commit id:"B"
checkout main
commit id:"TWO"
cherry-pick id:"A"
commit id:"THREE"
checkout develop
commit id:"C"
{{< /mermaid >}}

**ER Diagram:**
Expand All @@ -230,3 +228,7 @@ erDiagram
## Gist

{{< gist hossainemruz 4ad86c9b6378677e14eff12713e75e44 >}}

## Embeded PDF

{{< embed-pdf src="/files/resume.pdf" >}}
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module github.com/hugo-toha/hugo-toha.github.io

go 1.19

require github.com/hugo-toha/toha/v4 v4.0.0-20231031082454-cd2546d4e8ea // indirect
require github.com/hugo-toha/toha/v4 v4.0.0 // indirect

// replace(
// github.com/hugo-toha/toha/v4 => ../toha
Expand Down
4 changes: 4 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ github.com/hugo-toha/toha/v4 v4.0.0-20231031071528-05c9d3d850b2 h1:EkR94Ztv1Ao+i
github.com/hugo-toha/toha/v4 v4.0.0-20231031071528-05c9d3d850b2/go.mod h1:p/K34lqlqmhzfPd4cx66od7sjlROBqhMxG30mJz+aKQ=
github.com/hugo-toha/toha/v4 v4.0.0-20231031082454-cd2546d4e8ea h1:CCJ4JjZFHNWx8jLG8BQDx6Yf6pLbXY09LKgJdcUI3zc=
github.com/hugo-toha/toha/v4 v4.0.0-20231031082454-cd2546d4e8ea/go.mod h1:p/K34lqlqmhzfPd4cx66od7sjlROBqhMxG30mJz+aKQ=
github.com/hugo-toha/toha/v4 v4.0.0-20231206184850-bb9fec2e5d53 h1:sKr2HLVq1b3aFsgiXDUTneqBNnsakm0xCnxrqEFi/Oo=
github.com/hugo-toha/toha/v4 v4.0.0-20231206184850-bb9fec2e5d53/go.mod h1:p/K34lqlqmhzfPd4cx66od7sjlROBqhMxG30mJz+aKQ=
github.com/hugo-toha/toha/v4 v4.0.0 h1:rOiQeXzppzBLslTcQ1q2cqtz4KrjvYsrEVAHClbnsU8=
github.com/hugo-toha/toha/v4 v4.0.0/go.mod h1:p/K34lqlqmhzfPd4cx66od7sjlROBqhMxG30mJz+aKQ=

0 comments on commit 5707448

Please sign in to comment.