mirror of
https://github.com/adoyle0/leptos-use.git
synced 2025-02-02 10:54:15 -05:00
fixed book demos build
This commit is contained in:
parent
c45c31fa9a
commit
550a8004d8
1 changed files with 2 additions and 1 deletions
|
@ -2,6 +2,7 @@ import os
|
|||
import shutil
|
||||
import subprocess
|
||||
import sys
|
||||
import re
|
||||
|
||||
|
||||
def main():
|
||||
|
@ -43,7 +44,7 @@ def build_and_copy_demo(category, md_name):
|
|||
html = f.read()
|
||||
head_split = html.split("<head>")
|
||||
target_head = head_split[1].split("</head>")[0]
|
||||
body_split = html.split("<body>")[1].split("</body>")
|
||||
body_split = re.split("<body[^>]*>", html)[1].split("</body>")
|
||||
target_body = body_split[0]
|
||||
|
||||
with open(book_html_path, "w") as f:
|
||||
|
|
Loading…
Add table
Reference in a new issue