Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
wanghaisheng committed Jul 26, 2024
1 parent 9ac26fa commit 521ad0f
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -631,12 +631,14 @@ def run(env: str = "development", power: int = 16):
template_ = booster.overload_tasks()

# Replace project README file.
if env == "production":
with open(SERVER_PATH_README, "w", encoding="utf8") as f:
for i in template_:
f.write(i)

shutil.copyfile(SERVER_PATH_README, os.path.join(SERVER_PATH_DOCS, "index.md"))
if render_style=='mkdocs':

if env == "production":
with open(SERVER_PATH_README, "w", encoding="utf8") as f:
for i in template_:
f.write(i)

shutil.copyfile(SERVER_PATH_README, os.path.join(SERVER_PATH_DOCS, "index.md"))

if __name__ == "__main__":

Expand Down

0 comments on commit 521ad0f

Please sign in to comment.