Commit 6140349a authored by Marien Fressinaud's avatar Marien Fressinaud

imp: Move the static folder into the root folder

parent c9eff5a1
......@@ -154,7 +154,7 @@ without its extension. A default value for `author` can be set in the
`configuration.yml` file. `date` and `update` must follow this format:
`YYYY-MM-DD HH:MM`.
The `./theme` folder can contain a `static` folder as well. Its content will be
The root folder can contain a `static` folder as well. Its content will be
copied under the `./site` folder:
```console
......@@ -168,9 +168,9 @@ $ tree
│   ├── index.html
│   ├── my-article.html
│   └── style.css
├── static
│   └── style.css
├── theme
│   ├── static
│   │   └── style.css
│   └── article.html
└── index.html
```
......
......@@ -138,9 +138,9 @@ def main():
index_output_filepath = os.path.join(output_path, "index.html")
shutil.copyfile(index_filepath, index_output_filepath)
# Check that a ./theme/static folder exists and copy its content under the
# ./site folder
static_dirpath = os.path.join(os.curdir, "theme", "static")
# Check that a ./static folder exists and copy its content under the ./site
# folder
static_dirpath = os.path.join(os.curdir, "static")
if os.path.isdir(static_dirpath):
distutils.dir_util.copy_tree(static_dirpath, output_path)
......
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