Skip to content

Latest commit

 

History

History

mdbook

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

mdbook docs for svgdx

This directory contains the documentation for svgdx in mdbook format.

At present it is a work-in-progress...

The mdbook-svgdx preprocessor

As well as mdbook itself, these docs use the mdbook-svgdx preprocessor to render embedded svgdx fragments.

Embedded svgdx fragments in these docs assume the latest version of svgdx (i.e. the main branch of this repo), and may not build correctly after a simple cargo install mdbook-svgdx. To build against the latest svgdx, the mdbook-svgdx repository should be cloned and built (cargo build --release) after making a change analogous to the following in its Cargo.toml:

--- a/Cargo.toml
+++ b/Cargo.toml
@@ -16,7 +16,7 @@ pulldown-cmark = "0.10"
 pulldown-cmark-to-cmark = "14.0"
 semver = "1.0"
 serde_json = "1.0"
-svgdx = { version = "0.16.0", default-features = false }
+svgdx = { path = "../svgdx", default-features = false }

 [dev-dependencies]
 assertables = "9.5.0"

(assuming that mdbook-svgdx and svgdx repositories are both checked out at the same level within the filesystem.)

The generated mdbook-svgdx executable should be available in the system PATH.

Building and updating the docs

Install mdbook with cargo install mdbook, and the mdbook-svgdx pre-processor as in the previous section.

Build the documentation using:

mdbook build

When editing the documentation, the following is often more helpful:

mdbook serve --open

See the mdbook documentation for more information.