Skip to content
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

GT's html export machinery does not have an obvious hookpoint to remove UUIDs from output file names #4280

Open
botwhytho opened this issue Jan 22, 2025 · 0 comments

Comments

@botwhytho
Copy link

LeHtmlBookExportCommandLineHandler>>#defaultHypertextReferenceBuilder exists and there are two classes, one that creates links between pages with .html extension and one without.

Looking at how page names get written in the output led me to LeExportPageLinksBuilder>>#buildPageLink:. Unfortunately didn't see any 'easier' option than to attach an 'instead' Metalink on that method, a rather brittle solution. Otherwise I would have to clone a bunch of classes and that defeats the purpose of being able to reuse LeHtmlBookExportCommandLineHandler, which does have some convenient customization points (and command line overrides) for other things. See the changes I had to make to the method below. Seems like the TLeExportHypertextReferenceBuilder Trait should have a bit more functionality so something like removing UUIDs from page names is possible in a custom class that uses that trait.

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant