Copy website images to data folder when flattening#93
Copy website images to data folder when flattening#93spatial-eli wants to merge 1 commit intoCCOMJHC:mainfrom
Conversation
|
@brian-r-calder, I don't have permission to request a reviewer. How does it normally work on your side? Do people tag you in comments? |
To be honest, we haven't really had to deal with this before ... I'll check on the permissions, but in the meantime I'm adding myself and Brian Miles to this so that we get it reviewed and merged. I'm surprised: I thought we had done this already in the code. Thanks for the PR! |
Ok, so do you typically handle the merge yourself, then? Also, are PRs a good place to suggest changes in the wiki, or do you have another procedure for that? In this case, it's quite minor but this line |
brian-r-calder
left a comment
There was a problem hiding this comment.
I'm not entirely clear what the intent is for this PR.
We generally build the website for the firmware using the compile_website.sh script, which compiles down the JavaScript, uses the inline_flatten.py script to flatten the website into one-file HTML, and then makes the icon image and copies it and the other images into the website build directory (data/website).
The proposed PR only does part of this (i.e., copying the images into place). If the intent was to replace the compilation script, it needs to do all of the other things too; if the intent was just to package up images, then the compilation script already does that and this PR is redundant.
Could you please clarify the intent?
Yes, we're doing the merges ourselves for now (mostly because we've been the only ones contributing so far). That's something we could review in the future. The Wiki is a repository in itself, and can be cloned, but so far as I can tell there's no way to make formal PRs on it. Again, this is something that we haven't had to really tackle much before, so we're open to suggestions for how to do this well. |
I didn't use compile_website.sh, I followed the first steps in wiki that says to run inline_flatten.py, then manually copy the folder. I only just noticed that it does mention it can be achieved with compile_website.sh if Google Closure Compiler is installed. Maybe the wiki should start with that if that is the preferred approach? If you feel copying the folder shouldn't be part of flattening, that's fine, please ignore the PR. Moving the code there instead of in the sh file would work for both scenarios though. |
No description provided.