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

custom project types should not encourage html variants #9472

Open
aronatkins opened this issue Apr 24, 2024 · 0 comments
Open

custom project types should not encourage html variants #9472

aronatkins opened this issue Apr 24, 2024 · 0 comments
Labels
documentation Doc improvements & quarto-web

Comments

@aronatkins
Copy link
Contributor

aronatkins commented Apr 24, 2024

What would you like to do?

Report an issue on quarto.org

Description

The documentation for custom project type extensions should not encourage folks to create html format variations.

https://quarto.org/docs/extensions/project-types.html

The current advice is to do something like:

title: Lexdocs Project
author: Lexcorp, Inc.
version: 1.0.0
quarto-version: ">=1.2.0"
contributes:
  project:
    project:
      type: website
    format: lexdocs-html
  formats:
    html:
      theme: [default, theme.scss]
      code-overflow: wrap
      code-line-numbers: true
      filters:
        - filter.lua

It is often better to modify the HTML format rather than creating a distinct format:

title: Lexdocs Project
author: Lexcorp, Inc.
version: 1.0.0
quarto-version: ">=1.2.0"
contributes:
  project:
    project:
      type: website
    format:
      html:
        theme: [default, theme.scss]
        code-overflow: wrap
        code-line-numbers: true
        filters:
          - filter.lua

Without this adjustment, it is really easy for folks to have some arbitrary.qmd file which adjusts the HTML format. Unfortunately, that has the side-effect of effectively producing two formats for the project.

@aronatkins aronatkins added the documentation Doc improvements & quarto-web label Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Doc improvements & quarto-web
Projects
None yet
Development

No branches or pull requests

1 participant