mdbook-metadata

Crates.iomdbook-metadata
lib.rsmdbook-metadata
version0.1.1
sourcesrc
created_at2024-04-04 22:53:23.610733
updated_at2024-04-05 22:28:22.826211
descriptionmdBook preprocessor to parse markdown metadata
homepagehttps://github.com/jeffersonroth/mdbook-metadata
repositoryhttps://github.com/jeffersonroth/mdbook-metadata
max_upload_size
id1196872
size67,623
Jefferson Johannes Roth Filho (jeffersonroth)

documentation

README


Logo

mdBook Metadata Preprocessor

mdBook preprocessor to parse markdown metadata.

Table of Contents
  1. Getting Started
  2. License
  3. Contact

Getting Started

  1. Install the cli tool:

    cargo install mdbook-metadata
    
  2. Add the preprocessor to your book.toml file:

    [preprocessor.metadata]
    valid-tags = ["title", "author", "keywords", "released"]
    default-author = "Jane Doe"
    continue-on-error = true # default: true
    
  3. Add metadata to your markdown file:

    ---
     title: Example
     author: Your Name
     keywords: tag1, tag2
     released: false
     ---
    
     # Example
    
  4. Build your book and serve it locally:

    mdbook serve --hostname 0.0.0.0
    
  5. Verify the rendered html head tags are correct (title and meta).

License

Copyright (C) 2024 Jefferson Johannes Roth Filho. See LICENSE for more information.

Contact

Jefferson Roth - jjrothfilho@gmail.com

Project Link: https://hub.docker.com/r/jeffroth/mdbook-metadata

crates.io: mdbook-metadata

Commit count: 9

cargo fmt