Support exhibitfiles to set files that need to be "exhibited" in the current workspace; fix a typo#417
Support exhibitfiles to set files that need to be "exhibited" in the current workspace; fix a typo#417myhsia wants to merge 10 commits into
exhibitfiles to set files that need to be "exhibited" in the current workspace; fix a typo#417Conversation
- Support `exhibitfiles` to set files that need to be "exhibited" in the current workspace
| end | ||
| end | ||
| for _,i in ipairs(exhibitfiles) do | ||
| cp(i, unpackdir, currentdir) |
There was a problem hiding this comment.
doesn't this assume currentdir is maindir, which may often not be the case?
|
I think this would be better accommodated by implementing existing requests for additional hooks e.g. |
Actually, in order to handle this problem, I used a "trick" function docinit_hook()
cp(ctanreadme, unpackdir, currentdir)
return 0
endin some of my packages. The |
|
Anyone to review it? @davidcarlisle @josephwright @cfr42 |
|
you move the files into but I am not sure sure since ctan want to have the readme at the top level, I'm not quite seeing how it makes sense to have it in a |
|
but you need to ask the maintainers to consider this rather than me ;). |
Support
exhibitfilesto set files that need to be "exhibited" in the current workspaceSome users merge a
README.mdfile, for example, into a*.dtxfile.Once they change the markdown file, they should modify the source
*.dtxfile.But
l3buildwon't move the generated (unpacked) markdown file to the main directory (corresponding tocurrentdirinl3build-variables), and users usually need to keep the markdown file (or other files) in the main directory so that it can be displayed on the GitHub repository homepage.So, a variable
exhibitfilesis added: afterunpackis executed, the enumerated text files will be copied fromunpackdirtocurrentdir; and certainly, theseexhibitfileswill be cleaned afterl3build clean.Fix a typo
In
l3build.dtx, line 2249:\loggingoutputis misspelled in themacroenvironment.