You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@taverna.apache.org by st...@apache.org on 2019/01/09 15:11:01 UTC

svn commit: r1850873 - /incubator/taverna/site/trunk/content/download/code/index.md

Author: stain
Date: Wed Jan  9 15:11:01 2019
New Revision: 1850873

URL: http://svn.apache.org/viewvc?rev=1850873&view=rev
Log:
re-add git.apache.org and add GitHub SSH

Modified:
    incubator/taverna/site/trunk/content/download/code/index.md

Modified: incubator/taverna/site/trunk/content/download/code/index.md
URL: http://svn.apache.org/viewvc/incubator/taverna/site/trunk/content/download/code/index.md?rev=1850873&r1=1850872&r2=1850873&view=diff
==============================================================================
--- incubator/taverna/site/trunk/content/download/code/index.md (original)
+++ incubator/taverna/site/trunk/content/download/code/index.md Wed Jan  9 15:11:01 2019
@@ -31,6 +31,8 @@ To check out Apache Taverna from GitHub,
 [GitBox](https://gitbox.apache.org/) may push directly to GitHub, although
 the convention is to raise *pull requests* to discuss changes.
 
+If you have a GitHub account with [SSH keys](https://help.github.com/articles/generating-a-gpg-key/) configured, then use `[GitHub SSH]` instead.
+
 If you are unable to use GitHub or prefer using ASF's git server, select `[Apache GitBox]` below, e.g.:
 
     git clone https://gitbox.apache.org/repos/asf/incubator-taverna-****.git 
@@ -38,6 +40,8 @@ If you are unable to use GitHub or prefe
 **Tip**: Taverna committers can always push to GitBox using ASF credentials.
 Changes are synchronized both ways.
 
+If you want to access a read-only mirror using the `git://` protocol, then use `[Apache Git]`.
+
 You can also `[Browse]` the code through GitHub or Apache GitBox below.
 Using GitHub you are free to *fork* the projects and raise *pull requests* to
 [contribute to Apache Taverna](#contribute-to-apache-taverna).
@@ -48,7 +52,9 @@ Using GitHub you are free to *fork* the
 
 <select id="picker" onChange='check()'>
   <option value="GitHub">GitHub</option>
-  <option value="Apache">Apache GitBox</option>
+  <option value="GitHubSSH">GitHub SSH</option>
+  <option value="ApacheGitBox">Apache GitBox</option>
+  <option value="ApacheGit">Apache Git</option>
 </select>
 Click on the textbox and copy the value.
 
@@ -353,7 +359,15 @@ function check() {
    var x = document.getElementsByClassName("gitlink");
    var y = document.getElementsByClassName("gitbrowse");
    var i;
-   if ( document.getElementById("picker").value == "Apache"){
+   if ( document.getElementById("picker").value == "ApacheGit"){
+      for (i = 0; i < x.length; i++) {
+         x[i].value = "git://git.apache.org/" +x[i].id + ".git";
+      }
+      for (i = 0; i < y.length; i++) {
+         y[i].href = "https://gitbox.apache.org/repos/asf/?p=" +x[i].id + ".git;a=tree";
+      }
+   }
+   if ( document.getElementById("picker").value == "ApacheGitBox"){
       for (i = 0; i < x.length; i++) {
          x[i].value = "https://gitbox.apache.org/repos/asf/" +x[i].id + ".git";
       }
@@ -367,6 +381,14 @@ function check() {
       }
       for (i = 0; i < y.length; i++) {
         y[i].href = "https://github.com/apache/" +x[i].id;
+      }
+   }
+   if ( document.getElementById("picker").value == "GitHubSSH"){
+      for (i = 0; i < x.length; i++) {
+        x[i].value = "git@github.com:apache/" +x[i].id + ".git";
+      }
+      for (i = 0; i < y.length; i++) {
+        y[i].href = "https://github.com/apache/" +x[i].id;
       }
    }
 }