rootstock icon indicating copy to clipboard operation
rootstock copied to clipboard

Change the name of the generated output pdf and .docx files

Open tiwns opened this issue 1 year ago • 4 comments

Hello,

How can I change the name of the generated files manuscript.pdf and manuscript.docx during the build process?

tiwns avatar Aug 09 '23 19:08 tiwns

The output filenames are not configurable. You could modify the build script build/build.sh to mv these files after they are generated and rename them, but that could have unintended consequences. For instance, the Manubot command that versions manuscripts assumes particular filenames https://github.com/manubot/manubot/blob/f62dd4cfdebf67f99f63c9b2e64edeaa591eeb69/manubot/webpage/webpage_command.py#L142

agitter avatar Aug 09 '23 21:08 agitter

If you elaborate where and why you want to change the names, perhaps we can find a solution that is specific to that context (like @agitter's suggestion to modify build/build.sh).

dhimmel avatar Aug 09 '23 21:08 dhimmel

Basically, I would like the names of the docx and pdf files to have names associated with the project and not the generic 'manuscript'. I distribute these files later in SharePoint and would like the name change to be a part of the automated process.

tiwns avatar Aug 09 '23 22:08 tiwns

Got it. And are you downloading the files from the output or gh-pages branch on github, as created by github actions or are you distributing files you create locally?

dhimmel avatar Aug 10 '23 20:08 dhimmel