Skip to content

[Feature]: Support lastUpdatedAuthor #725

Open
@colinaaa

Description

What problem does this feature solve?

It is nice that rspress supports lastUpdated! But popular tools like docusaurus supports things like: showLastUpdateAuthor which shows not only the updated time but also the author.

E.g.:
image

It would be nice if rspress could support this. It would be even better if the displayed content could be customized(we use pnpm patch tricks in docusaurus to display the user.email of the author instead of the default user.name).

What does the proposed API look like?

  • Enabled by lastUpdated: true.
  • New config: lastUpdatedAuthor:
    • Set to false to disable displaying author.
    • Set to (path: string) => string to modify the display text.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions