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

Show date of last update #154

Merged
merged 3 commits into from
Nov 9, 2023
Merged

Show date of last update #154

merged 3 commits into from
Nov 9, 2023

Conversation

timothymcmackin
Copy link
Collaborator

@timothymcmackin timothymcmackin commented Nov 6, 2023

We keep info on the last update and authors in the markdown front matter. Do we want to display it? This PR reformats the dates so it works with the default docusaurus formatting and shows them in a footer.

For reference, the regex I used in vscode to fix the date formatting is:
lastUpdated:\s*(\d+)\w*?\s*(\w*)\s*(\d*)$
to
last_update:\n date: $1 $2 $3

Note that the dates appear only in prod build mode, so they just appear as a placeholder when you run npm run start.

We could show the authors, too, but there are often multiple people in the authors field and I'm not sure how that would look with the specific update date.

Screenshot 2023-11-09 at 7 54 42 AM

@timothymcmackin timothymcmackin self-assigned this Nov 6, 2023
@timothymcmackin timothymcmackin requested a review from a team as a code owner November 6, 2023 20:39
Copy link

vercel bot commented Nov 6, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 7, 2023 0:54am

@timothymcmackin timothymcmackin merged commit 621fc62 into staging Nov 9, 2023
2 checks passed
@timothymcmackin timothymcmackin deleted the show-last-update branch November 9, 2023 13:06
timothymcmackin added a commit that referenced this pull request Nov 9, 2023
* typo

* Anchor for office hours (#157)

* Capitalization (#156)

* Capitalize "Mainnet"

* Capitalize Ghostnet

* Capitalize Smart Rollups

* Capitalize Dailynet

* Remove information about TzStats public API (#155)

* tzstats API is no longer public

* Hide the inspect contract topic for now

* Show date of last update (#154)

* Show the last update date and make that footer the base color

* Format dates like docusaurus wants them

* Don't bold the last updated date
timothymcmackin added a commit that referenced this pull request Nov 9, 2023
timothymcmackin added a commit that referenced this pull request Nov 16, 2023
* pages on creating, testing and deploying smart contract

* fixed file location & language style, recovered package.json and package-lock.json

* Eliminate bold formatting in lists

* updated creating smart contracts

* testing updated

* updated creating and testing

* updated deploying

* New format for dates based on #154

* updated pages

* fix indent

* Update docs/smart-contracts/creating.md

Co-authored-by: Tim McMackin <timothymcmackin@users.noreply.github.com>

* Update docs/smart-contracts/deploying.md

Co-authored-by: Tim McMackin <timothymcmackin@users.noreply.github.com>

* Update docs/smart-contracts/testing.md

Co-authored-by: Tim McMackin <timothymcmackin@users.noreply.github.com>

* Update docs/smart-contracts/testing.md

Co-authored-by: Tim McMackin <timothymcmackin@users.noreply.github.com>

* Update docs/smart-contracts/deploying.md

Co-authored-by: Tim McMackin <timothymcmackin@users.noreply.github.com>

* Interacting with the contract

---------

Co-authored-by: Tim McMackin <timothymcmackin@yahoo.com>
Co-authored-by: Tim McMackin <timothymcmackin@users.noreply.github.com>
timothymcmackin added a commit that referenced this pull request Nov 16, 2023
* pages on creating, testing and deploying smart contract

* fixed file location & language style, recovered package.json and package-lock.json

* Eliminate bold formatting in lists

* updated creating smart contracts

* testing updated

* updated creating and testing

* updated deploying

* New format for dates based on #154

* updated pages

* fix indent

* Update docs/smart-contracts/creating.md

Co-authored-by: Tim McMackin <timothymcmackin@users.noreply.github.com>

* Update docs/smart-contracts/deploying.md

Co-authored-by: Tim McMackin <timothymcmackin@users.noreply.github.com>

* Update docs/smart-contracts/testing.md

Co-authored-by: Tim McMackin <timothymcmackin@users.noreply.github.com>

* Update docs/smart-contracts/testing.md

Co-authored-by: Tim McMackin <timothymcmackin@users.noreply.github.com>

* Update docs/smart-contracts/deploying.md

Co-authored-by: Tim McMackin <timothymcmackin@users.noreply.github.com>

* Interacting with the contract

---------

Co-authored-by: Tim McMackin <timothymcmackin@yahoo.com>
Co-authored-by: Tim McMackin <timothymcmackin@users.noreply.github.com>
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