mirror of
https://github.com/fmtlib/fmt.git
synced 2025-01-15 19:51:19 +00:00
Sort out directory URI config
This commit is contained in:
parent
509d018101
commit
dab1a65d2c
@ -443,6 +443,7 @@ function(add_doc_target)
|
|||||||
COMMAND
|
COMMAND
|
||||||
${CMAKE_COMMAND} -E env PYTHONPATH=${CMAKE_CURRENT_SOURCE_DIR}/support
|
${CMAKE_COMMAND} -E env PYTHONPATH=${CMAKE_CURRENT_SOURCE_DIR}/support
|
||||||
${MKDOCS} build -f ${CMAKE_CURRENT_SOURCE_DIR}/support/mkdocs.yml
|
${MKDOCS} build -f ${CMAKE_CURRENT_SOURCE_DIR}/support/mkdocs.yml
|
||||||
|
--no-directory-urls
|
||||||
SOURCES ${sources})
|
SOURCES ${sources})
|
||||||
|
|
||||||
include(GNUInstallDirs)
|
include(GNUInstallDirs)
|
||||||
|
@ -4,9 +4,6 @@ docs_dir: ../doc
|
|||||||
|
|
||||||
repo_url: https://github.com/fmtlib/fmt
|
repo_url: https://github.com/fmtlib/fmt
|
||||||
|
|
||||||
# Make the docs work locally without a server.
|
|
||||||
use_directory_urls: false
|
|
||||||
|
|
||||||
theme:
|
theme:
|
||||||
name: material
|
name: material
|
||||||
features:
|
features:
|
||||||
|
@ -3,9 +3,12 @@
|
|||||||
|
|
||||||
import os, subprocess, sys
|
import os, subprocess, sys
|
||||||
|
|
||||||
|
dirname = os.path.dirname(__file__)
|
||||||
|
|
||||||
# Set PYTHONPATH for the mkdocstrings handler.
|
# Set PYTHONPATH for the mkdocstrings handler.
|
||||||
env = os.environ.copy()
|
env = os.environ.copy()
|
||||||
path = env.get('PYTHONPATH')
|
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user