Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
berumuron
Boop
Commits
6140349a
Commit
6140349a
authored
Dec 13, 2018
by
berumuron
Browse files
imp: Move the static folder into the root folder
parent
c9eff5a1
Changes
2
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
6140349a
...
...
@@ -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
```
...
...
boop.py
View file @
6140349a
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment