It isn’t anything particularly amazing but I’m proud of it! Code can be found here: https://github.com/ArmoredThirteen/PysidianSiteMaker

The general use case is that I’m making a setting and I store all my notes in an Obsidian project. It used to be when I shared notes it was a giant pain trying to send people files so I decided to set up a website. I was using a tool called ObsidianHTML but it doesn’t get updated very often and I’ve had to do some questionable downgrades on my build server to keep using it. It’s also way more advanced than what I have use for and I get lost in the aging documentation

So now I’m building a replacement command line tool! My build server picks up on changes made to the settings repo, pulls them in and my PSM code, converts the vault to an html website, and deploys from there. Bonus points is that since my tool is so dedicated purpose the build times have been cut so I can deploy faster than ever

I’ve never made anything like this before and I’m admittedly not great at Python, I’ve spent most my time in C#. I know there are lots of areas that aren’t written the best and I’m sure there’s plenty I don’t know about too, despite the small size. I’m always up for feedback!

  • Eager Eagle@lemmy.world
    link
    fedilink
    English
    arrow-up
    5
    ·
    16 days ago

    The fastest way to learn best practices in Python is to use a linter like Ruff. It also features a formatter so you don’t have to spend time beautifying the code.