-
-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
proposal: Add option to install mdbook-mermaid
#426
Comments
I think generic preprocessor support would be awesome, there are a few I am interested in personally:
|
Other preprocessors except mdbook-admonish have pre-built binaries, so it looks possible to implement them.
|
Just as an FYI, |
I'd like to see mdbook-template as well 😄 https://github.com/sgoudham/mdbook-template/releases/tag/v1.0.0 |
I found mdbook-kroki-preprocessor, another excellent preprocessor which provides a unified API with support for many well-known textual graphs. Hope also give a support of. |
👀 |
and mdbook-katex SichangHe/mdbook_katex_static_css#8 (comment) I propose editing the title of this issue to be about Preprocessors in general. |
I'd like to add the mdbook-d2 plugin for consideration. |
I found this issue wanting support for |
I actually use |
This is the workflow I use. I don't like it but it works: name: GitHub Pages
on:
push:
branches:
- main
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
permissions:
contents: write # To push a branch
pages: write # To push to a GitHub Pages site
id-token: write # To update the deployment status
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
# Install Rust & its package manager Cargo
- name: Install cargo
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
# Cache installation assets
- name: Cache cargo registry
uses: actions/cache@v1
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
- name: Cache cargo index
uses: actions/cache@v1
with:
path: ~/.cargo/git
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
- name: Cache cargo build
uses: actions/cache@v1
with:
path: target
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
- name: Install mdbook and admonis plugin
uses: actions-rs/cargo@v1
with:
command: install
args: mdbook mdbook-admonish
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Build Book
run: |
mdbook-admonish install ./
mdbook build
touch ./book/.nojekyll
touch ./book/CNAME
echo 'lazy.rice.edu' >> book/CNAME
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: 'book'
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4``` |
I also maintain the docker image for mdBook including the following preprocessor. It seems to be useful for some of you who are using those preprocessors. https://github.com/peaceiris/docker-mdbook
|
This is useful, but it would be nice to have it within actions if possible. |
If the preprocessor publishes a binary you can add it somewhere on your path and be on your way.
If it doesn't perhaps contribute to the project with a workflow to automatically publish the binaries. |
Checklist
Describe your proposal
Have an option / boolean parameter to install https://github.com/badboy/mdbook-mermaid, which allows to compile mermaid diagrams in guides docs.
Describe the solution you'd like
A simple parameter to optionally install
mdbook-mermaid
Describe alternatives you've considered
Doing it manually
Additional context
None
The text was updated successfully, but these errors were encountered: