Minor improvements to mkdocs

This commit is contained in:
Victor Zverovich
2025-09-21 12:46:52 -07:00
parent dc409ee86d
commit c5e55972ae

View File

@@ -4,7 +4,8 @@
# ./mkdocs deploy [mike-deploy-options] # ./mkdocs deploy [mike-deploy-options]
# For example: # For example:
# ./mkdocs deploy <version> # ./mkdocs deploy <version>
# This will checkout website to fmt/build/fmt.dev and deploy <version> to it. # This will checkout the website to fmt/build/fmt.dev and deploy documentation
# <version> there.
import errno, os, shutil, sys import errno, os, shutil, sys
from subprocess import call from subprocess import call
@@ -43,7 +44,7 @@ config_path = os.path.join(support_dir, 'mkdocs.yml')
args = sys.argv[1:] args = sys.argv[1:]
if len(args) > 0: if len(args) > 0:
command = args[0] command = args[0]
if command == 'deploy': if command == 'deploy' or command == 'set-default':
git_url = 'https://github.com/' if 'CI' in os.environ else 'git@github.com:' git_url = 'https://github.com/' if 'CI' in os.environ else 'git@github.com:'
site_repo = git_url + 'fmtlib/fmt.dev.git' site_repo = git_url + 'fmtlib/fmt.dev.git'