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

Improve documentation for babelquarto YAML settings #66

Open
joelnitta opened this issue Sep 11, 2024 · 1 comment · May be fixed by #78
Open

Improve documentation for babelquarto YAML settings #66

joelnitta opened this issue Sep 11, 2024 · 1 comment · May be fixed by #78

Comments

@joelnitta
Copy link
Contributor

It would be helpful to have documentation for the various fields of the babelquarto field that is added to _quarto.yml.

For example, here is the default one:

babelquarto:
  languagelinks: navbar
  languagecodes:
  - name: es
    text: "Version in es"
  - name: fr
    text: "Version in fr"
  - name: en
    text: "Version in en"
  mainlanguage: 'en'
  languages: ['es', 'fr']
title-es: title in es
title-fr: title in fr
description-es: description in es
description-fr: description in fr
author-es: author in es
author-fr: author in fr
lang: en

Why is the last lang:en needed? Isn't that redundant, considering that we already have mainlanguage: 'en'?

@Nenuial
Copy link
Collaborator

Nenuial commented Sep 11, 2024

I'll also see if I can take this into account in the docs.

This is a quarto setting, having it set in _quarto.yml allows you to not repeat it in every document.

With profiles you could now set lang: es in a _quarto-es.yml for example and this setting then gets applied in every document when rendering the Spanish version.

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 a pull request may close this issue.

2 participants