git: 6c294f6ff1a8 - main - x11/wezterm: Unbreak DOCS build with mdbook 0.4.48
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 09 Apr 2025 11:44:41 UTC
The branch main has been updated by eduardo: URL: https://cgit.FreeBSD.org/ports/commit/?id=6c294f6ff1a8f7924bc9d5b9de36ccd70410aa78 commit 6c294f6ff1a8f7924bc9d5b9de36ccd70410aa78 Author: Nuno Teixeira <eduardo@FreeBSD.org> AuthorDate: 2025-04-09 11:42:03 +0000 Commit: Nuno Teixeira <eduardo@FreeBSD.org> CommitDate: 2025-04-09 11:44:30 +0000 x11/wezterm: Unbreak DOCS build with mdbook 0.4.48 PR: 285928 Approved by: portmgr (blanket, build fix) --- x11/wezterm/Makefile | 2 +- x11/wezterm/files/patch-fix-mdbook0448 | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/x11/wezterm/Makefile b/x11/wezterm/Makefile index 0514367c9436..3a8d5b5fbb51 100644 --- a/x11/wezterm/Makefile +++ b/x11/wezterm/Makefile @@ -1,6 +1,6 @@ PORTNAME= wezterm DISTVERSION= 20240203-110809-5046fc22 -PORTREVISION= 8 +PORTREVISION= 9 CATEGORIES= x11 wayland MAINTAINER= vladislav.movchan@gmail.com diff --git a/x11/wezterm/files/patch-fix-mdbook0448 b/x11/wezterm/files/patch-fix-mdbook0448 new file mode 100644 index 000000000000..b30986893412 --- /dev/null +++ b/x11/wezterm/files/patch-fix-mdbook0448 @@ -0,0 +1,24 @@ +From 5164e735c32d227050f753e197c5adcf54ba4dfe Mon Sep 17 00:00:00 2001 +From: Vladyslav Movchan <vladislav.movchan@gmail.com> +Date: Tue, 8 Apr 2025 11:39:19 +0300 +Subject: [PATCH] Avoid duplication of `index.md` in `SUMMARY.md` + +This fixes the following `mdbook build` error when using mdbook 0.4.48: +Error: Summary parsing failed for file="/tmp/wezterm/docs/./SUMMARY.md" +Caused By: Duplicate file in SUMMARY.md: "index.md" +--- + ci/generate-docs.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git ci/generate-docs.py ci/generate-docs.py +index f32b87d2ed7..6e73d8fbc23 100644 +--- ci/generate-docs.py ++++ ci/generate-docs.py +@@ -508,6 +508,6 @@ def render(self, output, depth=0, mode="mdbook"): + + + with open("SUMMARY.md", "w") as f: +- f.write("[root](index.md)\n") ++ f.write("[root]\n") + for page in TOC: + page.render(f, depth=1, mode="mdbook")