-
Notifications
You must be signed in to change notification settings - Fork 10
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
Clarify how to use artifact-based themes in documentation #43
Comments
The comment about only applies to < v0.9. The latest version breaks the hack above. It should correctly be classified as a hack. The proper process for using a custom theme not stored with the repo but as an artifact should be:
Assuming this is the correct process, I'm changing this issue to just add this clarification to the docs. |
Does what's described in https://michaelhatherly.github.io/Publish.jl/dev/docs/themes.html#custom-themes work, i.e. just providing a path to the directory with your custom theme files? |
Yes that works, but if the theme files are not stored as part of the repository but in the Artifacts.toml, then you need copy the artifact to whatever local path is specified under |
Ah, makes sense. Yes, docs can be improved to cover that I think. |
(Or add some kind of feature that checks for the existence of an artifact with the right name and loads that.) |
Yeah, perhaps resolving a string should first check for a folder at the given path then check for an artifact with the given name? |
That could be a reasonable route to try. Jumping through the hoops of copying an artifact first is a bit annoying. |
Currently, it seems like the only way to use PublishThemes is to override the following before building the docs:
This also applies to any theme installed via the artifacts system.
The text was updated successfully, but these errors were encountered: