Minification for HTML, CSS, JS, SVG, JSON, and XML
Supports syntax highlighting WITHOUT JavaScript with customizable CSS.
Supports embedding YouTube, Twitter, and Bilibili videos out of the box.
Live reload server for local development.
Various starter template to get going immediately
π You might want to use this if:
You want to focus on creating your site instead of learning the tool.
You want to build websites with Markdown and custom HTML/CSS.
You prefer a simple setup without unnecessary installations.
π Core Concepts
Minimal Config: rawdog-md is designed to be used with minimal configuration. Choose a starter template and immediately start writing your posts in markdown.
Opiniated: This tool is not meant to be a general purpose static site generator. It is meant to be used for a very specific use case, which is a static site with a few simple templated pages. If you want something more general purpose and more advanced, check out Hugo or Jekyll.
Bring your own styling: rawdog-md provides the minimal styling. However, it is very easy to adjust as it is just a plain CSS and HTML file.
Cross platform: You can use it on Windows, Linux and MacOS.
π» Installation
rawdog-md is available on Windows, Linux and MacOS. You can install it via package managers, manually, or build it from source.
β This will install the binary as rawdog-md instead of rawd
if you want to change it to rawd, you can rename the binary file in your Go bin directory.
See this reference for more information about go install.
Done!
π Usage
Create a new project and choose a preset template
rawd init
It will ask you for the project name and the template you want to use.
Then, go to the project directory
cd <your-project-name>
Start the development server
rawd watch
Open your browser and go to http://localhost:3000
To create a new post, create a new file in the pages directory. You can use Markdown, Go Template, or HTML.
To edit the template, go to the template directory.
Each time you save your changes, the server will rebuild the site and refresh the browser.
When you're done, build the site
rawd build
π€ Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.