diff --git a/ci/update-doc-versions.py b/ci/update-doc-versions.py old mode 100644 new mode 100755 index 6ef6ad622..c95844230 --- a/ci/update-doc-versions.py +++ b/ci/update-doc-versions.py @@ -4,20 +4,16 @@ import os import re import sys -NIGHTLY = '20230320-124340-559cb7b0' +NIGHTLY = '20230326-111934-3666303c' -NIGHTLY_UPDATE = re.compile('[Ss]ince: nightly builds only', re.MULTILINE) -OLD_SINCE = re.compile('^\*[Ss]ince: (\\S+)\*', re.MULTILINE) -OLD_SINCE_INLINE = re.compile('\(?\*?[Ss]ince: (\\S+)\*?\)?', re.MULTILINE) +SINCE = re.compile("\{\{since\('nightly'", re.MULTILINE) for p in ["docs/**/*.md", "docs/**/*.markdown"]: for filename in glob.glob(p, recursive=True): with open(filename, "r") as f: content = f.read() - adjusted = NIGHTLY_UPDATE.sub(f"Since: {NIGHTLY}", content) - adjusted = OLD_SINCE.sub("{{since('\\1')}}", adjusted) - adjusted = OLD_SINCE_INLINE.sub("{{since('\\1', inline=True)}}", adjusted) + adjusted = SINCE.sub(f"{{{{since('{NIGHTLY}'", content) if content != adjusted: print(filename) with open(filename, "w") as f: diff --git a/docs/changelog.md b/docs/changelog.md index f5391dff0..c9f784b22 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -21,6 +21,11 @@ usually the best available version. As features stabilize some brief notes about them will accumulate here. +#### New +* Not yet + +### 20230326-111934-3666303c + #### New * [mouse_wheel_scrolls_tabs](config/lua/config/mouse_wheel_scrolls_tabs.md) option to control whether the mouse wheel can be used to activate tabs when hovering diff --git a/docs/cli/cli/activate-pane.md b/docs/cli/cli/activate-pane.md index ede62b1e5..9768d7403 100644 --- a/docs/cli/cli/activate-pane.md +++ b/docs/cli/cli/activate-pane.md @@ -1,6 +1,6 @@ # `wezterm cli activate-pane` -{{since('nightly')}} +{{since('20230326-111934-3666303c')}} Activates the current pane, or the pane specified via the `--pane-id` parameter. diff --git a/docs/cli/cli/activate-tab.md b/docs/cli/cli/activate-tab.md index 8cb8bc17e..fc402c20e 100644 --- a/docs/cli/cli/activate-tab.md +++ b/docs/cli/cli/activate-tab.md @@ -1,6 +1,6 @@ # `wezterm cli activate-tab` -{{since('nightly')}} +{{since('20230326-111934-3666303c')}} ## Synopsis diff --git a/docs/cli/cli/kill-pane.md b/docs/cli/cli/kill-pane.md index b76d40e7b..655216454 100644 --- a/docs/cli/cli/kill-pane.md +++ b/docs/cli/cli/kill-pane.md @@ -1,6 +1,6 @@ # `wezterm cli kill-pane` -{{since('nightly')}} +{{since('20230326-111934-3666303c')}} Immediately and without prompting, kills either the current pane, or the pane specify via the `--pane-id` parameter. diff --git a/docs/config/lua/config/macos_window_background_blur.md b/docs/config/lua/config/macos_window_background_blur.md index 9d1a07a7b..036d35696 100644 --- a/docs/config/lua/config/macos_window_background_blur.md +++ b/docs/config/lua/config/macos_window_background_blur.md @@ -1,6 +1,6 @@ # `macos_window_background_blur = 0` -{{since('nightly')}} +{{since('20230326-111934-3666303c')}} When combined with `window_background_opacity`, configures the blur radius amount used by macOS when compositing the window on the screen. diff --git a/docs/config/lua/config/mouse_wheel_scrolls_tabs.md b/docs/config/lua/config/mouse_wheel_scrolls_tabs.md index 271d6b562..4fd5d2cea 100644 --- a/docs/config/lua/config/mouse_wheel_scrolls_tabs.md +++ b/docs/config/lua/config/mouse_wheel_scrolls_tabs.md @@ -1,6 +1,6 @@ # `mouse_wheel_scrolls_tabs` -{{since('nightly')}} +{{since('20230326-111934-3666303c')}} If `true`, the vertical mouse wheel will switch between tabs when the mouse cursor is over the tab bar. diff --git a/docs/config/lua/pane/move_to_new_tab.md b/docs/config/lua/pane/move_to_new_tab.md index 2cabcf255..c91f7d3f0 100644 --- a/docs/config/lua/pane/move_to_new_tab.md +++ b/docs/config/lua/pane/move_to_new_tab.md @@ -1,6 +1,6 @@ # `pane:move_to_new_tab()` -{{since('nightly')}} +{{since('20230326-111934-3666303c')}} Creates a new tab in the window that contains `pane`, and moves `pane` into that tab. diff --git a/docs/config/lua/pane/move_to_new_window.md b/docs/config/lua/pane/move_to_new_window.md index e3d604fdf..305c65d81 100644 --- a/docs/config/lua/pane/move_to_new_window.md +++ b/docs/config/lua/pane/move_to_new_window.md @@ -1,6 +1,6 @@ # `pane:move_to_new_window([WORKSPACE])` -{{since('nightly')}} +{{since('20230326-111934-3666303c')}} Creates a window and moves `pane` into that window. diff --git a/docs/config/lua/window-events/new-tab-button-click.md b/docs/config/lua/window-events/new-tab-button-click.md index 06ec8c654..dcc05fa55 100644 --- a/docs/config/lua/window-events/new-tab-button-click.md +++ b/docs/config/lua/window-events/new-tab-button-click.md @@ -1,6 +1,6 @@ # `new-tab-button-click` -{{since('nightly')}} +{{since('20230326-111934-3666303c')}} The `new-tab-button-click` event is emitted when the user clicks on the "new tab" button in the tab bar. This is the `+` button that is drawn