rwilson504 / DocFX.Plugin.ImageToDataUri

A DocFx post processor that converts the src attribute of referenced images to their data-uri.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DocFX.Plugin.ImageToDataUri

Build and Package
A DocFx post processor that converts the src attribute of referenced images to their data-uri.

From this:
Original image src

To this:
Updated image src

Installation/Usage

  1. Create a new folder called image-datauri in your DocFx template folder
  2. Create a new folder called plugins within the new image-datauri folder.
  3. Copy the compiled binaries into the plugins folder
  4. Open the docfx.json file and add the new template folder.
    "teamplate": [
    "default",
    "templates/image-datauri"
    ],
    
  5. Add this post-processor plugin to the array
    "postProcessors" : ["ImageToDataUriPostProcessor"]
    
  6. Run docfx build in the command line

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

About

A DocFx post processor that converts the src attribute of referenced images to their data-uri.

License:MIT License


Languages

Language:C# 100.0%