From 5a8d5f9f5aaf223e72d5081d01790e8f2c104fa1 Mon Sep 17 00:00:00 2001 From: Vincent Ging Ho Yim Date: Thu, 24 Oct 2024 09:58:47 +1100 Subject: [PATCH] bookmark: fix broken docs URLs that lead to 404 errors Found a few more broken links beyond those in 9b5cdf2. --- cli/src/commands/bookmark/list.rs | 2 +- cli/src/commands/bookmark/mod.rs | 2 +- cli/tests/cli-reference@.md.snap | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cli/src/commands/bookmark/list.rs b/cli/src/commands/bookmark/list.rs index e445657581..085acf2082 100644 --- a/cli/src/commands/bookmark/list.rs +++ b/cli/src/commands/bookmark/list.rs @@ -56,7 +56,7 @@ pub struct BookmarkListArgs { /// /// By default, the specified name matches exactly. Use `glob:` prefix to /// select bookmarks by wildcard pattern. For details, see - /// https://martinvonz.github.io/jj/docs/revsets.md#string-patterns. + /// https://martinvonz.github.io/jj/latest/revsets/#string-patterns. #[arg(value_parser = StringPattern::parse)] names: Vec, diff --git a/cli/src/commands/bookmark/mod.rs b/cli/src/commands/bookmark/mod.rs index 3373971b2b..14d32d7dc9 100644 --- a/cli/src/commands/bookmark/mod.rs +++ b/cli/src/commands/bookmark/mod.rs @@ -59,7 +59,7 @@ use crate::ui::Ui; /// Manage bookmarks /// /// For information about bookmarks, see -/// https://martinvonz.github.io/jj/latest/docs/bookmarks.md. +/// https://martinvonz.github.io/jj/latest/bookmarks. #[derive(clap::Subcommand, Clone, Debug)] pub enum BookmarkCommand { #[command(visible_alias("c"))] diff --git a/cli/tests/cli-reference@.md.snap b/cli/tests/cli-reference@.md.snap index 6f3a69935f..9aa4c24e00 100644 --- a/cli/tests/cli-reference@.md.snap +++ b/cli/tests/cli-reference@.md.snap @@ -235,7 +235,7 @@ Apply the reverse of a revision on top of another revision Manage bookmarks -For information about bookmarks, see https://martinvonz.github.io/jj/latest/docs/bookmarks.md. +For information about bookmarks, see https://martinvonz.github.io/jj/latest/bookmarks. **Usage:** `jj bookmark ` @@ -313,7 +313,7 @@ For information about bookmarks, see https://martinvonz.github.io/jj/latest/book * `` — Show bookmarks whose local name matches - By default, the specified name matches exactly. Use `glob:` prefix to select bookmarks by wildcard pattern. For details, see https://martinvonz.github.io/jj/docs/revsets.md#string-patterns. + By default, the specified name matches exactly. Use `glob:` prefix to select bookmarks by wildcard pattern. For details, see https://martinvonz.github.io/jj/latest/revsets/#string-patterns. ###### **Options:**