Skip to content

[QOL] Remove obsolete jQuery code and extend keyboard shortcuts#733

Merged
Shwetha-Acharya merged 2 commits intogluster:mainfrom
black-dragon74:qol-copy-addr
Jun 20, 2022
Merged

[QOL] Remove obsolete jQuery code and extend keyboard shortcuts#733
Shwetha-Acharya merged 2 commits intogluster:mainfrom
black-dragon74:qol-copy-addr

Conversation

@black-dragon74
Copy link
Member

This patch also removes the obsolete fix-docs.js. That
file depends of jQuery and we no longer use that. That file was also
the cause of the console errors on current docs site.

After this patch, users will be able to press C or Y(ank) to copy
current address along with anchors to the clipboard. This feature is just
an extension of multiple existing shortcuts like F/P/N.

Another patch is in the works which would update current address so that
current anchor is in the address-bar. That would make this patch more useful as
you will be able to copy the address of the location that you are currently reading
in the doc and resume later or maybe share to someone. Cool, right?

Signed-off-by: black-dragon74 niryadav@redhat.com

This patch also removes the obsolete fix-docs.js. That
file depends of jQuery and we no longer use that. That file was also
the cause of the console errors on current docs site.

After this patch, users will be able to press C or Y(ank) to copy
current address along with anchors to the clipboard. This feature is just
an extension of multiple exisiting shortcuts like F/P/N.

Another patch is in the works which would update current address so that
current anchor is in the addressbar. That would make this patch more useful as
you will be able to copy the adress of the location that you are currently reading
in the doc and resume later or maybe share to someone. Cool, right?

Signed-off-by: black-dragon74 <niryadav@redhat.com>
@black-dragon74
Copy link
Member Author

@black-dragon74 black-dragon74 changed the title [QOL] Extend keyboard shortcuts to copy current address [QOL] Remove obsolete jQuery code and extend keyboard shortcuts May 30, 2022
black-dragon74 added a commit to black-dragon74/glusterdocs that referenced this pull request Jun 16, 2022
This patch makes gluster#733 more usable and it updates the address
of the current URL to the current anchor that you are reading at.

Like, mysite/mychapter#mysectiom, using which, sharing the links
will lead to the same place on the page that the user 1 was reading at.

Signed-off-by: black-dragon74 <niryadav@redhat.com>
@Shwetha-Acharya Shwetha-Acharya merged commit d79a838 into gluster:main Jun 20, 2022
Shwetha-Acharya pushed a commit that referenced this pull request Jun 20, 2022
This patch makes #733 more usable and it updates the address
of the current URL to the current anchor that you are reading at.

Like, mysite/mychapter#mysectiom, using which, sharing the links
will lead to the same place on the page that the user 1 was reading at.

Signed-off-by: black-dragon74 <niryadav@redhat.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