Commit 0bfe74ae authored by berumuron's avatar berumuron
Browse files

Provide a first basic version of Boop!

parent 7dd7f2f1
# Boop! — a static site generator, for fun
# Boop! – a simple "low-tech" static site generator, for fun.
## Usage
In this section, we assume you are using Linux.
Create your website in a `./content` folder and execute the Boop! command:
$ mkdir content
$ echo '<h1>Welcome!</h1>' > content/index.html
$ ./
Now, you should have your "production-ready" website under a `./output` folder.
For example, if your website consists in a single `index.html` page, you should
obtain the following structure:
$ tree
├── content
│   └── index.html
├── output
│   └── index.html
Yeah, it's kinda too simple for the moment (it only copies the files from
`./content` to `./output`), but new features are coming soon!
#!/bin/env python3
import os
import shutil
def main():
# Make sure output dir doesn't exist (shutil will create it later)
output_path = os.path.join(os.curdir, "output")
if os.path.isdir(output_path):
# And copy the files from ./content to ./output
input_path = os.path.join(os.curdir, "content")
if os.path.isdir(input_path):
shutil.copytree(input_path, output_path)
if __name__ == "__main__":
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment