o1-labs / docs2

Docs website for the Mina Protocol.
https://docs.minaprotocol.com
93 stars 136 forks source link

Update copyright on the docs footer #1074

Closed halsaphi closed 2 days ago

halsaphi commented 1 week ago

Update to footer to have the correct copyright date.

Adding a getdate function and using it to always have correct copyright date.

vercel[bot] commented 1 week ago

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

Name Status Preview Comments Updated (UTC)
docs2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 19, 2024 7:56am
vercel[bot] commented 1 week ago

Someone is attempting to deploy a commit to the o1labs Team on Vercel.

A member of the Team first needs to authorize it.

halsaphi commented 1 week ago

@45930 -> I'm not aware of a way to do this in Docusaurus - though I'm no expert, so if you can find a way please let me know - other option is to set it to "2024" - though this would require an update next year.

45930 commented 1 week ago

@halsaphi So one thing you can do is export a new constant from src/constants.ts and set it to '2024'. Then either add a ci rule that tests the constant against the current year, or write a prebuild script (just some js that gets run automatically before build) to check the value and re-write the file if it's wrong.

I don't think updating it manually once per year is a bad idea either.

halsaphi commented 5 days ago

@45930 - hardcoded the value -> can you merge so docs have correct copyright notice. This will need updating again in a few months.

snaitmouloud-mf commented 3 days ago

Hi guys, can we get this merged please ? It's 5 days this is open just to change the year. Thanks.