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

html_extra_path to copy the custom file to the simplepdf build root directory #64

Open
sachin-suresh-rapyuta opened this issue Jan 31, 2023 · 1 comment

Comments

@sachin-suresh-rapyuta
Copy link

Is there a html_extra_path configuration option in simplepdf?

For example, if I want to copy a custom file, say test.html to the html's build root directory, in conf.py, I can do so by:

html_extra_path = ['user/test.html'] //user/test.html gets copied to build/html

How to achieve this for simplepdf? i.e., to copy user/test.html to /simplepdf

@danwos
Copy link
Member

danwos commented Jan 31, 2023

This is not supported, as Sphinx-SimplePDF needs a single HTML file, which is created by Sphinx.

I don't know if there is a mechanism inside Sphinx, which can merge the Sphinx-SingleHTML output with data from additional HTML files. I would guess not, as this is quite complex and use case specific.

Maybe a better approach would be to use the Sphinx Jinja Template system to define additional HTML content for the later SingleHTML build.

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

2 participants