New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
create_hugo_yaml.py should clean up output directory #316
Comments
I think I just saw that as unnecessary since files would only ever be added or overwritten, never removed. Of course, the file structure looked a bit simpler at that time. Also, they are written to Hugo's main data directory where, in theory, we might add other files manually or via other scripts. If we establish that we won't ever do that, we can have the script clean it out, of course. That said, I'm not sure how this behavior could have caused a build problem? |
That PR was an unusual case where one file (J79.yaml) was removed. |
I would also suggest either:
|
Not fully possible, as generated pages must go to I'm not sure if Hugo's configuration allows nested directories; if so, |
You could copy the non generated files to the output directory when building the site. They could reside in |
As I really enjoy writing makefiles, I could write one to automate the build process into an out of tree target. It also seems cleaner to me to have a main Makefile and people can clone the repository, run Are you interested? I won't promise a date as I would view it as a relaxing activity in my spare time. |
What would be the advantage of that over, say, extending the current (I'm all for letting you do it, I mainly wonder whether it'll be harder to maintain compared to a plain bash script.) |
A simple Makefile is essentially a plain bash script. The advantage is: 1) |
I'd thought about adding a Makefile myself, so I think this would be great. At the very least, typing
|
A Makefile is also a sort of universal cue to Unix folks about how things are laid out. |
We also have a few directories with a |
I’m hoping @akoehn will find time to add that Makefile. We could reopen this or create a new issue. |
Didn't forget it, just did not have time yet to build more than the minimal makefile which essentially moves the previous build script into a Makefile target. I will create a pull request when there is something more interesting. |
like its sister scripts do. Or was this left out on purpose? This caused a build problem in #285.
The text was updated successfully, but these errors were encountered: