-
Notifications
You must be signed in to change notification settings - Fork 509
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
a flag to not build index.html #4258
Conversation
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.
Surely the tests are failing due to the noHTML
vs !noHTML
:)
content/translations.js
Outdated
@@ -15,6 +15,9 @@ function gatherTranslations() { | |||
for (const { | |||
metadata: { slug, locale, title }, | |||
} of iter) { | |||
if (!slug) { |
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.
What's this??
build/cli.js
Outdated
path.join(outPath, "index.html"), | ||
renderHTML(document.url, { doc: builtDocument }) | ||
); | ||
if (noHTML) { |
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.
if (noHTML) { | |
if (!noHTML) { |
no?
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.
No idea how that disappeared 😱 But that happened when I renamed the parameter. This PR is even more broken.
Another interesting one to consider is all the other things that builds. Or, what about |
option to not build index.html files
68af556
to
efc139a
Compare
Sorry for that mess, good catch. Beyond my mess, for some reason naming the option |
We might wanna add more granularity to it. For now this builds everything needed for client side rendering. |
This is useful when using yari as SPA