docs/js
Sebastiaan van Stijn bfce18c90b
Add tooltips and links to reference docs to Dockerfile codeblocks
This is an initial "experiment" on making codeblocks more useful; it's
just a quick implementation, and can use a lot of improvements, but we
can see if it's useful in its current form already (as a starting point).

More context below:

With example blocks being parsed/highlighted by rouge, we should be able
to pick keywords from them; for example, in the highlighted Dockerfile
examples, we can show tool-tips (even a hover-card) with more details
about the command.

Shell examples may be a bit more involved, but we could still detect;

- adjacent keywords (`docker` + `run` => `docker run`)
- with the yaml-docs we have (we could generate JSON and upload them
  as a "database"),   we could even do an AJAX call to dynamically
  fetch  flag  descriptions, etc.

This very quick and dirty test adds tooltips to Dockerfile commands
in examples. When hovering, it shoulds a tooltip ("click for  more
information about this command"), and when clicking, navigates to the
Dockerfile reference.

Ideally, we wouldn't navigate away from the current page for initial
details (instead, we should present a rich hoverbox / pane), to provide
the user with more details without interrupting the article they were
reading.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-08-18 23:23:09 +02:00
..
anchorlinks.js cleanup anchorlinks script 2020-10-15 15:10:41 +02:00
bootstrap.min.js update both jquery and bootstrap versions 2020-11-11 20:22:59 +00:00
docs.js Add tooltips and links to reference docs to Dockerfile codeblocks 2021-08-18 23:23:09 +02:00
jquery.js update both jquery and bootstrap versions 2020-11-11 20:22:59 +00:00
metadata.json Replace "hide_from_sitemap" with "sitemap: false" 2020-10-21 15:09:11 +02:00
redoc.min.js Improve Engine API documentation (#5607) 2017-12-26 12:35:10 -08:00
redoc.min.map Improve Engine API documentation (#5607) 2017-12-26 12:35:10 -08:00
search.js js/search.js: rewrite local search autocomplete and update styling 2020-10-15 17:20:28 +02:00
theme-switcher.js js/search.js: rewrite local search autocomplete and update styling 2020-10-15 17:20:28 +02:00
toc.json Load toc.js asynchronously as JSON 2020-10-14 22:08:50 +02:00