You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by js...@apache.org on 2016/07/13 16:59:43 UTC

[trafficserver] branch master updated (263672c -> bffb3dd)

This is an automated email from the ASF dual-hosted git repository.

jsime pushed a change to branch master
in repository https://git-dual.apache.org/repos/asf/trafficserver.git.

      from  263672c   Format HttpTransact::is_request_valid() debug logs consistently.
      adds  46a0908   docs: layout fixes and consistency updates for tables, value lists, and notes
      adds  eb7dbfa   docs: central json config for valid languages and versions
      adds  710cefc   docs: update lang/version switcher to use external json (to avoid backporting headaches)
       new  c6f2b34   docs: update lang/ver builder script to support both public docs paths and local working copies
       new  bffb3dd   TS-4617: docs: release neutral lang/version switcher

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "adds" were already present in the repository and have only
been added to this reference.


Summary of changes:
 doc/_templates/layout.html | 35 ++++++++++++++++++++++++++++-------
 doc/static/languages.json  |  4 ++++
 2 files changed, 32 insertions(+), 7 deletions(-)
 create mode 100644 doc/static/languages.json

-- 
To stop receiving notification emails like this one, please contact
['"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>'].

[trafficserver] 02/02: TS-4617: docs: release neutral lang/version switcher

Posted by js...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

jsime pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/trafficserver.git

commit bffb3dd4b68a0a6568f956944f01b68e6efb926a
Merge: 263672c c6f2b34
Author: Jon Sime <js...@apache.org>
AuthorDate: Wed Jul 13 16:51:21 2016 +0000

    TS-4617: docs: release neutral lang/version switcher

 doc/_templates/layout.html | 35 ++++++++++++++++++++++++++++-------
 doc/static/languages.json  |  4 ++++
 2 files changed, 32 insertions(+), 7 deletions(-)

-- 
To stop receiving notification emails like this one, please contact
"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>.

[trafficserver] 01/02: docs: update lang/ver builder script to support both public docs paths and local working copies

Posted by js...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

jsime pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/trafficserver.git

commit c6f2b34225cbc3c0e3137f338ac2fb2f6d6eabaa
Author: Jon Sime <js...@apache.org>
AuthorDate: Wed Jul 13 16:26:23 2016 +0000

    docs: update lang/ver builder script to support both public docs paths and local working copies
---
 doc/_templates/layout.html | 26 +++++++++++++++++---------
 1 file changed, 17 insertions(+), 9 deletions(-)

diff --git a/doc/_templates/layout.html b/doc/_templates/layout.html
index 2939289..def1231 100644
--- a/doc/_templates/layout.html
+++ b/doc/_templates/layout.html
@@ -34,18 +34,26 @@
 </div>
 <script>
 $(function() {
+  function update_langlist (json) {
+    for (var lang in json) {
+      $('#lang-list').append('<dd><a href="/' + lang + '/latest/">' + json[lang]['name'] + '</a></dd>');
+    }
+    for (var i in json[curlang]['versions']) {
+      var ver = json[curlang]['versions'][i];
+      $('#version-list').append('<dd><a href="/' + curlang + '/' + ver + '/">' + ver + '</a></dd>');
+    }
+  }
   var curlang = "{{ language }}" == "None" ? "en" : "{{ language }}";
   $.ajax({
-    'url': '/_static/languages.json',
+    'url':      "/en/latest/_static/languages.json",
     'dataType': "json",
-    'success': function (json) {
-      for (var lang in json) {
-        $('#lang-list').append('<dd><a href="/' + lang + '/latest/">' + json[lang]['name'] + '</a></dd>');
-      }
-      for (var i in json[curlang]['versions']) {
-        var ver = json[curlang]['versions'][i];
-        $('#version-list').append('<dd><a href="/' + curlang + '/' + ver + '/">' + ver + '</a></dd>');
-      }
+    'success':  function (json) { update_langlist(json) },
+    'error':    function (xhr,errstr,e) {
+      $.ajax({
+        'url':      "/_static/languages.json",
+        'dataType': "json",
+        'success':  function (json) { update_langlist(json) }
+      })
     }
   });
 });

-- 
To stop receiving notification emails like this one, please contact
"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>.