I got enough of AI constantly messing up the cheatsheet conversion from Markdown to HTML, producing inconsistent results despite providing a massive, detailed prompt which tells exactly how to do things. It frickin ignores one or two instructions randomly, and rewrites the text of the cheatsheet regardless of explicitly telling it not to do so. I hate when an AI wants to outsmart me lmao.
I looked at some already available AI-free Markdown converters like Pandoc and Md2html.py but they are too limited for this usecase, they don't let to customize how to convert individual Markdown elements, customize boilerplate, etc, so I decided to write my own script, which will be tailored specifically to FosseryWeb's codebase. It will also be written with future contributors in mind. It will prompt for FosseryWeb local repo directory, cheatsheet Markdown file, and meta description (for link previews on external sites), then automatically get the directory where the Markdown file is stored (if it's saved in the right directory), and where the HTML file should be saved. The FosseryWeb repo path will also be saved to a config file, so it doesn't need to be typed out each time, will be shown as default option...
[continued in comment]
#FosseryWeb #Dev #Development #FOSS #OpenSource #FOSSProject #CodeGeneration #CodeGen #FosseryTech