2024-12-26 20:05:00
github.com
Automatically generate a website on GitHub Pages using Markdown files as the source!
Markdown in, GitHub Pages out!
Your own Markdown blog on GitHub in under 60 seconds:
- Fork SkunkHTML repository on GitHub.
- Enable GitHub Pages in the repository settings (choose GitHub Actions as the source).
- Done! Your blog is online! Example: https://max.gripe/skunk-html/
Upload Markdown (.md) files to publish new posts.
When a Markdown (.md) file is created and placed in the /markdown-blog/
folder, the rest happens automagically. GitHub Actions detects changes pushed to the repository, triggers the build process, and deploys the updated site.
-
Blog articles and other content are written in Markdown, allowing for easy content creation and management. These Markdown files are automatically converted to HTML during the build process using F# and the FSharp.Formatting library.
-
The deployment process is fully automated using GitHub Actions. Any changes to this repository are immediately reflected on the live site.
-
Giscus comment system is supported.
-
The repository is 100% ready to work directly on GitHub without the need to download it locally. Simply fork it to create your own website. Don’t forget to enable GitHub Pages in repo! (Settings ➔ Pages ➔ Build and deployment: “GitHub Actions”).
-
/
: Root directory of the project..github/workflows/
: GitHub Actions workflow file. Responsible for automatically generating final website on GitHub Pagesassets/
: Files used across the entire site, such as the avatar, favicon, and other shared resources.css/
: CSS files for the site.fonts/
: Custom fonts go here.html/
: HTML fragments used throughout the site, such as the title and footer.markdown-blog/
: Directory containing the Markdown files for articles and other content. Blog articles are identified by file names that start with a digit.images/
: Images used in the articles.
scripts/
: Syntax highlighting script and optionally other custom scripts..skunk-html-output/
: Directory that will be created during the build process, with the generated HTML files.
-
LICENSE
: License file for the project. -
Program.fs
: F# program that handles the generation of HTML from Markdown -
README.md
: This file. -
skunk-html.fsproj
: Project file
Detailed examples can be found at: https://max.gripe/skunk-html
Feel free to post in the discussions section for suggestions, open an issue to report problems, or submit a pull request if you’d like to contribute improvements to the site. Your input is always welcome!
This project is licensed under the terms of the Unlicense.
It also uses some external stuff, each with its own license:
Although GitHub builds and hosts this site excellently, if you really want to, you can build your blog locally, for example to host it yourself. To do this:
- Download and install .NET on Linux / macOS / Windows
- Run the following commands
git clone https://github.com/MaxGripe/skunk-html.git
cd skunk-html
dotnet restore
dotnet run
- Done. Your site is in the
skunk-html-output
folder.
Keep your files stored safely and securely with the SanDisk 2TB Extreme Portable SSD. With over 69,505 ratings and an impressive 4.6 out of 5 stars, this product has been purchased over 8K+ times in the past month. At only $129.99, this Amazon’s Choice product is a must-have for secure file storage.
Help keep private content private with the included password protection featuring 256-bit AES hardware encryption. Order now for just $129.99 on Amazon!
Support Techcratic
If you find value in Techcratic’s insights and articles, consider supporting us with Bitcoin. Your support helps me, as a solo operator, continue delivering high-quality content while managing all the technical aspects, from server maintenance to blog writing, future updates, and improvements. Support Innovation! Thank you.
Bitcoin Address:
bc1qlszw7elx2qahjwvaryh0tkgg8y68enw30gpvge
Please verify this address before sending funds.
Bitcoin QR Code
Simply scan the QR code below to support Techcratic.
Please read the Privacy and Security Disclaimer on how Techcratic handles your support.
Disclaimer: As an Amazon Associate, Techcratic may earn from qualifying purchases.