Skip to content
b3m2a1 edited this page Jul 7, 2018 · 1 revision

BTools supports a number of web-content related functions. First load the package:

<<BTools`Web`

Markdown Parsing

BTools uses a Markdown -> XML transform when making websites. This is all handled by the MarkdownToXML function.

MarkdownToXML@
  ReadString@FileNameJoin@{NotebookDirectory[], "Web.md"}//Short[#, 5]&
(*Out:*)

XMLElement["html",<<1>>,{XMLElement["body",{},{XMLElement["p",{},{"BTools supports a number of web-content related functions. First load the package:"}],<<8>>,XMLElement["p",{},{"This is mostly used as the back-end for the MarkdownNotebook stylesheet. See the ",XMLElement["a",{"href"->""…"b"},{"Example Notebook"}],"  for more."}]}]}]

Notebook to Markdown

This is mostly used as the back-end for the MarkdownNotebook stylesheet. See the Example Notebook for more.

Site Building

There is a full website building framework built into BTools. It works as a static site generator and generated all of the content seen here automatically from a collection of notebooks. It also made every part of the tutorial here .

If there's interest let me know and I'll write a custom guide page for this.

Clone this wiki locally