Markdown to Dash Docset
Dash was my favorite documentation app on macOS. Besides reading tech docs, I also use it for reading tech books due to its handy search functionalities.
This python utils was created for converting ebook written in markdown to HTML files, that are suitable for generating Dash docset later on. It's written in jupyter format for easy debugging and exploratory coding. So you have to run with VSCode instead of running directly with python.
Tech Details
- Jupyter in VSCode for exploratory programming
- YAML for configuration
- Pygments as syntax highlighter
- less css as css preprocessor
- BeautifulSoup for manipulating HTML elements (insert, append...etc)
After creating the HTML files, generate Dash docset with dashing CLI.
Python Packages
Usage
- put markdown files in
src
folder - edit config.yaml to suit your package
- replace icon.png
- run all cells in md2html.py in VSCode
- in terminal
- cd output
- run
dashing build <package_name>
Need Help?
Open a github issue or ping me on Twitter