{"repo":"saturngod/gantha","free":true,"listed":false,"github":"https://github.com/saturngod/gantha","clone":"git clone https://github.com/saturngod/gantha.git","description":"Markdown Book to Website , Gantha = ဂန္ထ","language":"HTML","stars":14,"topics":["book","markdown","myanmar"],"license":null,"category":"productivity","readme_excerpt":"Gantha - Ebook Builder Gantha is a tool to build static ebook websites from markdown files, optimized for Myanmar content. Usage 1. Define your book structure in toc.json . You can use bun update-toc.js that will generate toc base on md files. 2. Run bun run build . 3. The output will be in the build/ directory. Plugin System Gantha supports a plugin system to extend functionality. You can add plugins to process markdown content, manipulate HTML output, or hook into the build lifecycle. Using Plugins To use a plugin, add it to the plugins array in your toc.json file. You can use both NPM packages and local files. 1. NPM Package Install the plugin via your package manager (e.g., bun add gantha-pdf ) and add its name to toc.json . 2. Local Plugin Create a plugin file (e.g., plugins/my-plugin.ts ) and add its relative path to toc.json . Developing Plugins Plugins should export an init function that receives a PluginContext . We recommend writing plugins in TypeScript. Example Plugin ( my-plugin.ts ): Available Hooks - beforeBuild : Executed before any build steps. - processMarkdown : Transform raw markdown content. Receives string, returns string (or Promise ). - processHTML : Transform generated HTML content. Receives string, returns string (or Promise ). - afterBuild : Executed after all files are generated.","default_branch":null,"files":null,"tree":[],"storefront":"/r/saturngod","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/saturngod/gantha/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}