Skip to content

Commit e4f2715

Browse files
committed
Update utils.py
1 parent b557b4c commit e4f2715

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

images/mkdocs/scripts/utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import os
12
import yaml
23
import json
34
import toml
@@ -27,6 +28,8 @@ def get_template(template_path):
2728

2829
def get_site_template(copy_extra, template_name):
2930
info = load_json('config/project.json')['info']
31+
if site_url := os.getenv('site_url'):
32+
info['site_url'] = site_url
3033
nav = { 'nav': get_nav() }
3134
if copy_extra == True:
3235
info['extra'] = load_json('config/extra.json')

0 commit comments

Comments
 (0)