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: add a 'last updated' line on all content #180

Merged
merged 2 commits into from
Feb 10, 2023
Merged

Conversation

jswongF5
Copy link
Collaborator

@jswongF5 jswongF5 commented Jan 20, 2023

Reviewers

@alankrit8.

Issue

We want to know when a page was last updated. This help people get an idea how old or new pages are.

The format of last updated can be defined in conf.py file. Example below.

html_last_updated_fmt = '%B %d %Y at %I:%M:%S %p %Z'

And if you want to pin a timezone:

html_last_updated_fmt = '%B %d %Y at %I:%M:%S %p %Z'
git_last_updated_timezone = 'US/Pacific'

extensions = [
    . . .
    'sphinx_last_updated_by_git',
]

Screenshot:
image

@jswongF5 jswongF5 closed this Feb 2, 2023
@jswongF5 jswongF5 reopened this Feb 2, 2023
@jswongF5 jswongF5 self-assigned this Feb 2, 2023
@jswongF5 jswongF5 closed this Feb 2, 2023
@jswongF5 jswongF5 reopened this Feb 2, 2023
@alankrit8 alankrit8 closed this Feb 3, 2023
@alankrit8 alankrit8 reopened this Feb 3, 2023
@alankrit8 alankrit8 closed this Feb 9, 2023
@alankrit8 alankrit8 reopened this Feb 9, 2023
@alankrit8 alankrit8 closed this Feb 10, 2023
@alankrit8 alankrit8 reopened this Feb 10, 2023
@alankrit8 alankrit8 merged commit 0c694d9 into master Feb 10, 2023
@jswongF5 jswongF5 deleted the add-last-updated branch April 4, 2024 05:22
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.

None yet

2 participants