-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
Automate HCFILES workflow (also add "up one level" button to index.html pages) #1784
Conversation
… files/directory names are preserved since (DIRECTORY) seems to return names ia all-caps, always
… fgh_hcfiles-update will be abadoned
…l files. Move fio files to medley instead of source. Streamline doHCFILES workflow
… in the top-level index.html
…production; add doHCFILES workflow into buildReleraseInclDocker workflow
Just a heads up that visiting https://files.interlisp.org yields |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, seems to have produced good results.
I noticed that FNS MAKE-INDEX-HTMLS was on the file twice.
The medley source and derived PDFs are all under //files.interlisp.org/medley/ I think the current arrangement is fine, but I think we should wait a while before declaring these URLs are "stable". |
It might be a good idea to include the dribble file of running HCFILES or even make a separate list of files that ended in a "FAILED" rather than a "DONE". |
I will fix this to have better behavior - it will be in a PR in the Online repo, not the Medley repo. Meanwhile, as Larry mentions, the https://files.interlisp.org/medley URL does work as expected. |
Yes. I meant to at least preserve the dribble file. Plan is to put it in the loadups/ directory. Didn't get around to it in this PR, but will submit another PR soon incorporating this. Also need to document the do_hcfiles.sh script. |
Should it really be including the ".git..." (and other dot files) in what it publishes? And should it have something to set the types of (all the) files to text so that browsers don't just offer to download rather than display them? |
Please avoid making the index.html files fancier. if you want a fancier format for the index.html files, do it in another file somewhere else. I would like it to be possible to have a read-only medley sources which works by wget of the URLs. For DIRECTORY to work you need to be able to enumerate. For this to be complete we can decorate the index.html with additional metadata. Perhaps other features could be managed by css so html remains the same. It would be good to change the default font to something more appropriate for a directory listing, and whatever SEO we have to do to get Google & etc to index. On Mon, Jul 15, 2024 at 1:06 PM Nick Briggs notifications@github.com wrote: @nbriggs ".git..."
Github Pages sets file type from file extension and only allows a small number of file types. I think everything that does't have a known file extensiion is (or should be) served as application/octet-stream. But please try to avoid making the index.html files fancier. if you want a fancier format for the index.html files, do it in another file somewhere else. I would like it to be possible to have a read-only medley sources which works by wget of the URLs. For DIRECTORY to work you need to be able to enumerate. For this to be complete we can decorate the index.html with additional metadata. Perhaps other features could be managed by css so html remains the same. It would be good to change the default font to something more appropriate for a directory listing, and whatever SEO we have to do to get Google & etc to index. |
It's currently including the dot files - this is taken from the current page (though here the links are visible):
|
including the . files except for .git was intentional. They're in the repository and interesting for understanding our automation. |
I've updated the web server for files.interlisp.org so that it sets content type headers according to the following: Extension .pdf => pdf |
Fixed on file.interlisp.org server - now returns an index.html file with a single link to the medley source files. Can later expand if we serve more type of files from this server. |
Note that the indexed hcfiles includes all the files in loadups - including all sysouts. These files are not part of the repo per se. Should we arrange to skip these? |
Note that the indexed hcfiles includes all the files in loadups -
including all sysouts. These files are not part of the repo per se. Should
we arrange to skip these?
Id say leave them for now. It's easy enough to add a loadups/.skip file.
--
https://LarryMasinter.net https://interlisp.org
…On Tue, Jul 16, 2024 at 10:59 PM Frank Halasz ***@***.***> wrote:
Note that the indexed hcfiles includes all the files in loadups -
including all sysouts. These files are not part of the repo per se. Should
we arrange to skip these?
—
Reply to this email directly, view it on GitHub
<#1784 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAIQTK3BT7U23Q6SXVSCHJ3ZMYB5VAVCNFSM6AAAAABK37VJTSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZSGQ4DOMBQGU>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
|
oh |
I should be clearer about how files.interlisp.org maps file extensions to content-type of the http response. The base line is the standard mappings as found in [MIME Extension Mappings.xml](https://gist.github.com/adamfisher/16fe8c619ea389944d0f). This covers the extensions .png, .jpg, .css, .html, etc. After the base line mapping, there are three additional cases to consider:
Right now these additional cases are handled as follows:
|
This PR automates the building of HCFILES. It consists of 4 things:
The scripts/do_hcfiles.sh script. This is a loadup-style script that will run HCFILES and MAKE-INDEX-HTMLS in a Medley directory. The *.pdf and index.html files are left in the Medley directory (git clean -f from the top level will clean them out). It assumes the apps.sysout is in loadups.
doHCFILES.yml Github Actions workflow that will take the latest release, run do_hcfiles.sh, and store the resulting Medley directory up on
https://files.interlisp.org/medley
. doHCFILES.yml can be called directly from the github actions page, but is also designed to run automatically as described in unicode and FILEPOS #3.Modification to the buildReleaseIncDocker.yml workflow so that the doHCFILES workflow is run after a new release is created successfully.
Not really part of the automation - but modified the MAKE-INDEX-HTMLS function so that all index.html files (except the top level one) have a button that "goes up one level" in the directory hierarchy of Medley files.
You can go to
https://files.interlisp.org/medley
now to see the latest Medley release files.