-
Notifications
You must be signed in to change notification settings - Fork 7
Make scaffold files updatable and optional #6
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,9 @@ | ||
| version: 1 | ||
| {% if include_team_grid %} | ||
| project: | ||
| plugins: | ||
| - team-grid.mjs | ||
|
|
||
| {% endif %} | ||
|
Comment on lines
+2
to
+6
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this won't work as-is. the
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. True, we could just narrow it down, so that the project section is static, and the |
||
| site: | ||
| template: book-theme | ||
| parts: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,8 +7,10 @@ site: | |
| nav: | ||
| - title: About | ||
| url: /about | ||
| {% if include_news %} | ||
| - title: News | ||
| url: /news | ||
| {% endif %} | ||
|
Comment on lines
+10
to
+13
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd lean here toward just letting the user delete / modify whichever items they don't want in the nav
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As I understand it, setting the The choices are explicit in .copier-answers.yml, and can be changed in the future, so adding a feature only requires removing it from .copier-answers.yml's exclude list and re-running copier. The real question is still "do users only run copy once and maintain manually afterwards, or do they occasionally update the theme files?"
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. after actually reading the docs of copier (instead of blindly re-running the same command every time), I realize my objections are moot. copier is quite flexible in its subcommands and flags (copy vs recopy vs update, -A to re-use answers, etc). I still have a lingering "this is more complexity than we need" feeling, but I think I'm convinced that it's not a footgun and not worth spending any more time debating; the stakes are quite low. |
||
| options: | ||
| favicon: assets/images/favicon.ico | ||
| logo: assets/images/logo.svg | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these seem potentially useful for the end-user, although during theme development it is actually desirable to overwrite
myst.ymlpossiblyindex.mdand/orMakefiletoo.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Valid, there are ways to work around it, if you need to overwrite those files frequently.
My concern for users updating their theme is that we don't want to clobber these.
Tell me about your dev workflow where you need to overwrite these files frequently and we can find a good solution.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
never mind. I was heavily editing
footer.md.jinjaandconfig/scientific-python.ymlbut not actually touchingindex.md.jinjaormyst.yaml.jinja. andindex.md.jinjais much simpler than the footer (it's just content, not really structure; the structure is inherited from book theme).