Comments (4)
Here is a potentially quick fix by adding to the custom footer as follows:
<p class="text-small text-grey-dk-100 mb-0">
Copyright © 2017-{{ site.time | date: '%Y' }} {{ site.footer_content }}</a>"
</p>
...while retaining the _config.yml
footer_content
flag (with just a small change):
footer_content: "Patrick Marsceill. Distributed by an <a href=\"https://github.com/just-the-docs/just-the-docs/tree/main/LICENSE.txt\">MIT license.</a> <a href=\"https://www.netlify.com/\">This site is powered by Netlify.</a>"
And adding the following lines to the deploy.yml
and CI.yml
workflows:
on:
push:
branches: ["main"]
schedule:
- cron: '0 0 1 1 *' # Run at 12:00 AM 01/01 every year to update copyright date
This will make it so that the website is rebuilt on the beginning of each year to update copyright!
from just-the-docs.
Is it possible to link the pull request (#1384) I opened to this issue (I think a maintainer needs to do it)
from just-the-docs.
Thanks for submitting an issue @392781! There's actually a reason that we haven't updated this just yet - I need to figure out with Patrick exactly how he wants the copyright for this to work (he transitioned this into this GitHub organization and stepped down as a maintainer in 2020). I've elected to not update the copyright footer until we've sorted that out. This is a good reminder for me to check in with him though!
Separately - I don't think a cron job (or even a custom footer) is necessary for this feature - it's infrequent enough that we can just update it manually, or use a "wildcard" of sorts (e.g. 2017-*
or 2020-*
).
Do any other maintainers want to chime in? I'll send Patrick an email once the work day is over for me!
from just-the-docs.
IMO, it's simple enough future-proofing that doesn't have significant impact on development while keeping the website looking professional and up to date. Its pretty common to see out of date copyrights for manually updated websites... it's small enough to slip through the cracks.
That said, I didn't realize there was some historical things to take care of. If anything, these changes may be useful for someone downstream using just-the-docs :^) I mainly created the pull because it's an elegant solution that we're using for our documentation.
from just-the-docs.
Related Issues (20)
- Wrong contents in Figure 3 HOT 1
- 0.6.0 longer build time HOT 6
- Info emoji does not render as a picture HOT 10
- Search is broken on endoflife.date after upgrading to 0.6.0 HOT 10
- Investigate using TypeScript for Just the Docs JavaScript
- Faster build speed by caching the sidebar HOT 1
- Improve GitHub Issue Templates
- Mobile Menu Not Working HOT 5
- Callouts not rendering HOT 3
- nav_external_links > opens_in_new_tab: true doesn't open the link in a new tab HOT 4
- Add support for additional diagram languages HOT 4
- Dependency error HOT 3
- Navbar highlighting depends on URL having `.html` extension HOT 1
- light vs dark theme based on device setting HOT 1
- Add in-page right sidebar HOT 3
- big HOT 1
- Incorrect positioning of clickable area for navigation links in Safari/macOS HOT 6
- Add support for Lunr pre-built indexes HOT 3
- Zion LLC HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from just-the-docs.