Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pdf-specific rendering and profiles #67

Merged
merged 1 commit into from
Jul 19, 2024

Conversation

ianalexmac
Copy link
Collaborator

This pull request adds separate Quarto Profiles for the HTML build and the PDF build. Doing so allows us to make format-specific changes, such as omitting data.qmd from the pdf build (no need for a data portal in print format). This represents a major step forward in the control of our renderings while maintaining our streamlined single-job workflow.

Changes overview:

  • _quarto.yml has been split into two profiles: _quarto-html.yml and _quarto-pdf.yml
  • _quarto.yml is now just a pointer towards the two profiles
  • html render and publish to GitHub Pages remains unchanged, all chapters included
  • pdf render has content restricted to index.html and about.html for demonstration purposes. View the pdf here

Going forward, we can now modify content rendered to the PDF, which keeps us all sane.

Note: commits were squashed, see fork for original commit history.

 Please enter the commit message for your changes. Lines starting
Copy link
Collaborator

@eldobbins eldobbins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clever solution to a problem that has been nagging me.

@eldobbins eldobbins merged commit 4af6327 into acep-uaf:main Jul 19, 2024
@eldobbins
Copy link
Collaborator

@ianalexmac did you document how you figured this out? If so, please link to your trail of breadcrumbs. Otherwise, write something up in the wiki.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants