From 50b795f9e950d609346e31c6f94ac13fae03d28e Mon Sep 17 00:00:00 2001 From: tdstein Date: Mon, 3 Jun 2024 10:50:57 -0400 Subject: [PATCH] docs: adds footer --- docs/Makefile | 20 +++++++++++--------- docs/_quarto.yml | 16 ++++++++++++++++ 2 files changed, 27 insertions(+), 9 deletions(-) diff --git a/docs/Makefile b/docs/Makefile index 1b6ad6a2..05158648 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -1,20 +1,24 @@ .DEFAULT_GOAL := all -VERSION := $(shell make -C ../ version) -export VERSION - # Command aliases QUARTO=quarto QUARTODOC=quartodoc -# Targets +# Environment variables +CURRENT_YEAR := $(shell date +%Y) +VERSION := $(shell make -C ../ version) +export CURRENT_YEAR VERSION + .PHONY: clean build deps preview -all: deps build +all: deps api build -build: +api: deps $(QUARTODOC) build $(QUARTODOC) interlinks + cp -r _extensions/ reference/_extensions # Required to render footer + +build: api $(QUARTO) render clean: @@ -25,7 +29,5 @@ deps: $(QUARTO) add --no-prompt posit-dev/product-doc-theme@v4.0.2 $(QUARTO) add --no-prompt machow/quartodoc -preview: - $(QUARTODOC) build - $(QUARTODOC) interlinks +preview: api $(QUARTO) preview diff --git a/docs/_quarto.yml b/docs/_quarto.yml index 0b459961..cb3cbaa6 100644 --- a/docs/_quarto.yml +++ b/docs/_quarto.yml @@ -24,6 +24,22 @@ website: href: "https://docs.posit.co" - text: "Posit Support" href: "https://support.posit.co/hc/en-us/" + page-footer: + left: | + Copyright © 2000-{{< env CURRENT_YEAR >}} Posit Software, PBC. All Rights Reserved. + center: | + Posit PRODUCT {{< env VERSION >}} + right: + - icon: question-circle-fill + aria-label: 'Link to Posit Support' + href: "https://support.posit.co/hc/en-us" + - icon: lightbulb-fill + aria-label: 'Link to Posit Solutions' + href: "https://solutions.posit.co/" + - text: "" + href: "https://docs.posit.co/" + - text: "" + href: "https://posit.co/" search: copy-button: true show-item-context: true