Commit 99c8bd31 authored by Marien Fressinaud's avatar Marien Fressinaud

Rename output folder into site

parent 5d2ca30d
......@@ -47,7 +47,7 @@ $ boop.py
Boop!
```
Now, you should have your "production-ready" website under a `./output` folder.
Now, you should have your "production-ready" website under a `./site` folder.
For example, if your website consists in a single `index.html` page, you should
obtain the following structure:
......@@ -57,11 +57,11 @@ $ tree
.
├── content
│   └── index.html
└── output
└── site
└── index.html
```
Boop! basically just copied `content` files under a `output` directory. But it
Boop! basically just copied `content` files under a `site` directory. But it
can convert Markdown files in HTML too. For that, you'll need a template file
for articles:
......@@ -75,7 +75,7 @@ Then, you can create your Markdown file as you did with the HTML one:
```console
$ echo '# Welcome!' > content/markdown-index.md
$ boop.py
$ echo output/markdown-index.html
$ echo site/markdown-index.html
<html><body><h1>Welcome!</h1></body></html>
```
......
......@@ -68,7 +68,7 @@ def main():
raise ProgramError("./content directory does not exist")
# Make sure output dir doesn't exist
output_path = os.path.join(os.curdir, "output")
output_path = os.path.join(os.curdir, "site")
if os.path.isdir(output_path):
# it should be a directory...
shutil.rmtree(output_path)
......@@ -78,7 +78,7 @@ def main():
md = markdown.Markdown(extensions=["meta", "fenced_code", "attr_list"])
# And copy the files from ./content to ./output
# And copy the files from ./content to ./site
for filepath in dir_tree(content_path):
base, ext = os.path.splitext(filepath)
content_filepath = os.path.join(content_path, filepath)
......
Markdown is supported
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