This is an automated email from the ASF dual-hosted git repository. rskraba pushed a commit to branch branch-1.11 in repository https://gitbox.apache.org/repos/asf/avro.git
commit f94e1e210757cf8868bf5c14f39be02df232521d Author: Ryan Skraba <[email protected]> AuthorDate: Fri Jul 1 08:07:11 2022 +0200 AVRO-3556: Use absolute links for api documentation (#1744) * AVRO-3556: Use absolute links for api documentation * Fix wildcard typo in destination directory of copy --- build.sh | 1 + doc/content/en/docs/++version++/api-c++.md | 4 ++-- doc/content/en/docs/++version++/api-c.md | 4 ++-- doc/content/en/docs/++version++/api-csharp.md | 4 ++-- doc/content/en/docs/++version++/api-java.md | 4 ++-- 5 files changed, 9 insertions(+), 8 deletions(-) diff --git a/build.sh b/build.sh index 125fc975f..90301d458 100755 --- a/build.sh +++ b/build.sh @@ -183,6 +183,7 @@ do read -n 1 -s -r -p "Build build/staging-web/ manually now. Press a key to continue..." # If it was a SNAPSHOT, it was lowercased during the build. cp -R build/staging-web/public/docs/"${VERSION,,}"/* "build/$DOC_DIR/" + cp -R "build/$DOC_DIR/api" build/staging-web/public/docs/"${VERSION,,}"/ # add LICENSE and NOTICE for docs mkdir -p "build/$DOC_DIR" cp doc/LICENSE "build/$DOC_DIR" diff --git a/doc/content/en/docs/++version++/api-c++.md b/doc/content/en/docs/++version++/api-c++.md index 7a61a39e7..4382750a4 100644 --- a/doc/content/en/docs/++version++/api-c++.md +++ b/doc/content/en/docs/++version++/api-c++.md @@ -2,7 +2,7 @@ title: "C++ API" linkTitle: "C++ API" weight: 102 -manualLink: ++version++/api/c++/html/ +manualLink: /docs/++version++/api/cpp/html/ --- <!-- @@ -26,4 +26,4 @@ manualLink: ++version++/api/c++/html/ --> -The C++ API documentation can be found <a href="++version++/api/c++/html/">here</a>. +The C++ API documentation can be found <a href="/docs/++version++/api/cpp/html/">here</a>. diff --git a/doc/content/en/docs/++version++/api-c.md b/doc/content/en/docs/++version++/api-c.md index b68f3bb19..79a5209e5 100644 --- a/doc/content/en/docs/++version++/api-c.md +++ b/doc/content/en/docs/++version++/api-c.md @@ -2,7 +2,7 @@ title: "C API" linkTitle: "C API" weight: 101 -manualLink: ++version++/api/c/ +manualLink: /docs/++version++/api/c/ --- <!-- @@ -26,4 +26,4 @@ manualLink: ++version++/api/c/ --> -The C API documentation can be found <a href="++version++/api/c/">here</a>. +The C API documentation can be found <a href="/docs/++version++/api/c/">here</a>. diff --git a/doc/content/en/docs/++version++/api-csharp.md b/doc/content/en/docs/++version++/api-csharp.md index fd9821488..cfad0d1e3 100644 --- a/doc/content/en/docs/++version++/api-csharp.md +++ b/doc/content/en/docs/++version++/api-csharp.md @@ -2,7 +2,7 @@ title: "C# API" linkTitle: "C# API" weight: 103 -manualLink: ++version++/api/csharp/html/ +manualLink: /docs/++version++/api/csharp/html/ --- <!-- @@ -26,4 +26,4 @@ manualLink: ++version++/api/csharp/html/ --> -The C# API documentation can be found <a href="++version++/api/csharp/html/">here</a>. +The C# API documentation can be found <a href="/docs/++version++/api/csharp/html/">here</a>. diff --git a/doc/content/en/docs/++version++/api-java.md b/doc/content/en/docs/++version++/api-java.md index 343a2fd82..12d743567 100644 --- a/doc/content/en/docs/++version++/api-java.md +++ b/doc/content/en/docs/++version++/api-java.md @@ -2,7 +2,7 @@ title: "Java API" linkTitle: "Java API" weight: 100 -manualLink: ++version++/api/java/ +manualLink: /docs/++version++/api/java/ --- <!-- @@ -26,4 +26,4 @@ manualLink: ++version++/api/java/ --> -The Javadocs can be found <a href="++version++/api/java/">here</a>. +The Javadocs can be found <a href="/docs/++version++/api/java/">here</a>.
