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

feat(core/seo): support adding git revision in meta #4561

Merged
merged 3 commits into from
Oct 16, 2023
Merged

Conversation

dontcallmedom
Copy link
Member

This allows to set a git revision of the source used to the generated content. Bikeshed does this, but with 'document-revision' as a meta name - that said, 'revision' is the name recommended in https://wiki.whatwg.org/wiki/MetaExtensions

Typically, this would be set when generating the static HTML (a possible separate improvement to spec-prod)

This allows to set a git revision of the source used to the generated content. Bikeshed does this, but with 'document-revision' as a meta name - that said, 'revision' is the name recommended in https://wiki.whatwg.org/wiki/MetaExtensions

Typically, this would be set when generating the static HTML (a possible separate improvement to spec-prod)
@dontcallmedom dontcallmedom marked this pull request as ready for review October 13, 2023 16:07
dontcallmedom referenced this pull request in w3c/spec-prod Oct 13, 2023
dontcallmedom referenced this pull request in w3c/spec-prod Oct 13, 2023
dontcallmedom referenced this pull request in w3c/spec-prod Oct 13, 2023
dontcallmedom referenced this pull request in w3c/spec-prod Oct 13, 2023
dontcallmedom referenced this pull request in w3c/spec-prod Oct 13, 2023
dontcallmedom referenced this pull request in w3c/spec-prod Oct 16, 2023
dontcallmedom referenced this pull request in w3c/spec-prod Oct 16, 2023
dontcallmedom referenced this pull request in w3c/spec-prod Oct 16, 2023
dontcallmedom referenced this pull request in w3c/spec-prod Oct 16, 2023
@sidvishnoi sidvishnoi changed the title Add support for configuration key to document git revision in meta feat(core/seo): support adding git revision in meta Oct 16, 2023
src/w3c/seo.js Outdated
@@ -33,6 +33,18 @@ export const requiresCanonicalLink = new Set([
]);

export async function run(conf) {
if (conf.gitRevision) {
Copy link
Member

Choose a reason for hiding this comment

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

I wonder if it should be a part of conf.github though - but that can mean we lose setting conf.github as string. Maybe better as gitRevision.

@sidvishnoi
Copy link
Member

@dontcallmedom I'll move this to core/seo instead of limiting to w3c/seo.

@sidvishnoi sidvishnoi merged commit e141c05 into main Oct 16, 2023
7 checks passed
@sidvishnoi sidvishnoi deleted the set-git-revision branch October 16, 2023 09:15
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

Successfully merging this pull request may close these issues.

2 participants