drasil-printers-0.1.10.0: A framework for code and document generation for scientific software - Printers SubPackage
Safe HaskellSafe-Inferred
LanguageHaskell2010

Language.Drasil.JSON.Helpers

Description

Defines helper functions for creating jupyter notebooks.

Synopsis

Documentation

data Variation Source #

Constructors

Class 
Id 

tr :: Doc -> Doc Source #

Table row tag wrapper

td :: Doc -> Doc Source #

Table cell tag wrapper

figure :: Doc -> Doc Source #

Figure tag wrapper

li :: Doc -> Doc Source #

List tag wrapper

pa :: Doc -> Doc Source #

Paragraph in list tag wrapper

ba :: Doc -> Doc Source #

Bring attention to element wrapper.

ol :: [String] -> Doc -> Doc Source #

Ordered list tag wrapper

ul :: [String] -> Doc -> Doc Source #

Unordered list tag wrapper

table :: [String] -> Doc -> Doc Source #

Table tag wrapper

wrap :: String -> [String] -> Doc -> Doc Source #

wrap' :: String -> [String] -> Doc -> Doc Source #

wrapGen' :: ([Doc] -> Doc) -> Variation -> String -> Doc -> [String] -> Doc -> Doc Source #

reflink :: String -> Doc -> Doc Source #

Helper for setting up links to references

reflinkURI :: String -> Doc -> Doc Source #

Helper for setting up links to external URIs

image :: Doc -> Doc -> MaxWidthPercent -> Doc Source #

Helper for setting up figures

h :: Int -> Doc Source #

br :: Doc -> Doc Source #

Curly braces.

mkDiv :: String -> Doc -> Doc -> Doc Source #

markdownB :: Doc Source #

Helper for building Markdown cells

markdownB' :: Doc Source #

Helper for building Markdown cells

markdownE :: Doc Source #

Helper for building Markdown cells

markdownE' :: Doc Source #

Helper for building Markdown cells

codeB :: Doc Source #

Helper for building code cells

codeE :: Doc Source #

Helper for building code cells

markdownCell :: Doc -> Doc Source #

Helper for generate a Markdown cell

codeCell :: Doc -> Doc Source #

Helper for generate a code cell

makeMetadata :: Doc Source #

Generate the metadata necessary for a notebook document.