From 9d839fcd136d37af420d66282a08f06e7502c0e1 Mon Sep 17 00:00:00 2001 From: m0ham3dx <82266083+m0ham3dx@users.noreply.github.com> Date: Sat, 7 Jan 2023 16:30:06 +0000 Subject: [PATCH 1/4] CI trigger test with changes --- .github/workflows/book.yml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/book.yml b/.github/workflows/book.yml index ad03416cb..82ed3c55e 100644 --- a/.github/workflows/book.yml +++ b/.github/workflows/book.yml @@ -1,15 +1,21 @@ name: book on: push: - branches: [master] + branches: + - master + - P1 paths: - 'book/**' - 'book.toml' + - '.github/workflows/*' pull_request: - branches: [master] + branches: + - master + - P1 paths: - 'book/**' - 'book.toml' + - '.github/workflows/*' jobs: build: @@ -23,6 +29,8 @@ jobs: run: | mkdir mdbook curl -sSL https://github.com/rust-lang/mdBook/releases/download/v0.4.21/mdbook-v0.4.21-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=./mdbook + curl -sSL https://github.com/tommilligan/mdbook-admonish/releases/download/v1.8.0/mdbook-admonish-v1.8.0-x86_64-unknown-linux-gnu.tar.gz| tar -xz --directory=./mdbook + curl -sSL https://github.com/badboy/mdbook-mermaid/releases/download/v0.12.6/mdbook-mermaid-v0.12.6-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=./mdbook echo `pwd`/mdbook >> $GITHUB_PATH - name: Install mdbook-template @@ -32,7 +40,10 @@ jobs: echo `pwd`/mdbook-template >> $GITHUB_PATH - name: Build - run: mdbook build + run: + mdbook-admonish install + mdbook-mermaid install + mdbook build - name: Save pages artifact uses: actions/upload-pages-artifact@v1 From 08bd663a67b4a6399d5ee6d5b44fd11ceac40bf6 Mon Sep 17 00:00:00 2001 From: m0ham3dx <82266083+m0ham3dx@users.noreply.github.com> Date: Sat, 7 Jan 2023 16:32:27 +0000 Subject: [PATCH 2/4] CI trigger test with changes - type fix --- .github/workflows/book.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/book.yml b/.github/workflows/book.yml index 82ed3c55e..c4c255684 100644 --- a/.github/workflows/book.yml +++ b/.github/workflows/book.yml @@ -40,7 +40,7 @@ jobs: echo `pwd`/mdbook-template >> $GITHUB_PATH - name: Build - run: + run: | mdbook-admonish install mdbook-mermaid install mdbook build From 521b42215d4fadeb00d3e53ef8e10b806716e66e Mon Sep 17 00:00:00 2001 From: m0ham3dx <82266083+m0ham3dx@users.noreply.github.com> Date: Sat, 7 Jan 2023 16:38:15 +0000 Subject: [PATCH 3/4] Post Trigger Rendering Test --- book/getting-started/intro.md | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/book/getting-started/intro.md b/book/getting-started/intro.md index 1345ffb82..56fb2c150 100644 --- a/book/getting-started/intro.md +++ b/book/getting-started/intro.md @@ -5,4 +5,31 @@ This documentation contains a collection of examples demonstrating how to use th Each example includes a detailed description of the functionality being demonstrated, as well as complete code snippets that you can use as a starting point for your own projects. -We hope that these docs will help you get started with ethers-rs and give you a better understanding of how to use the library to build your own web3 applications in Rust. If you have any questions or need further assistance, please don't hesitate to reach out to the ethers-rs community. \ No newline at end of file +We hope that these docs will help you get started with ethers-rs and give you a better understanding of how to use the library to build your own web3 applications in Rust. If you have any questions or need further assistance, please don't hesitate to reach out to the ethers-rs community. + + +# Section Test + +## Admonition Blocks + +```admonish info +A beautifully styled message. +``` + +```admonish example +My example is the best! +``` + +```admonish +A plain note. +``` + +## Mermaid Diagrams + +```mermaid +graph TD; + A-->B; + A-->C; + B-->D; + C-->D; +``` From a1721e17a2c9197374eafa9ced8053d7bbd388df Mon Sep 17 00:00:00 2001 From: m0ham3dx <82266083+m0ham3dx@users.noreply.github.com> Date: Sat, 7 Jan 2023 17:01:28 +0000 Subject: [PATCH 4/4] remove actions triggers on P1 branch used during testing --- .github/workflows/book.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/book.yml b/.github/workflows/book.yml index c4c255684..e1b2947d5 100644 --- a/.github/workflows/book.yml +++ b/.github/workflows/book.yml @@ -1,21 +1,16 @@ name: book on: push: - branches: - - master - - P1 + branches: [master] paths: - 'book/**' - 'book.toml' - - '.github/workflows/*' + pull_request: - branches: - - master - - P1 + branches: [master] paths: - 'book/**' - 'book.toml' - - '.github/workflows/*' jobs: build: