Skip to content

Commit

Permalink
infra: share infrastructure for mdbook preprocessors
Browse files Browse the repository at this point in the history
- Create an `mdbook_trpl` library package which hosts shared concerns
  for the packages, e.g. error and config handling.
- Move `mdbook-trpl-note` and `mdbook-trpl-listing` into the new shared
  package, with binaries at `src/bin/(note|listing)/main.rs` and the
  existing libraries at `src/note/mod.rs` and `src/listing/mod.rs` with
  their associated tests.
- Extract their actual shared pieces into the crate root.

At the moment, this doesn't do a lot except trim down the number of
packages in the repository, but it sets things up nicely to support more
preprocessors (which I am going to add shortly).
  • Loading branch information
chriskrycho committed Nov 8, 2024
1 parent e16dd73 commit f4e1321
Show file tree
Hide file tree
Showing 18 changed files with 784 additions and 1,867 deletions.
1,087 changes: 0 additions & 1,087 deletions packages/mdbook-trpl-note/Cargo.lock

This file was deleted.

21 changes: 0 additions & 21 deletions packages/mdbook-trpl-note/Cargo.toml

This file was deleted.

346 changes: 0 additions & 346 deletions packages/mdbook-trpl-note/src/lib.rs

This file was deleted.

22 changes: 0 additions & 22 deletions packages/mdbook-trpl-note/tests/integration/main.rs

This file was deleted.

Loading

0 comments on commit f4e1321

Please sign in to comment.