From db9ae6a0c9cecb92048fde6f06af1da183c09b5f Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Thu, 19 Nov 2020 15:41:24 +0100 Subject: Depend on parallel, doc improvements By depending on parallel instead of importing it, functions to set up and stop a cluster are always available when mkin is loaded. The use of multicore processing in mmkin on Windows is now documented in the help file, which brings mkin closer to a version 1.0 #9. --- .../anchor-sections-1.0/anchor-sections.css | 4 +++ .../anchor-sections-1.0/anchor-sections.js | 33 +++++++++++++++++++++ .../figure-html/unnamed-chunk-10-1.png | Bin 29158 -> 43110 bytes .../figure-html/unnamed-chunk-12-1.png | Bin 54890 -> 84605 bytes .../figure-html/unnamed-chunk-13-1.png | Bin 22017 -> 33489 bytes .../figure-html/unnamed-chunk-15-1.png | Bin 38622 -> 59507 bytes .../figure-html/unnamed-chunk-4-1.png | Bin 23429 -> 35964 bytes .../figure-html/unnamed-chunk-5-1.png | Bin 14826 -> 21999 bytes .../figure-html/unnamed-chunk-6-1.png | Bin 23881 -> 36379 bytes .../figure-html/unnamed-chunk-8-1.png | Bin 27992 -> 42221 bytes .../figure-html/unnamed-chunk-9-1.png | Bin 28432 -> 41739 bytes 11 files changed, 37 insertions(+) create mode 100644 docs/dev/articles/FOCUS_L_files/anchor-sections-1.0/anchor-sections.css create mode 100644 docs/dev/articles/FOCUS_L_files/anchor-sections-1.0/anchor-sections.js (limited to 'docs/dev/articles/FOCUS_L_files') diff --git a/docs/dev/articles/FOCUS_L_files/anchor-sections-1.0/anchor-sections.css b/docs/dev/articles/FOCUS_L_files/anchor-sections-1.0/anchor-sections.css new file mode 100644 index 00000000..07aee5fc --- /dev/null +++ b/docs/dev/articles/FOCUS_L_files/anchor-sections-1.0/anchor-sections.css @@ -0,0 +1,4 @@ +/* Styles for section anchors */ +a.anchor-section {margin-left: 10px; visibility: hidden; color: inherit;} +a.anchor-section::before {content: '#';} +.hasAnchor:hover a.anchor-section {visibility: visible;} diff --git a/docs/dev/articles/FOCUS_L_files/anchor-sections-1.0/anchor-sections.js b/docs/dev/articles/FOCUS_L_files/anchor-sections-1.0/anchor-sections.js new file mode 100644 index 00000000..570f99a0 --- /dev/null +++ b/docs/dev/articles/FOCUS_L_files/anchor-sections-1.0/anchor-sections.js @@ -0,0 +1,33 @@ +// Anchor sections v1.0 written by Atsushi Yasumoto on Oct 3rd, 2020. +document.addEventListener('DOMContentLoaded', function() { + // Do nothing if AnchorJS is used + if (typeof window.anchors === 'object' && anchors.hasOwnProperty('hasAnchorJSLink')) { + return; + } + + const h = document.querySelectorAll('h1, h2, h3, h4, h5, h6'); + + // Do nothing if sections are already anchored + if (Array.from(h).some(x => x.classList.contains('hasAnchor'))) { + return null; + } + + // Use section id when pandoc runs with --section-divs + const section_id = function(x) { + return ((x.classList.contains('section') || (x.tagName === 'SECTION')) + ? x.id : ''); + }; + + // Add anchors + h.forEach(function(x) { + const id = x.id || section_id(x.parentElement); + if (id === '') { + return null; + } + let anchor = document.createElement('a'); + anchor.href = '#' + id; + anchor.classList = ['anchor-section']; + x.classList.add('hasAnchor'); + x.appendChild(anchor); + }); +}); diff --git a/docs/dev/articles/FOCUS_L_files/figure-html/unnamed-chunk-10-1.png b/docs/dev/articles/FOCUS_L_files/figure-html/unnamed-chunk-10-1.png index 88d03d24..811c800e 100644 Binary files a/docs/dev/articles/FOCUS_L_files/figure-html/unnamed-chunk-10-1.png and b/docs/dev/articles/FOCUS_L_files/figure-html/unnamed-chunk-10-1.png differ diff --git a/docs/dev/articles/FOCUS_L_files/figure-html/unnamed-chunk-12-1.png b/docs/dev/articles/FOCUS_L_files/figure-html/unnamed-chunk-12-1.png index f23a4c97..4c02b097 100644 Binary files a/docs/dev/articles/FOCUS_L_files/figure-html/unnamed-chunk-12-1.png and b/docs/dev/articles/FOCUS_L_files/figure-html/unnamed-chunk-12-1.png differ diff --git a/docs/dev/articles/FOCUS_L_files/figure-html/unnamed-chunk-13-1.png b/docs/dev/articles/FOCUS_L_files/figure-html/unnamed-chunk-13-1.png index ed6a781d..1aa97f8c 100644 Binary files a/docs/dev/articles/FOCUS_L_files/figure-html/unnamed-chunk-13-1.png and b/docs/dev/articles/FOCUS_L_files/figure-html/unnamed-chunk-13-1.png differ diff --git a/docs/dev/articles/FOCUS_L_files/figure-html/unnamed-chunk-15-1.png b/docs/dev/articles/FOCUS_L_files/figure-html/unnamed-chunk-15-1.png index db54326e..36e862f6 100644 Binary files a/docs/dev/articles/FOCUS_L_files/figure-html/unnamed-chunk-15-1.png and b/docs/dev/articles/FOCUS_L_files/figure-html/unnamed-chunk-15-1.png differ diff --git a/docs/dev/articles/FOCUS_L_files/figure-html/unnamed-chunk-4-1.png b/docs/dev/articles/FOCUS_L_files/figure-html/unnamed-chunk-4-1.png index 04bee502..68b24b5e 100644 Binary files a/docs/dev/articles/FOCUS_L_files/figure-html/unnamed-chunk-4-1.png and b/docs/dev/articles/FOCUS_L_files/figure-html/unnamed-chunk-4-1.png differ diff --git a/docs/dev/articles/FOCUS_L_files/figure-html/unnamed-chunk-5-1.png b/docs/dev/articles/FOCUS_L_files/figure-html/unnamed-chunk-5-1.png index 86af1cf9..e8f21107 100644 Binary files a/docs/dev/articles/FOCUS_L_files/figure-html/unnamed-chunk-5-1.png and b/docs/dev/articles/FOCUS_L_files/figure-html/unnamed-chunk-5-1.png differ diff --git a/docs/dev/articles/FOCUS_L_files/figure-html/unnamed-chunk-6-1.png b/docs/dev/articles/FOCUS_L_files/figure-html/unnamed-chunk-6-1.png index bfa271dd..53e33b68 100644 Binary files a/docs/dev/articles/FOCUS_L_files/figure-html/unnamed-chunk-6-1.png and b/docs/dev/articles/FOCUS_L_files/figure-html/unnamed-chunk-6-1.png differ diff --git a/docs/dev/articles/FOCUS_L_files/figure-html/unnamed-chunk-8-1.png b/docs/dev/articles/FOCUS_L_files/figure-html/unnamed-chunk-8-1.png index 8b39f0fc..47d5b335 100644 Binary files a/docs/dev/articles/FOCUS_L_files/figure-html/unnamed-chunk-8-1.png and b/docs/dev/articles/FOCUS_L_files/figure-html/unnamed-chunk-8-1.png differ diff --git a/docs/dev/articles/FOCUS_L_files/figure-html/unnamed-chunk-9-1.png b/docs/dev/articles/FOCUS_L_files/figure-html/unnamed-chunk-9-1.png index 13019224..f644c299 100644 Binary files a/docs/dev/articles/FOCUS_L_files/figure-html/unnamed-chunk-9-1.png and b/docs/dev/articles/FOCUS_L_files/figure-html/unnamed-chunk-9-1.png differ -- cgit v1.2.1