You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by vi...@apache.org on 2016/09/06 08:21:54 UTC

mesos git commit: Documentation: fix broken links.

Repository: mesos
Updated Branches:
  refs/heads/master b4441a4cb -> 8075cd59c


Documentation: fix broken links.

\* Remove references to github.com (contains /blob/master..)
\* site Rakefile now handle links contained in HTML table

The link to github.com in \`submitting-a-patch.md\` was let on purpose
as it seems that some users submit PRs by directly editting the file.

Review: https://reviews.apache.org/r/50661/


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/8075cd59
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/8075cd59
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/8075cd59

Branch: refs/heads/master
Commit: 8075cd59c8577bb34a200a3ffddb8dc384fc2629
Parents: b4441a4
Author: Pierre Cheynier <me...@pierre-cheynier.net>
Authored: Tue Sep 6 10:21:28 2016 +0200
Committer: Vinod Kone <vi...@gmail.com>
Committed: Tue Sep 6 10:21:28 2016 +0200

----------------------------------------------------------------------
 docs/authorization.md  | 29 ++++++++++-------------------
 docs/docker-volume.md  |  3 +--
 docs/working-groups.md |  2 +-
 site/Rakefile          |  1 +
 4 files changed, 13 insertions(+), 22 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/8075cd59/docs/authorization.md
----------------------------------------------------------------------
diff --git a/docs/authorization.md b/docs/authorization.md
index 5456f1b..0abb05c 100644
--- a/docs/authorization.md
+++ b/docs/authorization.md
@@ -143,7 +143,7 @@ entries, each representing an authorizable action:
 <tr>
   <td><code>register_frameworks</code></td>
   <td>Framework principal.</td>
-  <td>Resource <a href="/apache/mesos/blob/master/docs/roles.md">roles</a> of
+  <td>Resource <a href="roles.md">roles</a> of
       the framework.
   </td>
   <td>(Re-)registering of frameworks.</td>
@@ -164,24 +164,20 @@ entries, each representing an authorizable action:
   <td><code>reserve_resources</code></td>
   <td>Framework principal or Operator username.</td>
   <td>Resource role of the reservation.</td>
-  <td><a href="/apache/mesos/blob/master/docs/reservation.md">Reserving</a>
-      resources.
-  </td>
+  <td><a href="reservation.md">Reserving</a> resources.</td>
 </tr>
 <tr>
   <td><code>unreserve_resources</code></td>
   <td>Framework principal or Operator username.</td>
   <td>Principals whose resources can be unreserved by the operator.</td>
-  <td><a href="/apache/mesos/blob/master/docs/reservation.md">Unreserving</a>
-      resources.
-  </td>
+  <td><a href="reservation.md">Unreserving</a> resources.</td>
 </tr>
 <tr>
   <td><code>create_volumes</code></td>
   <td>Framework principal or Operator username.</td>
   <td>Resource role of the volume.</td>
   <td>Creating
-      <a href="/apache/mesos/blob/master/docs/persistent-volume.md">volumes</a>.
+      <a href="persistent-volume.md">volumes</a>.
   </td>
 </tr>
 <tr>
@@ -189,30 +185,27 @@ entries, each representing an authorizable action:
   <td>Framework principal or Operator username.</td>
   <td>Principals whose volumes can be destroyed by the operator.</td>
   <td>Destroying
-      <a href="/apache/mesos/blob/master/docs/persistent-volume.md">volumes</a>.
+      <a href="persistent-volume.md">volumes</a>.
   </td>
 </tr>
 <tr>
   <td><code>get_quotas</code></td>
   <td>Operator username.</td>
   <td>Resource role whose quota status will be queried.</td>
-  <td>Querying <a href="/apache/mesos/blob/master/docs/quota.md">quota</a>
-      status.
-  </td>
+  <td>Querying <a href="quota.md">quota</a> status.</td>
 </tr>
 <tr>
   <td><code>update_quotas</code></td>
   <td>Operator username.</td>
   <td>Resource role whose quota will be updated.</td>
-  <td>Modifying <a href="/apache/mesos/blob/master/docs/quota.md">quotas</a>.
-  </td>
+  <td>Modifying <a href="quota.md">quotas</a>.</td>
 </tr>
 <tr>
   <td><code>view_roles</code></td>
   <td>Operator username.</td>
   <td>Resource roles whose information can be viewed by the operator.</td>
-  <td>Querying <a href="/apache/mesos/blob/master/docs/roles.md">roles</a>
-      and <a href="/apache/mesos/blob/master/docs/weights.md">weights</a>.
+  <td>Querying <a href="roles.md">roles</a>
+      and <a href="weights.md">weights</a>.
   </td>
 </tr>
 <tr>
@@ -226,9 +219,7 @@ entries, each representing an authorizable action:
   <td><code>update_weights</code></td>
   <td>Operator username.</td>
   <td>Resource roles whose weights can be updated by the operator.</td>
-  <td>Updating
-      <a href="/apache/mesos/blob/master/docs/weights.md">weights</a>.
-  </td>
+  <td>Updating <a href="weights.md">weights</a>.</td>
 </tr>
 <tr>
   <td><code>view_frameworks</code></td>

http://git-wip-us.apache.org/repos/asf/mesos/blob/8075cd59/docs/docker-volume.md
----------------------------------------------------------------------
diff --git a/docs/docker-volume.md b/docs/docker-volume.md
index 2dbd044..d4bea06 100644
--- a/docs/docker-volume.md
+++ b/docs/docker-volume.md
@@ -365,8 +365,7 @@ Create another task to verify the file `myfile` was created successfully.
     --volumes=<path>/myvolume.json
 ```
 
-Check the [sandbox
-](https://github.com/apache/mesos/blob/master/docs/sandbox.md#where-is-the-sandbox)
+Check the [sandbox](sandbox.md#where-is-it)
 for the second task to check the file `myfile` was created successfully.
 
 ```{.console}

http://git-wip-us.apache.org/repos/asf/mesos/blob/8075cd59/docs/working-groups.md
----------------------------------------------------------------------
diff --git a/docs/working-groups.md b/docs/working-groups.md
index e9e1076..a03a9aa 100644
--- a/docs/working-groups.md
+++ b/docs/working-groups.md
@@ -46,7 +46,7 @@ layout: documentation
 		* [MESOS-2288](https://issues.apache.org/jira/browse/MESOS-2288)
 		* [MESOS-3302](https://issues.apache.org/jira/browse/MESOS-3302)
 		* [Scheduler HTTP API Design doc](https://docs.google.com/document/d/1pnIY_HckimKNvpqhKRhbc9eSItWNFT-priXh_urR-T0/edit?usp=sharing)
-		* [Scheduler HTTP API User doc](https://github.com/apache/mesos/blob/master/docs/scheduler_http_api.md)
+		* [Scheduler HTTP API User doc](scheduler-http-api.md)
 		* [Versioning HTTP API](https://docs.google.com/document/d/1-iQjo6778H_fU_1Zi_Yk6szg8qj-wqYgVgnx7u3h6OU/edit?usp=sharing)
 * **Nested Container**
 	* communication:

http://git-wip-us.apache.org/repos/asf/mesos/blob/8075cd59/site/Rakefile
----------------------------------------------------------------------
diff --git a/site/Rakefile b/site/Rakefile
index 39aeb3c..0135689 100644
--- a/site/Rakefile
+++ b/site/Rakefile
@@ -53,6 +53,7 @@ task :update_docs do
       IO.write(doc, File.open(doc) { |f|
         f.read
           .gsub(/\((?!http)([^(]+?)(?:\/index)?\.md(\#.+?)?\)/, "(/documentation/latest/#{docdir}/" + '\1/\2)')
+          .gsub(/<a href=\"([^\/]+)\.md\">/, "<a href=\"/documentation/latest/#{docdir}/" + '\1/\2">')
           .gsub(/\(images\/(.*)\)/, '(/assets/img/documentation/\1)')
       })
     }