LuxDL / DocumenterVitepress.jl

Documentation with Documenter.jl and VitePress
https://luxdl.github.io/DocumenterVitepress.jl/
MIT License
64 stars 9 forks source link

Remove duplicate priority for MIME"text/html" and document priority order #52

Closed LilithHafner closed 4 months ago

LilithHafner commented 4 months ago

This is not a NFC because it changes mime_priority(MIME"text/plain"()) from 12 to 2. It would be a NFC if we removed the first definition instead of the second.

LilithHafner commented 4 months ago

This avoids a warning when building documentation:

WARNING: Method definition mime_priority(Base.Multimedia.MIME{Symbol("text/html")}) in module DocumenterVitepress at /home/runner/.julia/packages/DocumenterVitepress/vt5GZ/src/writer.jl:407 overwritten at /home/runner/.julia/packages/DocumenterVitepress/vt5GZ/src/writer.jl:417.
ERROR: Method overwriting is not permitted during Module precompilation. Use `__precompile__(false)` to opt-out of precompilation.

https://github.com/LilithHafner/Chairmarks.jl/actions/runs/8123062990/job/22203097052

LilithHafner commented 4 months ago

Duplicate of #51