Skip to content

TickPoints/mdbook-plotly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mdbook-plotly

Crates.io Build Status License

English 中文

Project Overview

Warning

This project has not yet reached a stable release; only preview versions—still under active development—are currently available. It is not recommended for use in production projects.

mdbook-plotly is a preprocessor for mdbook, which converts specially tagged code blocks (plot or plotly) into interactive charts before generating the final HTML documentation.

It parses chart definitions structured in specific formats (currently supporting JSON5) and renders them according to the configured output format (e.g., HTML). Designed specifically for technical documentation, it enables charts to coexist seamlessly with Markdown text while ensuring reproducibility.

Getting Started

Installation

  1. Using Cargo
cargo install mdbook-plotly
# If you use binstall:
cargo binstall mdbook-plotly

Alternatively, download the latest available release for your system from the Releases page on GitHub, then add the application’s directory to your system’s PATH environment variable.

  1. Add the following to your book.toml:
[preprocessor.plotly]
after = ["links"]

Generating Charts

Insert a code block where you want the chart to appear, like this:

```plot
{}
```

For more details, refer to the User Guide.

License

This project is licensed under the MIT License. For full terms, see the LICENSE file.

Contributing

We welcome contributions of all kinds! Please follow these guidelines:

  • Before submitting a Pull Request, open an Issue first to propose new features or discuss bugs.
  • Ensure all tests pass (cargo test) and code is properly formatted (cargo fmt).
  • Use clear, descriptive commit messages.
  • Submit Pull Requests targeting the dev branch.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages