Skip to content

Commit

Permalink
remove publish 04 activity
Browse files Browse the repository at this point in the history
  • Loading branch information
ryjohnson09 committed Aug 12, 2024
1 parent e52ce4f commit 828bc7a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 59 deletions.
65 changes: 16 additions & 49 deletions docs/slides/04_tidymodels_and_vetiver.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
<link href="../site_libs/quarto-html/quarto-syntax-highlighting.css" rel="stylesheet" id="quarto-text-highlighting-styles">
<script src="../site_libs/quarto-contrib/posit_slides/posit-slides.js"></script>
<link href="../site_libs/quarto-contrib/bootstrap-icons-1.9.1/all.css" rel="stylesheet"><meta charset="utf-8">
<meta name="generator" content="quarto-1.5.40">
<meta name="generator" content="quarto-1.4.553">

<title>Data Science Workflows with Posit Tools - R focus – tidymodels_and_vetiver</title>
<title>Data Science Workflows with Posit Tools - R focus</title>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui">
Expand Down Expand Up @@ -43,7 +43,7 @@
}
@media print {
pre > code.sourceCode { white-space: pre-wrap; }
pre > code.sourceCode > span { display: inline-block; text-indent: -5em; padding-left: 5em; }
pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; }
}
pre.numberSource code
{ counter-reset: source-line 0; }
Expand Down Expand Up @@ -793,28 +793,6 @@ <h2>Ferry Delay Prediction Model</h2>
</ul></li>
</ul>
</section>
<section class="slide level2" data-background-image="_extensions/positconfslides/assets/backgrounds/content-light.svg" data-background-size="contain">
<h2></h2>
<div class="columns">
<div class="column" style="width:100%;">
<h2>Deploy to Posit Connect</h2>
<div class="callout callout-note no-icon callout-titled callout-style-default">
<div class="callout-body">
<div class="callout-title">
<p><strong>Activity</strong></p>
</div>
<div class="callout-content">
<ul>
<li>Open the project <code>materials/04-tidymodels-vetiver/04-tidymodels-vetiver.Rproj</code></li>
<li>Open the file <code>04-tidymodels-vetiver.qmd</code></li>
</ul>
<p><strong>Publish to Posit Connect using push button deployment!</strong></p>
</div>
</div>
</div>
</div>
</div>
</section>
<section class="slide level2">
<h2>Review</h2>

Expand Down Expand Up @@ -1107,7 +1085,18 @@ <h2>Review</h2>
}
return false;
}
const onCopySuccess = function(e) {
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) {
// button target
const button = e.trigger;
// don't keep focus
Expand Down Expand Up @@ -1139,37 +1128,15 @@ <h2>Review</h2>
}, 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)');
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)');
for (var i=0; i<links.length; i++) {
const link = links[i];
if (!isInternal(link.href)) {
Expand Down
10 changes: 0 additions & 10 deletions website/slides/04_tidymodels_and_vetiver.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -313,16 +313,6 @@ Training this model is relatively *fast*

- Check out a basic model card [here](https://pub.ferryland.posit.team/ferry_model_card_r/)!

## Deploy to Posit Connect {.content-light}

::: {.callout-note icon="false"}
## Activity

- Open the project `materials/04-tidymodels-vetiver/04-tidymodels-vetiver.Rproj`
- Open the file `04-tidymodels-vetiver.qmd`

**Publish to Posit Connect using push button deployment!**
:::

## Review

Expand Down

0 comments on commit 828bc7a

Please sign in to comment.