Skip to content

Commit

Permalink
PDFs
Browse files Browse the repository at this point in the history
  • Loading branch information
debruine committed Oct 14, 2024
1 parent 810d72b commit 140355c
Show file tree
Hide file tree
Showing 28 changed files with 96 additions and 15 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/pdf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Render PDFs
# manual trigger
on:
workflow_dispatch:

jobs:
build-deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
with:
version: 1.5.57
tinytex: true

- name: Render individual PDFs
uses: quarto-dev/quarto-actions/render@v2
with:
to: pdf
target: gh-pages
env:
QUARTO_PROFILE: guide
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Render Guide PDF
uses: quarto-dev/quarto-actions/render@v2
with:
to: pdf
target: gh-pages
output: or4-guide.pdf
env:
QUARTO_PROFILE: pages
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 0 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
all: index.qmd
Rscript -e 'quarto::quarto_render(output_format="html", profile="website"); browseURL("docs/index.html")'

pdf: guide-intro.qmd
Rscript -e 'quarto::quarto_render("guide-intro.qmd", output_format="pdf", profile="guide");'
21 changes: 14 additions & 7 deletions R/pdf.R
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
# pages <- list.files(pattern = "(case-study|guide)-.*\\.qmd") |>
# setdiff("guide-contents.qmd")
#
# for (page in pages) {
# quarto::quarto_render(page, output_format = "pdf", profile = "guide")
# }
# individual pages
pages <- list.files(pattern = "(case-study|guide)-.*\\.qmd") |>
setdiff("guide-contents.qmd")

quarto::quarto_render(output_format = "pdf", profile = "guide")
for (page in pages) {
quarto::quarto_render(page, output_format = "pdf", profile = "pages")
}


# full guide
file.rename("guide/index.md", "index.md")
quarto::quarto_render(output_format = "pdf",
profile = "guide",
output_file = "or4-guide.pdf")
file.rename("index.md", "guide/index.md")
13 changes: 8 additions & 5 deletions _quarto-guide.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
project:
output-dir: resources
output-dir: guide
type: book
title: A toolkit for recognising and rewarding open research

book:
chapters:
- guide-contents.qmd
- index.md
- guide-summary.qmd
- guide-intro.qmd
- guide-01-commitment.qmd
Expand All @@ -19,13 +21,14 @@ book:

format:
pdf:
documentclass: article
toc: false
toc: true
number-sections: false
colorlinks: true
include-in-header: pdf-header.tex
margin-left: 20mm
margin-right: 20mm
margin-top: 30mm
margin-bottom: 30mm
mainfont: Roboto
# mainfont: Roboto
output-file: "or4-guide"
output-ext: "pdf"
15 changes: 15 additions & 0 deletions _quarto_pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
project:
output-dir: resources

format:
pdf:
documentclass: article
toc: false
number-sections: false
colorlinks: true
include-in-header: pdf-header.tex
margin-left: 20mm
margin-right: 20mm
margin-top: 30mm
margin-bottom: 30mm
# mainfont: Roboto
Binary file added about.pdf
Binary file not shown.
Binary file added case-studies.pdf
Binary file not shown.
Binary file added case-study-bristol.pdf
Binary file not shown.
Binary file added glossary.pdf
Binary file not shown.
Binary file added guide-01-commitment.pdf
Binary file not shown.
Binary file added guide-02-leadership.pdf
Binary file not shown.
Binary file added guide-03-strategy.pdf
Binary file not shown.
Binary file added guide-04-communication.pdf
Binary file not shown.
Binary file added guide-05-policy.pdf
Binary file not shown.
Binary file added guide-06-support.pdf
Binary file not shown.
Binary file added guide-07-training.pdf
Binary file not shown.
Binary file added guide-08-monitoring.pdf
Binary file not shown.
Binary file added guide-09-planning.pdf
Binary file not shown.
Binary file added guide-contents.pdf
Binary file not shown.
Binary file added guide-intro.pdf
Binary file not shown.
Binary file added guide-summary.pdf
Binary file not shown.
21 changes: 21 additions & 0 deletions guide/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Overview

The implementation guide provides detailed guidance for institutions on implementing effective recognition and reward for open research in researcher assessment. It can be used by a group of stakeholders to develop a shared understanding of the rationale for recognising and rewarding open research practice and to explore different aspects of implementation in greater depth, in order to support informed planning and implementation. It can be consulted in conjunction with the [maturity framework](maturity-framework.qmd) and as part of an institutional self-assessment exercise.

An [executive summary](guide-summary.qmd) provides a high-level overview of the context and rationale for strategic action and the main areas of implementation covered by the guide. This is a a useful one-pager for those who want a summary of the essentials.

The introductory section, [Why recognise and reward open research practice?](guide-intro.qmd) explains the rationale for strategic action with reference to the wider sector context in more detail. This is a more developed treatment of the subject and can be used by members of a stakeholder group to establish a shared understanding and sense of purpose.

The nine sections mapped to the action areas of the maturity framework are designed to enable members of the stakeholder group to develop a more in-depth understanding of the key areas in which action may be required, and to create a practical plan of action to develop institutional maturity. Links to [case studies](case-studies.qmd) illustrating different aspects of implementation are provided.

A [Glossary of key terms](glossary.qmd) is also included.

Each of the nine main sections of the guide follows a standard format:

- **Why is this important?**
- **Maturity scale**: the maturity scale for this action area
- **Progress actions**: suggested key actions to move from one level of the maturity scale to the next
- **Main areas of activity**: in-depth guidance
- **Case studies**: links to [case studies](case-studies.qmd) illustrating different aspects of implementation at UK institutions


Binary file added guide/or4-guide.pdf
Binary file not shown.
Binary file added images/logos/.DS_Store
Binary file not shown.
Binary file added maturity-framework.pdf
Binary file not shown.
Binary file added overview.pdf
Binary file not shown.
Binary file not shown.
Binary file added self-assessment.pdf
Binary file not shown.

0 comments on commit 140355c

Please sign in to comment.