Skip to content

Commit

Permalink
docs: adds footer
Browse files Browse the repository at this point in the history
  • Loading branch information
tdstein committed Jun 3, 2024
1 parent b1fbd82 commit 50b795f
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 9 deletions.
20 changes: 11 additions & 9 deletions docs/Makefile
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -25,7 +29,5 @@ deps:
$(QUARTO) add --no-prompt posit-dev/[email protected]
$(QUARTO) add --no-prompt machow/quartodoc

preview:
$(QUARTODOC) build
$(QUARTODOC) interlinks
preview: api
$(QUARTO) preview
16 changes: 16 additions & 0 deletions docs/_quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 &copy; 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: "<img alt='Link to Posit Documentation' src='_extensions/posit-dev/posit-docs/assets/images/posit-guide-ltmd.svg' id='footer-right-logo'>"
href: "https://docs.posit.co/"
- text: "<img alt='Link to main Posit site' src='_extensions/posit-dev/posit-docs/assets/images/posit-icon-fullcolor.svg' id='footer-right-posit-logo'>"
href: "https://posit.co/"
search:
copy-button: true
show-item-context: true
Expand Down

0 comments on commit 50b795f

Please sign in to comment.