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
new Makefile, copy static files from other directory #347
Conversation
Thanks for the PR! I can see that this is already quite handy for only performing specific steps of the build chain, without having to know or look up the exact commands to achieve them. Some comments:
|
Re 1.: That is an error, I was obviously too tied yesterday; I thought I did a Yes, please consider this a work in progress. I just wanted early feedback. That would certainly be possible, the dependencies can be provided by an external program. This would however mean that the python scripts can be instructed to only (re-)generate a subset of the data. I had a short look at that and we could discuss it later. |
An addendum: I tried the |
Thanks for this! It's a minor aesthetic detail that I could easily adapt to, but I dislike having a |
Files previously residing in hugo/ are now copied as part of the build process, the website is built into build/. This way, rm -rf build cleans everything. The website to be published is generated into the directory build/anthology by default, reflecting the directory name used on the upstream server. This directory can be configured using make ANTHOLOGYDIR=someotherdir. The Makefile consists of a set of phony targets, each building a part of the site. Relevant targets: - site: creates the site - all: cleans output, checks validity of XML and creates the site - serve: starts a web server on localhost:8000 to browse the site - upload: rsyncs the site to the aclweb webserver
I have updated the pull request:
|
Oh, I forgot to mention, as I stated this PR to be preliminary before: Please have a look and if it looks good to you (@mjpost, @mbollmann), I'll merge it. |
This is great. I had to make one small change since the (I think you saw I had you added as a contributor. Feel free to use local branches now, which make updating easier) |
I merged it locally, since I couldn't update your branch, but also Github wouldn't let me create a new PR since it tied the branch I created to your remote PR, somehow. Sorry to deny you the pleasure of closure! |
Introduces a basic Makefile, as discussed in #316.
Files previously residing in hugo/ are now kept in hugo-src and copied
as part of the build process, so that rm -rf hugo cleans everything.
The Makefile consists of a set of phony targets, each building a part
of the site.
Relevant targets:
This means:
make all serve
will rebuild the site from scratch and start a webserver,make all upload
will rebuild the site and upload it to the official web server.Comments welcome!