Skip to content

Ignore and warn about unsupported header fields - #347

Merged
JoelMarcey merged 4 commits into
meta:masterfrom
aadsm:supported-header-fields
Apr 12, 2018
Merged

JoelMarcey merged 4 commits into
meta:masterfrom
aadsm:supported-header-fields

Conversation

@aadsm

@aadsm aadsm commented Dec 22, 2017

Copy link
Copy Markdown
Contributor

Unsupported header fields might mess up the creation of metadata.js (e.g.: next).
Skip unknown header fields and log a warn about them.

I believe these are all the supported fields at the moment?

Unsupported header fields might mess up the creation of metadata.js (e.g.: next).
Skip unknown header fields and log a warn about them.
@yangshun

Copy link
Copy Markdown
Contributor

Hey @aadsm sorry that your PR was left hanging for so long. This looks like a really useful feature. Could you rebase on master and update your PR? Would be very keen to merge this! 👍

@JoelMarcey

Copy link
Copy Markdown
Contributor

@yangshun At one point I was thinking about a different design for this, but I have forgotten how I was going to handle it. And then I let it languish.

Seeing how the "Squash and Merge" button is still enabled, it may not need a full rebase, just some prettier updates I think.

@JoelMarcey JoelMarcey left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is good. Merging. Thanks @aadsm!

@JoelMarcey
JoelMarcey merged commit ad5b8b9 into meta:master Apr 12, 2018
@vjeux

vjeux commented Apr 20, 2018

Copy link
Copy Markdown
Contributor

I added support for layout in #128 which now warns :(

vjeux added a commit that referenced this pull request Apr 20, 2018
#347 added support for warning for unknown fields but didn't take into account `layout` which was added by #128
yangshun pushed a commit that referenced this pull request Apr 20, 2018
#347 added support for warning for unknown fields but didn't take into account `layout` which was added by #128
mrizwanashiq pushed a commit to mrizwanashiq/docusaurus that referenced this pull request Jun 25, 2026
Unsupported header fields might mess up the creation of metadata.js (e.g.: next).
Skip unknown header fields and log a warn about them.
mrizwanashiq pushed a commit to mrizwanashiq/docusaurus that referenced this pull request Jun 25, 2026
meta#347 added support for warning for unknown fields but didn't take into account `layout` which was added by meta#128
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed Signed Facebook CLA

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants