Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
The main purpose of this module is generating the images found within the haddock documentation of this package.
Synopsis
- main :: IO ()
- renderAll :: FilePath -> IO ()
- renderExamples :: FilePath -> IO ()
- renderIcons :: FilePath -> IO ()
- renderImages :: FilePath -> IO ()
- renderTest :: FilePath -> Svg -> IO ()
Documentation
renderAll :: FilePath -> IO () Source #
Renders all icons and images from this package into the target directory. This is used to generate the example SVGs found in this documentation.
The directory is created if it does not exist, and some subdirectories are created to distinguish between icons or images.
WARNING: this function deletes the target directory and then creates it again. Be careful.
renderExamples :: FilePath -> IO () Source #
Renders the examples from Icons
module
into the targeted directory.
renderIcons :: FilePath -> IO () Source #
Renders all icons into the targeted directory.
All icons are rendered in a viewbox "-1 -1 2 2"
and
with 3 style variants:
- Black fill and no stroke
- Black stroke and no fill
- Silver fill and black stroke
renderImages :: FilePath -> IO () Source #
Renders all images into the targeted directory.