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

Format inheritance and avoiding conflicting format outputs #33

Open
cynthiahqy opened this issue Jan 10, 2025 · 1 comment
Open

Format inheritance and avoiding conflicting format outputs #33

cynthiahqy opened this issue Jan 10, 2025 · 1 comment

Comments

@cynthiahqy
Copy link
Collaborator

Ran into the folliwng error when trying to render 13a19e8

ERROR: NotFound: No such file or directory (os error 2): 

Due to multiple top-level html formats specified in _quarto.yml -- without different output file paths:

format:
lesson-html:
theme:
- default
- styles/main.scss
html:
theme:
- default
- styles/main.scss

Ideal fix would be to put a shared metadata config in modules/, but _metadata.yml is not inherited by .qmd files in subdirectories.

Workaround is to make every page in the website a lesson-html format, and then specify html formats for the top level about.qmd, index.qmd etc. pages.

cynthiahqy added a commit that referenced this issue Jan 10, 2025
- Make every page in the website a `lesson-html` by default.
- Override `lesson-html` with `format: html` in the top-level pages
- Specify additional HTML styling of navbar with `styles/main.scss`
- Rename index.scss -> listing.scss to reflect contents
@cynthiahqy
Copy link
Collaborator Author

Putting lesson options in a shared metadata file at the project level/in the modules folder also doesn't work because metadata-includes: takes absolute system paths (not relative to project paths) as I detailed in this issue/question: quarto-dev/quarto-cli#11839.

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

No branches or pull requests

1 participant