Skip to contentSkip to conversation

docs: fix a few recently broken links

PATCH In review Todd Zullinger 2 participants 4 messages Sep 16, 2022 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 docs: fix a few recently broken links

Some links were broken in the recent move of various technical docs c0f6dd49f1 (Merge branch 'ab/tech-docs-to-help', 2022-08-14).

Fix them.

---
 Documentation/gitprotocol-capabilities.txt | 4 ++--
 Documentation/gitprotocol-v2.txt           | 4 ++--
 Documentation/technical/bundle-uri.txt     | 3 +--
 Documentation/user-manual.txt              | 2 +-
 4 files changed, 6 insertions(+), 7 deletions(-)
Documentation/gitprotocol-capabilities.txt +2 -2
index c6dcc7d565..0fb5ea0c1c 100644
@@ -388,8 +388,8 @@ the server as well.
 Session IDs should be unique to a given process. They must fit within a
 packet-line, and must not contain non-printable or whitespace characters. The
 current implementation uses trace2 session IDs (see
-link:api-trace2.html[api-trace2] for details), but this may change and users of
-the session ID should not rely on this fact.
+link:technical/api-trace2.html[api-trace2] for details), but this may change
+and users of the session ID should not rely on this fact.
 
 GIT
 ---
Documentation/gitprotocol-v2.txt +2 -2
index c9c0f9160b..59bf41cefb 100644
@@ -544,8 +544,8 @@ the server as well.
 Session IDs should be unique to a given process. They must fit within a
 packet-line, and must not contain non-printable or whitespace characters. The
 current implementation uses trace2 session IDs (see
-link:api-trace2.html[api-trace2] for details), but this may change and users of
-the session ID should not rely on this fact.
+link:technical/api-trace2.html[api-trace2] for details), but this may change
+and users of the session ID should not rely on this fact.
 
 object-info
 ~~~~~~~~~~~
Documentation/technical/bundle-uri.txt +1 -2
index c25c42378a..85c6a7fc7c 100644
@@ -3,8 +3,7 @@ Bundle URIs
 
 Git bundles are files that store a pack-file along with some extra metadata,
 including a set of refs and a (possibly empty) set of necessary commits. See
-linkgit:git-bundle[1] and link:bundle-format.txt[the bundle format] for more
-information.
+linkgit:git-bundle[1] and linkgit:gitformat-bundle[5] for more information.
 
 Bundle URIs are locations where Git can download one or more bundles in
 order to bootstrap the object database in advance of fetching the remaining
Documentation/user-manual.txt +1 -1
index ca9decdd95..dc9c6a663a 100644
@@ -3133,7 +3133,7 @@ those "loose" objects.
 You can save space and make Git faster by moving these loose objects in
 to a "pack file", which stores a group of objects in an efficient
 compressed format; the details of how pack files are formatted can be
-found in link:gitformat-pack[5].
+found in linkgit:gitformat-pack[5].
 
 To put the loose objects into a pack, just run git repack:
 
#1 lore raw

PATCH 1/1 api docs: link to html version of api-trace2

In f6d25d7878 (api docs: document that BUG() emits a trace2 error event, 2021-04-13), a link to the plain text version of api-trace2 was added in technical/api-error-handling.txt.

All of our other link:s point to the html versions. Do the same here.

---
This is minor, but I noticed it while working on the previous patch. The effect can be see at [1] where we link to [2].

Somewhat related, it also appears that the link to the API docs in the "Further documentation" section on git-scm.com is broken entirely[3]. I didn't try to chase down why that might be, but perhaps someone who knows the site build process can fix it up.

[1] https://mirrors.edge.kernel.org/pub/software/scm/git/docs/technical/api-error-handling.html
[2] https://mirrors.edge.kernel.org/pub/software/scm/git/docs/technical/api-trace2.txt
[3] https://git-scm.com/docs/git#_further_documentation

 Documentation/technical/api-error-handling.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/technical/api-error-handling.txt +1 -1
index 70bf1d3e52..665c4960b4 100644
@@ -46,7 +46,7 @@ parse-options.c.
   returns -1 after reporting the situation to the caller.
 
 These reports will be logged via the trace2 facility. See the "error"
-event in link:api-trace2.txt[trace2 API].
+event in link:api-trace2.html[trace2 API].
 
 Customizable error handlers
 ---------------------------
#2 lore raw

Re: [PATCH] api docs: link to html version of api-trace2

Quoted 10 lines · Todd Zullinger

In f6d25d7878 (api docs: document that BUG() emits a trace2 error event, 2021-04-13), a link to the plain text version of api-trace2 was added in technical/api-error-handling.txt.

All of our other link:s point to the html versions. Do the same here.

---
This is minor, but I noticed it while working on the previous patch. The effect can be see at [1] where we link to [2].

Thanks.

#3 lore raw
In reply to Todd Zullinger
Quoted 7 lines · Todd Zullinger

Some links were broken in the recent move of various technical docs c0f6dd49f1 (Merge branch 'ab/tech-docs-to-help', 2022-08-14).

Fix them.

---

Thanks.

It is a bit sad that the links can only be relative (with which, a move like c0f6dd49f1 can easily break them) or absolute (with which, it is impossible to "hang" the entire documentation set under some hierarchy in a larger set of pages). I suppose that use of base href might help, but it would make the result more cumbersome to set up with than the fully relative collection of pages, which is what we have.

Documentation/technical/bundle-uri.txt Bundle URIs · line 6

Quoted 11 lines
Documentation/technical/bundle-uri.txt +1 -2
index c25c42378a..85c6a7fc7c 100644
@@ -3,8 +3,7 @@ Bundle URIs
 
 Git bundles are files that store a pack-file along with some extra metadata,
 including a set of refs and a (possibly empty) set of necessary commits. See
-linkgit:git-bundle[1] and link:bundle-format.txt[the bundle format] for more
-information.
+linkgit:git-bundle[1] and linkgit:gitformat-bundle[5] for more information.

Good. Thanks for being careful.

Documentation/user-manual.txt those "loose" objects. · line 3136

Quoted 12 lines
Documentation/technical/bundle-uri.txt +0 -0
 Bundle URIs are locations where Git can download one or more bundles in
 order to bootstrap the object database in advance of fetching the remaining
Documentation/user-manual.txt +1 -1
index ca9decdd95..dc9c6a663a 100644
@@ -3133,7 +3133,7 @@ those "loose" objects.
 You can save space and make Git faster by moving these loose objects in
 to a "pack file", which stores a group of objects in an efficient
 compressed format; the details of how pack files are formatted can be
-found in link:gitformat-pack[5].
+found in linkgit:gitformat-pack[5].

This, too.

Will queue.