-
Notifications
You must be signed in to change notification settings - Fork 71
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
Ability to include files from other lesson / template in the Files
of the current lesson
#393
Comments
This sounds exactly as Here's example usage of it |
Hi @AriPerkkio thanks for pointing that out. Is it already released? When I do: ---
type: lesson
title: Introduction
template:
name: relations
visibleFiles: ['/backend/index.ts']
focus: /shared/Customer.ts
--- I get an error 10:42:42 [watch] src/content/tutorial/4-concepts/6-sql-expression/1-introduction/content.md
10:42:43 [ERROR] [InvalidContentEntryFrontmatterError] tutorial → 4-concepts/6-sql-expression/1-introduction/content.md frontmatter does not match collection schema.
Did not match union:
Hint:
See https://docs.astro.build/en/guides/content-collections/ for more information on content schemas.
Error reference:
https://docs.astro.build/en/reference/errors/invalid-content-entry-frontmatter-error/
Stack trace:
at getEntryDataAndImages (file:///C:/repos/radweb/docs/interactive/node_modules/astro/dist/content/utils.js:137:26)
[...] See full stack trace in the browser, or rerun with --verbose. Here are the versions I'm using:
|
It's not yet finished or released. We'll need to discuss this with the team a bit more before we know what kind of API we want for it. This discussion is not yet resolved: #165 (comment) |
Is your feature request related to a problem?
Often I have several lessons that coverthe same files. I want these files to appear in the lesson for context to the user - so the result is that I have mutiple files with the same name and same content duplicated among multiple lessons.
Currently I copy them between each lesson - but then I change one of them and forget to update the rest and it becomes hard to maintain.
Describe the solution you'd like.
In the
content.md
in the front matter - allow to referenefiles
from other lessons, and they'll be included here as well - something like:Describe alternatives you've considered.
Duplicating files - but that's hard to maintain
Additional context
No response
The text was updated successfully, but these errors were encountered: