mettu (మెట్లు, /ˈmɛt.t̪u/) is a simple static site generator that uses Python for backend processing and Vite for frontend development, with Tailwind and DaisyUI for styling. It allows you to create static websites using markdown files.
"mettu" is a Telugu word meaning a stair or step. It felt like a great name given that this project is a step towards building tools myself, and convieniently, a step towards making a site!
- Python 3.x
- Node.js and npm
- Vite
- Tailwind CSS and DaisyUI
- Clone the repository
- Install the required dependencies
pip install -r requirements.txt npm install -D vite tailwindcss daisyui @tailwindcss/vite postcss glob
- Create a
.envfile in the root directory and set the environment variables "PY_EXECUTABLE" and "PYGMENTIZE_THEME". - Edit the
config.yamlfile to set your site name, author, and navigation links. - Create markdown files in the
contentdirectory. Each file should start similarly to the given examples. - Templates and svg icons are located in the
templatesdirectory. You can customize them as needed. - Assets like css, images, etc are placed in the
assetsdirectory. - Run the development server
npm run dev
- Build the site for production
npm run build