mirror of
https://github.com/fmtlib/fmt.git
synced 2025-08-01 03:34:45 +02:00
Add a script to invoke mkdocs
This commit is contained in:
11
support/run-mkdocs
Executable file
11
support/run-mkdocs
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env python3
|
||||
# A script to invoke mkdocs with the correct environment.
|
||||
|
||||
import os, subprocess, sys
|
||||
|
||||
# Set PYTHONPATH for the mkdocstrings handler.
|
||||
env = os.environ.copy()
|
||||
path = env.get('PYTHONPATH')
|
||||
env['PYTHONPATH'] = (path + ':' if path else '') + os.path.dirname(__file__)
|
||||
|
||||
subprocess.run(['mkdocs'] + sys.argv[1:], env=env)
|
Reference in New Issue
Block a user