manubot / rootstock

Clone me to create your Manubot manuscript
https://manubot.github.io/rootstock/
Other
453 stars 178 forks source link

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

Open tiwns opened 1 year ago

tiwns commented 1 year ago

Hello,

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

agitter commented 1 year ago

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

dhimmel commented 1 year ago

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).

tiwns commented 1 year ago

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.

dhimmel commented 1 year ago

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?