aboutsummaryrefslogtreecommitdiff
path: root/thirdparty/fmt/support/mkdocs
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2026-03-12 15:02:32 +0100
committerGitHub Enterprise <[email protected]>2026-03-12 15:02:32 +0100
commitfaaa8993405b85015fff202746c39ae0374505d8 (patch)
tree4bff0ee5ee65c7fe7462b153563d170df1de6e83 /thirdparty/fmt/support/mkdocs
parent5.7.22 (diff)
downloadzen-faaa8993405b85015fff202746c39ae0374505d8.tar.xz
zen-faaa8993405b85015fff202746c39ae0374505d8.zip
update fmt 12.0.0 -> 12.1.0 (#828)
- Update vendored fmt library from 12.0.0 to 12.1.0 - Disable warnings-as-errors for the fmt build target (third-party code) ## Notable changes in fmt 12.1.0 - **Performance**: Optimized `buffer::append`, resulting in up to ~16% improvement on spdlog benchmarks - **Bug fixes**: - Worked around ABI incompatibility in `std::locale_ref` between clang and gcc - Fixed compilation with clang 21 and `-std=c++20` - Fixed compilation with locales disabled in header-only mode - Fixed dynamic linking issue with clang-cl - Fixed compatibility with clang as host compiler for NVCC - **Formatter improvements**: - `std::variant` and `std::expected` formatters now work with `format_as` - Added cv-qualified type support to `std::optional` formatter - Added demangling support for libc++ and clang-cl - **C++ modules**: Fixed several compatibility issues, exported `is_compiled_string` and `operator""_cf` - **Other**: Switched to global `malloc`/`free` to enable allocator customization, made `FMT_USE_CONSTEVAL` user-configurable
Diffstat (limited to 'thirdparty/fmt/support/mkdocs')
-rwxr-xr-xthirdparty/fmt/support/mkdocs26
1 files changed, 17 insertions, 9 deletions
diff --git a/thirdparty/fmt/support/mkdocs b/thirdparty/fmt/support/mkdocs
index 610d81d67..94eddae3f 100755
--- a/thirdparty/fmt/support/mkdocs
+++ b/thirdparty/fmt/support/mkdocs
@@ -2,6 +2,10 @@
# A script to invoke mkdocs with the correct environment.
# Additionally supports deploying via mike:
# ./mkdocs deploy [mike-deploy-options]
+# For example:
+# ./mkdocs deploy <version>
+# This will checkout the website to fmt/build/fmt.dev and deploy documentation
+# <version> there.
import errno, os, shutil, sys
from subprocess import call
@@ -40,7 +44,7 @@ config_path = os.path.join(support_dir, 'mkdocs.yml')
args = sys.argv[1:]
if len(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 '[email protected]:'
site_repo = git_url + 'fmtlib/fmt.dev.git'
@@ -64,14 +68,18 @@ if len(args) > 0:
if ret != 0 or version == 'dev':
sys.exit(ret)
current_doc_path = os.path.join(site_dir, version)
- os.makedirs(current_doc_path, exist_ok=True)
- redirect_page_path = os.path.join(current_doc_path, 'api.html')
- with open(redirect_page_path, "w") as file:
- file.write(redirect_page)
- ret = call(['git', 'add', redirect_page_path], cwd=site_dir)
- if ret != 0:
- sys.exit(ret)
- ret = call(['git', 'commit', '--amend', '--no-edit'], cwd=site_dir)
+ # mike stages files added by deploy for deletion for unclear reason,
+ # undo it.
+ ret = call(['git', 'reset', '--hard'], cwd=site_dir)
+ if False:
+ os.makedirs(current_doc_path, exist_ok=True)
+ redirect_page_path = os.path.join(current_doc_path, 'api.html')
+ with open(redirect_page_path, "w") as file:
+ file.write(redirect_page)
+ ret = call(['git', 'add', redirect_page_path], cwd=site_dir)
+ if ret != 0:
+ sys.exit(ret)
+ ret = call(['git', 'commit', '--amend', '--no-edit'], cwd=site_dir)
sys.exit(ret)
elif not command.startswith('-'):
args += ['-f', config_path]