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

Front Matter to override docs lastUpdate date/author #7263

Closed
1 of 2 tasks
slorber opened this issue Apr 29, 2022 · 2 comments
Closed
1 of 2 tasks

Front Matter to override docs lastUpdate date/author #7263

slorber opened this issue Apr 29, 2022 · 2 comments
Labels
closed: duplicate This issue or pull request already exists in another issue or pull request feature This is not a bug or issue with Docusausus, per se. It is a feature request for the future.

Comments

@slorber
Copy link
Collaborator

slorber commented Apr 29, 2022

Have you read the Contributing Guidelines on issues?

Motivation

Suggested in #7229 (reply in thread)

We should allow docs frontMatter that permits to override the "last updated" data that we generally read from Git.

Git is not always available at build time, but users should still be able to manually fill those data

lastUpdate:
  at: 1539502055
  by: "Author"

Front matter validation could accept the date as timestamp (seconds or millies?), or ISO/parseable string? (+ JS Date because Yaml may automatically do the conversion)

This is a relatively simple issue, good for external contributors

Self-service

  • I'd be willing to do some initial work on this proposal myself.
@slorber slorber added good first issue If you are just getting started with Docusaurus, this issue should be a good place to begin. proposal This issue is a proposal, usually non-trivial change labels Apr 29, 2022
@Josh-Cena
Copy link
Collaborator

Duplicate of #5691

@Josh-Cena Josh-Cena marked this as a duplicate of #5691 Apr 29, 2022
@Josh-Cena
Copy link
Collaborator

Let's discuss it there instead. The API is slightly different, but not a big deal

@Josh-Cena Josh-Cena added feature This is not a bug or issue with Docusausus, per se. It is a feature request for the future. closed: duplicate This issue or pull request already exists in another issue or pull request and removed good first issue If you are just getting started with Docusaurus, this issue should be a good place to begin. proposal This issue is a proposal, usually non-trivial change labels Apr 29, 2022
@Josh-Cena Josh-Cena closed this as not planned Won't fix, can't repro, duplicate, stale May 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed: duplicate This issue or pull request already exists in another issue or pull request feature This is not a bug or issue with Docusausus, per se. It is a feature request for the future.
Projects
None yet
Development

No branches or pull requests

2 participants