-
Notifications
You must be signed in to change notification settings - Fork 22
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
New JS folder / Check Repositories last update #90
base: master
Are you sure you want to change the base?
Conversation
Moved body scripts to a newly created JS file, located at /js/scripts2024.js
Added a Javascript JSON fetch, to display the "date" of each Repository when they were last updated. https://i.ibb.co/TWhmkD0/z581.jpg
- Refactored the repository dates function. Dates are now stored on user devices via localStorage, and are only fetched again if there's a change on the lists size (one more list item added, one less list item removed) , or 90 days / 3 months have passed since last fetched. the amount of days for the next fetch can be changed at the top of the scripts.js file. - Current visited page now is highlighted. - Added Breadcrumbs - Added sidebar navigation for sections of the articles. - Created a popup for the "Welcome to Docs" text. - Added scroll to top button. - Internal links fixes. - Added Mega Menu for Documentation, to group things into sections.
So I wanted to break this down into multiple PRs to make it easier to review, but it wouldn't make much sense of what the end product would be overall. So sorry in advance for the long PR. You can preview this PR live here: https://rxchun.github.io/q2adocs-preview/ What was done in this last commit:
|
Repository Links, UX color swap suggestion by Gideon
Thanks for the contribution, there's some good stuff in here. I like the dropdown menu, it's a bit easier to navigate. The 'last updated' is an interesting idea. My main worry is that some plugins won't need updating so it looks like they're out of date but they work fine. Case in point: most of my plugins! Maybe there is an alternate method we could use? For example Wordpress says which versions a plugin has been tested with, perhaps we could add something like that into plugin metadata. |
My initial idea was to update the plugins metadata dates once a year, and that would reflect as up-to-date, since most people already update those when they update their plugins. But that's an even better idea! I will refactor the function so that:
|
Cheers! |
Brought back the original Markdown Editor link by Scott, since it still works with version Q2A 1.8.8 , and these seem to be different plugins. (Aesthetic wise) I prefer the simpler version by Scott, which other people might find preferable as well, so this gives the option to download the original one.
This link "Google Code Prettify and MathJax" also appears in 2 instances.
Didn't know which one to remove, so I just left it there. |
…sed for 2 pages - Seperated GithubLinks script, from main scripts, since they're only used for 2 pages. - Reverted Gemfile.lock to original. The extra Windows systems options weren't necessary.
/js/scripts2024.js
screenshot: https://i.ibb.co/TWhmkD0/z581.jpg
You can delete the blockquote, color description if it's too animated/not professional looking.
https://github.com/q2a/q2a.github.io/pull/90/files#diff-2803cc740fbdbb5781c9d487863434e2ba1f72438c0a9797c0fd245abf6d4590R11
screenshot: https://i.ibb.co/qnGymGh/z582.jpg