diff --git a/Documentation/Books/AQL/book.json b/Documentation/Books/AQL/book.json index b964a8abc3..31cb54110f 100644 --- a/Documentation/Books/AQL/book.json +++ b/Documentation/Books/AQL/book.json @@ -37,8 +37,8 @@ }, "sitemap-general": { "prefix": "https://docs.arangodb.com/devel/AQL/", - "changefreq": "daily", - "priority": 0.3 + "changefreq": "@GCHANGE_FREQ@", + "priority": @GPRIORITY@ }, "ga": { "token": "UA-81053435-2" diff --git a/Documentation/Books/AQL/styles/header.js b/Documentation/Books/AQL/styles/header.js index 121989a137..eeca362577 100644 --- a/Documentation/Books/AQL/styles/header.js +++ b/Documentation/Books/AQL/styles/header.js @@ -1,4 +1,7 @@ // Try to set the version number early, jQuery not available yet +var searcheable_versions = [@BROWSEABLE_VERSIONS@]; +var cx = '@GSEARCH_ID@'; + document.addEventListener("DOMContentLoaded", function(event) { if (!gitbook.state.root) return; var bookVersion = gitbook.state.root.match(/\/(\d\.\d(\.\d)?|devel)\//); @@ -16,7 +19,22 @@ window.localStorage.removeItem(":keyword"); $(document).ready(function() { function appendHeader() { - + var VERSION_SELECTOR = "" + var i = 0; + var prefix; + for (i = 0; i < searcheable_versions.length; i++ ) { + if (searcheable_versions[i] === 'devel') { + prefix = ''; + } else { + prefix = 'v'; + } + VERSION_SELECTOR += '\n'; + } + var div = document.createElement('div'); div.innerHTML = '
\n' + ' \n' + ' \n' + '