Skip to content

Commit

Permalink
updated posit-docs extension
Browse files Browse the repository at this point in the history
  • Loading branch information
edavidaja committed May 7, 2024
1 parent a309214 commit 3793d6c
Show file tree
Hide file tree
Showing 18 changed files with 256 additions and 43 deletions.
2 changes: 2 additions & 0 deletions _environment
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CURRENT_YEAR=2024
PRODUCT_VERSION=2024.x
49 changes: 20 additions & 29 deletions _extensions/posit-dev/posit-docs/_extension.yml
Original file line number Diff line number Diff line change
@@ -1,42 +1,33 @@
title: posit-docs
author: Ashley Henry
version: 0.2.0
quarto-requred: ">=1.3.340"
author: Ashley Henry, David Aja, Aron Atkins
version: 3.0.0
quarto-required: ">=1.3.340"
contributes:
project:
project:
type: website
website:
title:
favicon: "assets/images/favicon.svg"
bread-crumbs: true
navbar:
pinned: true
logo: "assets/images/posit-icon-fullcolor.svg"
logo-alt: "Posit Documentation"
sidebar:
style: "floating"
collapse-level: 1
search: true
pinned: false
page-footer:
left:
- text: © 2024 Posit Software, PBC
url: "https://posit.co"
center: |
Posit Product 12345
right:
- icon: book
href: https://docs.posit.co
- icon: question-circle-fill
href: https://support.posit.co/hc/en-us
- icon: lightbulb-fill
href: https://solutions.posit.co
formats:
html:
theme: [theme.scss]
link-external-icon: true
link-external-newwindow: true
toc: true
toc-expand: true
- icon: "list"
menu:
- text: "docs.posit.co"
href: "https://docs.posit.co"
- text: "Posit Support"
href: "https://support.posit.co/hc/en-us/"
search:
copy-button: true
show-item-context: true
format:
html:
theme: [theme.scss]
link-external-icon: true
link-external-newwindow: true
toc: true
toc-expand: true
include-in-header: "assets/_analytics.html"
40 changes: 40 additions & 0 deletions _extensions/posit-dev/posit-docs/assets/_analytics.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<!-- Google Analytics 4 (G-XXXXXXXXXX) -->
<script>
/* Use GA when hosted by our public docs site, not when installed. */
if (location.href.indexOf("docs.posit.co") >= 0) {
window.dataLayer = window.dataLayer || []
function gtag() { dataLayer.push(arguments) }
/* Set up integration and send page view */
gtag("js", new Date())
gtag("config", "GTM-KHBDBW7")

/* Register virtual event handlers */
document.addEventListener("DOMContentLoaded", function () {
if (document.forms.search) {
var query = document.forms.search.query
query.addEventListener("blur", function () {
if (this.value) {
gtag("event", "search", { search_term: this.value })
}
})
}

/* Send page view on location change */
if (typeof location$ !== "undefined")
location$.subscribe(function (url) {
gtag("config", "GTM-KHBDBW7", {
page_path: url.pathname
})
})
})
/* Create script tag */
var script = document.createElement("script")
script.async = true
script.src = "https://www.googletagmanager.com/gtag/js?id=GTM-KHBDBW7"

/* Inject script tag */
var container = document.getElementsByTagName("head")[0]
var firstChild = container.firstChild
container.insertBefore(script, firstChild)
}
</script>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 3793d6c

Please sign in to comment.