diff options
author | Yann E. MORIN <yann.morin.1998@free.fr> | 2015-01-24 00:05:55 +0100 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2015-01-25 18:17:09 +0100 |
commit | 2ee00d0964dddf364c195e656ab938c721b50569 (patch) | |
tree | f867da552a44e6beec69e1374028dbc16395bb56 /docs/js/buildroot.js | |
parent | b90fa707f3a3d43d54944e7b80ad6423f2f93667 (diff) | |
download | buildroot-2ee00d0964dddf364c195e656ab938c721b50569.tar.gz buildroot-2ee00d0964dddf364c195e656ab938c721b50569.zip |
docs: really move the website
Now that the automated scripts that deply our website have been updated,
really move the website to its final location.
We still keep a symlink for the images, as they are used both for the
website, and for the manual.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Peter Korsgaard <jacmet@uclibc.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'docs/js/buildroot.js')
-rw-r--r-- | docs/js/buildroot.js | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/docs/js/buildroot.js b/docs/js/buildroot.js deleted file mode 100644 index 83a3ac0305..0000000000 --- a/docs/js/buildroot.js +++ /dev/null @@ -1,65 +0,0 @@ -function load_activity(feedurl, divid) { - var feed = new google.feeds.Feed(feedurl); - var container = document.getElementById(divid); - var loaded = 0; - var nb_display = 8; - feed.setNumEntries(30); - feed.load(function(result) { - if (result.error) { - return; - } - for (var i = 0; i < result.feed.entries.length; i++) { - var entry = result.feed.entries[i]; - if (entry.title.indexOf("git commit") != -1) - continue; - loaded += 1; - if (loaded > nb_display) - break; - var div = document.createElement("p"); - var link = document.createElement("a"); - var d = new Date(entry.publishedDate); - var data = '[' + d.toLocaleDateString() + '] ' + entry.title - var text = document.createTextNode(data); - link.appendChild(text); - link.title = entry.title; - link.href = entry.link - div.appendChild(link); - container.appendChild(div); - } - var empty = nb_display - loaded; - for (var i = 0; i < empty; i++) { - container.appendChild(document.createElement("p")); - } - }); -} - -function initialize() { - load_activity("http://rss.gmane.org/topics/excerpts/gmane.comp.lib.uclibc.buildroot", "mailing-list-activity"); - load_activity("http://git.buildroot.org/buildroot/atom/?h=master", "commit-activity"); -} - -function google_analytics() { - var _gaq = _gaq || []; - _gaq.push(['_setAccount', 'UA-21761074-1']); - _gaq.push(['_setDomainName', 'none']); - _gaq.push(['_setAllowLinker', true]); - _gaq.push(['_trackPageview']); - - var ga = document.createElement('script'); - ga.type = 'text/javascript'; - ga.async = true; - ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; - var s = document.getElementsByTagName('script')[0]; - s.parentNode.insertBefore(ga, s); -} - -google.load("feeds", "1"); -google.setOnLoadCallback(initialize); -google_analytics(); - -jQuery(document).ready(function($) { - var url = window.location.href; - // Get the basename of the URL - url = url.split(/[\\/]/).pop() - $('.nav a[href="/' + url + '"]').parent().addClass('active'); -}); |