mirror of
https://github.com/fmtlib/fmt.git
synced 2025-08-03 04:34:45 +02:00
Sort out directory URI config
This commit is contained in:
@@ -4,9 +4,6 @@ docs_dir: ../doc
|
||||
|
||||
repo_url: https://github.com/fmtlib/fmt
|
||||
|
||||
# Make the docs work locally without a server.
|
||||
use_directory_urls: false
|
||||
|
||||
theme:
|
||||
name: material
|
||||
features:
|
||||
|
@@ -3,9 +3,12 @@
|
||||
|
||||
import os, subprocess, sys
|
||||
|
||||
dirname = os.path.dirname(__file__)
|
||||
|
||||
# Set PYTHONPATH for the mkdocstrings handler.
|
||||
env = os.environ.copy()
|
||||
path = env.get('PYTHONPATH')
|
||||
env['PYTHONPATH'] = (path + ':' if path else '') + os.path.dirname(__file__)
|
||||
env['PYTHONPATH'] = (path + ':' if path else '') + dirname
|
||||
|
||||
subprocess.run(['mkdocs'] + sys.argv[1:], env=env)
|
||||
config_path = os.path.join(dirname, 'mkdocs.yml')
|
||||
subprocess.run(['mkdocs'] + sys.argv[1:] + ['-f', config_path], env=env)
|
||||
|
Reference in New Issue
Block a user