浏览代码

ZOOKEEPER-3792: fix apidocs path

Fix path that leads to the apidocs. I will manually correct the already generated paths in asf-site after this has been merged.
This PR needs to land on master, 3.6 and 3.5

Author: Norbert Kalmar <nkalmar@apache.org>

Reviewers: Mate Szalay-Beko <symat@apache.org>

Closes #1362 from nkalmar/master
Norbert Kalmar 5 年之前
父节点
当前提交
9e50853da2

+ 1 - 1
zookeeper-docs/src/main/resources/markdown/html/header.html

@@ -70,7 +70,7 @@ document.write("Last Published: " + document.lastModified);
         <div onclick="SwitchMenu('menu_2', 'skin/')" id="menu_2Title" class="menutitle">Developer</div>
         <div id="menu_2" class="menuitemgroup">
             <div class="menuitem">
-                <a href="api/index.html">API Docs</a>
+                <a href="apidocs/zookeeper-server/index.html">API Docs</a>
             </div>
             <div class="menuitem">
                 <a href="zookeeperProgrammers.html">Programmer's Guide</a>

+ 1 - 1
zookeeper-docs/src/main/resources/markdown/index.md

@@ -36,7 +36,7 @@ archives.
     + [Release Notes](releasenotes.html) - new developer and user facing features, improvements, and incompatibilities
 + **Developers**
     Documents for Developers using the ZooKeeper Client API
-    + [API Docs](api/index.html) - the technical reference to ZooKeeper Client APIs
+    + [API Docs](apidocs/zookeeper-server/index.html) - the technical reference to ZooKeeper Client APIs
     + [Programmer's Guide](zookeeperProgrammers.html) - a client application developer's guide to ZooKeeper
     + [ZooKeeper Use Cases](zookeeperUseCases.html) - a series of use cases using the ZooKeeper.
     + [ZooKeeper Java Example](javaExample.html) - a simple Zookeeper client application, written in Java

+ 1 - 1
zookeeper-docs/src/main/resources/markdown/releasenotes.md

@@ -75,7 +75,7 @@ Call specific watch functions receive all session events for as long as they are
 1. A number of constants used in the client ZooKeeper API were re-specified using enums (rather than ints). See [ZOOKEEPER-7](https://issues.apache.org/jira/browse/ZOOKEEPER-7), [ZOOKEEPER-132](https://issues.apache.org/jira/browse/ZOOKEEPER-132) and [ZOOKEEPER-139](https://issues.apache.org/jira/browse/ZOOKEEPER-139) for full details
 1. [ZOOKEEPER-18](https://issues.apache.org/jira/browse/ZOOKEEPER-18) removed KeeperStateChanged, use KeeperStateDisconnected instead
 
-Also see [the current Java API](http://zookeeper.apache.org/docs/current/api/index.html)
+Also see [the current Java API](http://zookeeper.apache.org/docs/current/apidocs/zookeeper-server/index.html)
 
 <a name="C+API"></a>
 #### C API

+ 1 - 1
zookeeper-docs/src/main/resources/markdown/skin/init.js

@@ -43,7 +43,7 @@ function init(){
                     var linkItem = menuItem[j].firstElementChild;
                     if('a' === linkItem.localName){
                         var linkFile = getFileName(linkItem.href);
-                        if(fileName === linkFile && linkItem.href.lastIndexOf("api/index.html")<0){
+                        if(fileName === linkFile && linkItem.href.lastIndexOf("apidocs/zookeeper-server/index.html")<0){
                             linkItem.className = "selected";
                             linkItem.parentNode.parentNode.className = "selectedmenuitemgroup";
                             var title = document.getElementById(linkItem.parentNode.parentNode.id+"Title");

+ 1 - 1
zookeeper-docs/src/main/resources/markdown/zookeeperProgrammers.md

@@ -1600,7 +1600,7 @@ ZooKeeper users fall into:
 Outside the formal documentation, there're several other sources of
 information for ZooKeeper developers.
 
-* *[API Reference](https://zookeeper.apache.org/doc/current/api/index.html)* :
+* *[API Reference](https://zookeeper.apache.org/doc/current/apidocs/zookeeper-server/index.html)* :
     The complete reference to the ZooKeeper API
 
 * *[ZooKeeper Talk at the Hadoop Summit 2008](https://www.youtube.com/watch?v=rXI9xiesUV8)* :