Skip to content

Commit

Permalink
chore: actually fix image in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
pfitzseb committed Apr 8, 2024
1 parent 25bce66 commit 37d0925
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion docs/make.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
using Documenter, Infiltrator

open(joinpath(@__DIR__, "src", "index.md"), "w") do io
println(io, "![logo](assets/logo.svg)")
println(io, """
```@raw html
<div align="center">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="assets/logo-dark.svg">
<source media="(prefers-color-scheme: light)" srcset="assets/logo.svg">
<img alt="Infiltrator Logo" src="assets/logo.svg" width="150px">
</picture>
</div>
```
""")
for line in readlines(joinpath(@__DIR__, "..", "README.md"))
startswith(line, r"\s*<") && continue
println(io, line)
Expand Down

0 comments on commit 37d0925

Please sign in to comment.