Skip to content

Commit 8f8b8e6

Browse files
committed
fix(conf): Replace stale "master" branch references with "main"
why: Repo default branch is main but 4 locations still referenced master, breaking Edit-on-GitHub links, redirect detection, and source code links. what: - docs/conf.py: source_branch, rediraffe_branch, linkcode_resolve URL - src/libtmux_mcp/__about__.py: __changes__ URL
1 parent cefd25e commit 8f8b8e6

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

docs/conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
},
9696
],
9797
"source_repository": f"{about['__repository__']}/",
98-
"source_branch": "master",
98+
"source_branch": "main",
9999
"source_directory": "docs/",
100100
"announcement": "<em>Pre-alpha.</em> APIs may change. <a href='https://github.com/tmux-python/libtmux-mcp/issues'>Feedback welcome</a>.",
101101
}
@@ -140,7 +140,7 @@
140140

141141
# sphinxext-rediraffe
142142
rediraffe_redirects = "redirects.txt"
143-
rediraffe_branch = "master~1"
143+
rediraffe_branch = "main~1"
144144

145145
# sphinxext.opengraph
146146
ogp_site_url = about["__url__"]
@@ -259,7 +259,7 @@ def linkcode_resolve(domain: str, info: dict[str, str]) -> None | str:
259259
fn = relpath(fn, start=pathlib.Path(libtmux_mcp.__file__).parent)
260260

261261
if "dev" in about["__version__"]:
262-
return "{}/blob/master/{}/{}/{}{}".format(
262+
return "{}/blob/main/{}/{}/{}{}".format(
263263
about["__repository__"],
264264
"src",
265265
about["__package_name__"],

src/libtmux_mcp/__about__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
__url__ = "https://libtmux-mcp.git-pull.com"
1515
__bug_tracker__ = "https://github.com/tmux-python/libtmux-mcp/issues"
1616
__repository__ = "https://github.com/tmux-python/libtmux-mcp"
17-
__changes__ = "https://github.com/tmux-python/libtmux-mcp/blob/master/CHANGES"
17+
__changes__ = "https://github.com/tmux-python/libtmux-mcp/blob/main/CHANGES"

0 commit comments

Comments
 (0)