-
Notifications
You must be signed in to change notification settings - Fork 0
/
examples.udf
1 lines (1 loc) · 1.56 KB
/
examples.udf
1
{"data": {"Making-Books": {"action": "+d"}, "examples/Making-Books/sample_book.py": {"action": "+", "data": "import tinybook as bm\nbook = bm.makebook\nmd = book.metadata\nmd.version()\nmd.title(\"Testbook\")\nmd.pages(1)\nmd.chapters({\"1\":\"hi\"})\nbook.add.page('1',{\"h\":\"I told you\",'p':\"THIS is the hard way\"})\nbook.make('test')"}, "examples/Making-Books/generator.py": {"action": "+", "data": "import tinybook as bm\nbook = bm.makebook\nmd = book.metadata\nmd.version()\nmd.title(\"Testbook\")\ngen = bm.Generator.generate\nc = gen.chapters.make([['1',\"A Test\"]])\npage = gen.page.heading('This is a heading','1')\npage2 = gen.page.paragraph('This is a paragraph')\npage3 = gen.page.text('This is text','')\nmd.pages(1)\nfe = gen.page.join([page,page2,page3])\nmd.chapters(c)\nbook.add.page(1,fe)\nbook.make('testbooki')"}, "Reading-Books": {"action": "+d"}, "examples/Reading-Books/sample_terminal.py": {"action": "+", "data": "import tinybook\n\nInput = input('Enter a tinybook filename:')\ntinybook.read.term_ready(Input)\n"}, "examples/Reading-Books/sample_rendermarkdown.py": {"action": "+", "data": "import tinybook as tb\n\nprint(tb.read.rendermarkdown('testbooki.tb'))"}, "examples/Reading-Books/sample_renderhtml.py": {"action": "+", "data": "import tinybook as tb\nprint(tb.read.renderhtml('testbooki.tb'))"}, "examples/Reading-Books/testrender.md": {"action": "+", "data": "# A Test \n***\n## This is a heading \nThis is a paragraph\n\nThis is text \n###### Page 1 of 2 \n***\n# HI \n## This is a heading \nThis is a paragraph\n\nThis is text \n###### Page 2 of 2 "}}}