From b372baf353b693198a4d8417cf008d04f44dd14a Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Thu, 1 Mar 2018 08:05:45 +0100 Subject: Static documentation rebuilt by current pkgdown --- docs/articles/gmkin_manual.html | 31 +++++++++--- docs/articles/index.html | 27 +++++++++-- docs/authors.html | 33 ++++++++++--- docs/index.html | 38 ++++++++++----- docs/news/index.html | 27 +++++++++-- docs/pkgdown.css | 42 ++++++++++++++++- docs/pkgdown.js | 88 ++++++++++++++++++++++++++++++++++- docs/reference/FOCUS_2006.html | 44 ++++++++++++++---- docs/reference/FOCUS_2006_Z.html | 38 +++++++++++---- docs/reference/UBA_model_gallery.html | 33 +++++++++++-- docs/reference/gmkin.html | 62 +++++++++++++++++------- docs/reference/gmkinws.html | 28 +++++++++-- docs/reference/index.html | 27 +++++++++-- 13 files changed, 437 insertions(+), 81 deletions(-) (limited to 'docs') diff --git a/docs/articles/gmkin_manual.html b/docs/articles/gmkin_manual.html index 389ffdb..f283cf6 100644 --- a/docs/articles/gmkin_manual.html +++ b/docs/articles/gmkin_manual.html @@ -8,8 +8,11 @@ Manual for gmkin • gmkin - - + + + + @@ -28,11 +31,26 @@ @@ -351,7 +369,8 @@ Optimisation by method Port successfully terminated.
-

Site built with pkgdown.

+

Site built with pkgdown.

diff --git a/docs/articles/index.html b/docs/articles/index.html index 20f744f..bfd24e2 100644 --- a/docs/articles/index.html +++ b/docs/articles/index.html @@ -18,12 +18,16 @@ + + - + + + @@ -51,10 +55,25 @@
-

Site built with pkgdown.

+

Site built with pkgdown.

diff --git a/docs/authors.html b/docs/authors.html index bd091af..fa7d1eb 100644 --- a/docs/authors.html +++ b/docs/authors.html @@ -18,12 +18,16 @@ + + - + + + @@ -51,10 +55,25 @@
-

Site built with pkgdown.

+

Site built with pkgdown.

diff --git a/docs/index.html b/docs/index.html index a868144..1f2056b 100644 --- a/docs/index.html +++ b/docs/index.html @@ -8,8 +8,13 @@ Graphical User Interface for Fitting Kinetic Models to Chemical Degradation Data • gmkin - - + + + + @@ -28,11 +33,26 @@
-

Site built with pkgdown.

+

Site built with pkgdown.

diff --git a/docs/news/index.html b/docs/news/index.html index 77bd232..78f1749 100644 --- a/docs/news/index.html +++ b/docs/news/index.html @@ -18,12 +18,16 @@ + + - + + + @@ -51,10 +55,25 @@
-

Site built with pkgdown.

+

Site built with pkgdown.

diff --git a/docs/pkgdown.css b/docs/pkgdown.css index 9c437c7..181fe63 100644 --- a/docs/pkgdown.css +++ b/docs/pkgdown.css @@ -34,6 +34,10 @@ img.icon { float: right; } +img { + max-width: 100%; +} + /* Section anchors ---------------------------------*/ a.anchor { @@ -96,6 +100,11 @@ a.anchor { margin-bottom: 0.5em; } +.orcid { + height: 16px; + vertical-align: middle; +} + /* Reference index & topics ----------------------------------------------- */ .ref-index th {font-weight: normal;} @@ -133,15 +142,30 @@ pre, code { color: #333; } -pre img { +pre code { + overflow: auto; + word-wrap: normal; + white-space: pre; +} + +pre .img { + margin: 5px 0; +} + +pre .img img { background-color: #fff; display: block; + height: auto; } code a, pre a { color: #375f84; } +a.sourceLine:hover { + text-decoration: none; +} + .fl {color: #1514b5;} .fu {color: #000000;} /* function */ .ch,.st {color: #036a07;} /* string */ @@ -152,3 +176,19 @@ code a, pre a { .error { color: orange; font-weight: bolder;} .warning { color: #6A0366; font-weight: bolder;} +/* Clipboard --------------------------*/ + +.hasCopyButton { + position: relative; +} + +.btn-copy-ex { + position: absolute; + right: 0; + top: 0; + visibility: hidden; +} + +.hasCopyButton:hover button.btn-copy-ex { + visibility: visible; +} diff --git a/docs/pkgdown.js b/docs/pkgdown.js index c8b38c4..64b20df 100644 --- a/docs/pkgdown.js +++ b/docs/pkgdown.js @@ -1,8 +1,94 @@ $(function() { - $("#sidebar").stick_in_parent({offset_top: 40}); + + $("#sidebar") + .stick_in_parent({offset_top: 40}) + .on('sticky_kit:bottom', function(e) { + $(this).parent().css('position', 'static'); + }) + .on('sticky_kit:unbottom', function(e) { + $(this).parent().css('position', 'relative'); + }); + $('body').scrollspy({ target: '#sidebar', offset: 60 }); + var cur_path = paths(location.pathname); + $("#navbar ul li a").each(function(index, value) { + if (value.text == "Home") + return; + if (value.getAttribute("href") === "#") + return; + + var path = paths(value.pathname); + if (is_prefix(cur_path, path)) { + // Add class to parent
  • , and enclosing
  • if in dropdown + var menu_anchor = $(value); + menu_anchor.parent().addClass("active"); + menu_anchor.closest("li.dropdown").addClass("active"); + } + }); }); + +function paths(pathname) { + var pieces = pathname.split("/"); + pieces.shift(); // always starts with / + + var end = pieces[pieces.length - 1]; + if (end === "index.html" || end === "") + pieces.pop(); + return(pieces); +} + +function is_prefix(needle, haystack) { + if (needle.length > haystack.lengh) + return(false); + + for (var i = 0; i < haystack.length; i++) { + if (needle[i] != haystack[i]) + return(false); + } + + return(true); +} + +/* Clipboard --------------------------*/ + +function changeTooltipMessage(element, msg) { + var tooltipOriginalTitle=element.getAttribute('data-original-title'); + element.setAttribute('data-original-title', msg); + $(element).tooltip('show'); + element.setAttribute('data-original-title', tooltipOriginalTitle); +} + +if(Clipboard.isSupported()) { + $(document).ready(function() { + var copyButton = ""; + + $(".examples").addClass("hasCopyButton"); + + // Insert copy buttons: + $(copyButton).prependTo(".hasCopyButton"); + + // Initialize tooltips: + $('.btn-copy-ex').tooltip({container: 'body'}); + + // Initialize clipboard: + var clipboardBtnCopies = new Clipboard('[data-clipboard-copy]', { + text: function(trigger) { + return trigger.parentNode.textContent; + } + }); + + clipboardBtnCopies.on('success', function(e) { + changeTooltipMessage(e.trigger, 'Copied!'); + e.clearSelection(); + }); + + clipboardBtnCopies.on('error', function() { + changeTooltipMessage(e.trigger,'Press Ctrl+C or Command+C to copy'); + }); + }); +} + diff --git a/docs/reference/FOCUS_2006.html b/docs/reference/FOCUS_2006.html index 2c9d327..ca9b5ce 100644 --- a/docs/reference/FOCUS_2006.html +++ b/docs/reference/FOCUS_2006.html @@ -18,12 +18,21 @@ + + - + + + + + + @@ -51,10 +60,25 @@
    -

    Site built with pkgdown.

    +

    Site built with pkgdown.

    diff --git a/docs/reference/FOCUS_2006_Z.html b/docs/reference/FOCUS_2006_Z.html index dff1b0e..4eff2a7 100644 --- a/docs/reference/FOCUS_2006_Z.html +++ b/docs/reference/FOCUS_2006_Z.html @@ -18,12 +18,19 @@ + + + + + + + @@ -51,10 +58,25 @@
    -

    Site built with pkgdown.

    +

    Site built with pkgdown.

    diff --git a/docs/reference/UBA_model_gallery.html b/docs/reference/UBA_model_gallery.html index 74fc20b..4157743 100644 --- a/docs/reference/UBA_model_gallery.html +++ b/docs/reference/UBA_model_gallery.html @@ -18,12 +18,24 @@ + + + + + + + @@ -51,10 +63,25 @@
    -

    Site built with pkgdown.

    +

    Site built with pkgdown.

    diff --git a/docs/reference/gmkin.html b/docs/reference/gmkin.html index 961372e..75548cb 100644 --- a/docs/reference/gmkin.html +++ b/docs/reference/gmkin.html @@ -18,12 +18,21 @@ + + - + + + + + + @@ -51,10 +60,25 @@
    -

    Site built with pkgdown.

    +

    Site built with pkgdown.

    diff --git a/docs/reference/gmkinws.html b/docs/reference/gmkinws.html index 28f6014..2c1f509 100644 --- a/docs/reference/gmkinws.html +++ b/docs/reference/gmkinws.html @@ -18,12 +18,19 @@ + + + + + + + @@ -51,10 +58,25 @@
    -

    Site built with pkgdown.

    +

    Site built with pkgdown.

    diff --git a/docs/reference/index.html b/docs/reference/index.html index 6f21a01..3fd068b 100644 --- a/docs/reference/index.html +++ b/docs/reference/index.html @@ -18,12 +18,16 @@ + + - + + + @@ -51,10 +55,25 @@
    -

    Site built with pkgdown.

    +

    Site built with pkgdown.

    -- cgit v1.2.1