chirun-ncl / chirun

A Python package providing the command line interface for building flexible and accessible content with Chirun.
https://chirun.org.uk/
Other
29 stars 4 forks source link

Truncate long filenames to prevent error on Windows again #201

Closed prowlett closed 9 months ago

prowlett commented 9 months ago

To resolve issue #51 George made the generated filenames be based on truncated versions of the page titles. The issue was that I was building a course that @Alex-Corner couldn't pull via GitHub to his Windows machine because it couldn't cope with the long paths. At some point recently, chirun has started making longer filenames and now Alex can't pull our GitHub repo again. Can you arrange for chirun to return to shorter filenames?

prowlett commented 9 months ago

Just as a for example, we're getting filenames like

that last year were like

christianp commented 9 months ago

Sorry about this! I didn't write down a justification for why I stopped truncating filenames, and I must have forgotten about the original issue; because George didn't tag it in the commit, I didn't see it when looking through the commit history.