Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ohno committed Nov 30, 2023
1 parent a508fb7 commit 851b250
Show file tree
Hide file tree
Showing 5 changed files with 1,047 additions and 143 deletions.
6 changes: 3 additions & 3 deletions docs/jmd2md.jl
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
using Antiq
using Weave

for file in Antiq.models
for file in Antiq.models # [:InfinitePotentialWell]
weave("./src/jmd/$file.jmd", doctype="github", out_path="./src/", fig_path="./assets/fig/")
text = Antiq.load("./src/$file.md")
# remove ``` after include(...s)
for m in eachmatch(r"\.jl\"\)\n```[.\n]*?```", text)
for m in eachmatch(r"\n```julia\n.*?jl\"\)\n```[.\n]*?```", text)
@show m.match
@show m.offset
text = replace(text, m.match => ".jl\")\n```")
text = replace(text, m.match => "")
end
# remove ``` at the end of file
for m in eachmatch(r"```\n```[\s\n]*?\z", text)
Expand Down
Loading

0 comments on commit 851b250

Please sign in to comment.