From 1a2eeeb0d54cd891940f67f0a0b4459936cccf11 Mon Sep 17 00:00:00 2001 From: Russell Poldrack Date: Sat, 20 Apr 2024 09:09:57 -0700 Subject: [PATCH] updating docs --- docs/index.html | 61 +++++-- docs/lab_volunteers.html | 63 +++++-- docs/labguide/computing/computing.html | 63 +++++-- .../labguide/environment/code_of_conduct.html | 63 +++++-- docs/labguide/environment/expectations.html | 63 +++++-- .../labguide/environment/lab_environment.html | 63 +++++-- docs/labguide/environment/survey.html | 63 +++++-- .../environment/work_life_balance.html | 63 +++++-- .../environment/working_remotely.html | 63 +++++-- docs/labguide/funding/funding.html | 63 +++++-- docs/labguide/general_lab_policies.html | 63 +++++-- docs/labguide/index.html | 63 +++++-- docs/labguide/mentoring/mentoring.html | 68 +++++-- docs/labguide/mission_statement.html | 63 +++++-- .../publication/addressing_errors.html | 63 +++++-- docs/labguide/publication/authorship.html | 63 +++++-- docs/labguide/publication/conferences.html | 63 +++++-- docs/labguide/publication/openaccess.html | 63 +++++-- .../publication/science_communication.html | 63 +++++-- docs/labguide/research/code_management.html | 63 +++++-- docs/labguide/research/coding_standards.html | 63 +++++-- .../research/data_analysis_procedures.html | 63 +++++-- docs/labguide/research/data_management.html | 63 +++++-- docs/labguide/research/documentation.html | 63 +++++-- docs/labguide/research/human_subjects.html | 63 +++++-- .../research/intellectual_property.html | 63 +++++-- docs/labguide/research/preregistration.html | 63 +++++-- docs/labguide/research/research.html | 63 +++++-- .../research/statistical_methods.html | 63 +++++-- docs/people.html | 65 +++++-- docs/positions.html | 64 +++++-- docs/projects.html | 170 +++++++++--------- docs/publications.html | 82 ++++++--- docs/research_subjects.html | 63 +++++-- docs/search.json | 31 ++-- docs/site_libs/bootstrap/bootstrap.min.css | 4 +- .../quarto-syntax-highlighting.css | 2 + docs/site_libs/quarto-html/quarto.js | 2 +- docs/site_libs/quarto-listing/list.min.js | 2 +- docs/site_libs/quarto-nav/quarto-nav.js | 37 ++++ docs/software.html | 127 ++++++++----- docs/talks.html | 63 +++++-- docs/volunteer.html | 63 +++++-- labguide/mentoring/mentoring.md | 6 +- 44 files changed, 1937 insertions(+), 674 deletions(-) diff --git a/docs/index.html b/docs/index.html index 1d820f2..4fa85d7 100644 --- a/docs/index.html +++ b/docs/index.html @@ -2,7 +2,7 @@ - + @@ -430,18 +430,7 @@ } return false; } - const clipboard = new window.ClipboardJS('.code-copy-button', { - text: function(trigger) { - const codeEl = trigger.previousElementSibling.cloneNode(true); - for (const childEl of codeEl.children) { - if (isCodeAnnotation(childEl)) { - childEl.remove(); - } - } - return codeEl.innerText; - } - }); - clipboard.on('success', function(e) { + const onCopySuccess = function(e) { // button target const button = e.trigger; // don't keep focus @@ -473,7 +462,47 @@ }, 1000); // clear code selection e.clearSelection(); + } + const getTextToCopy = function(trigger) { + const codeEl = trigger.previousElementSibling.cloneNode(true); + for (const childEl of codeEl.children) { + if (isCodeAnnotation(childEl)) { + childEl.remove(); + } + } + return codeEl.innerText; + } + const clipboard = new window.ClipboardJS('.code-copy-button:not([data-in-quarto-modal])', { + text: getTextToCopy }); + clipboard.on('success', onCopySuccess); + if (window.document.getElementById('quarto-embedded-source-code-modal')) { + // For code content inside modals, clipBoardJS needs to be initialized with a container option + // TODO: Check when it could be a function (https://github.com/zenorocha/clipboard.js/issues/860) + const clipboardModal = new window.ClipboardJS('.code-copy-button[data-in-quarto-modal]', { + text: getTextToCopy, + container: window.document.getElementById('quarto-embedded-source-code-modal') + }); + clipboardModal.on('success', onCopySuccess); + } + var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//); + var mailtoRegex = new RegExp(/^mailto:/); + var filterRegex = new RegExp('/' + window.location.host + '/'); + var isInternal = (href) => { + return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href); + } + // Inspect non-navigation links and adorn them if external + var links = window.document.querySelectorAll('a[href]:not(.nav-link):not(.navbar-brand):not(.toc-action):not(.sidebar-link):not(.sidebar-item-toggle):not(.pagination-link):not(.no-external):not([aria-hidden]):not(.dropdown-item):not(.quarto-navigation-tool):not(.about-link)'); + for (var i=0; i - + -The Poldrack Lab @Stanford - Lab volunteers +The Poldrack Lab \@Stanford – Lab volunteers