Commit Graph

18 Commits

Author SHA1 Message Date
David Karlsson 558fbdfabc hugo: use inline svgs for sidebar icons
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-01-25 12:28:38 +01:00
David Karlsson a6a5cb5ebe js: remove sidebar scrolldown effect
When accessing a page that's far down the left-hand sidebar, we have a
script that would scroll the sidebar position down so that the selected
item is visible. In some cases, this would cause some confusion and
jittery rendering on page load.

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-01-25 08:35:41 +01:00
David Karlsson 299ffee524 hugo: improve sidebar rendering and behavior
Removes the alpine.js components for the sidebar, and uses vanilla
eventlisteners instead. Also moved off javascript for handling the
expanse/collapse display, in favor of using css only.

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-01-24 16:34:00 +01:00
David Karlsson 91a2200a11 fix: dockerfile tooltips should match only keywords
Before this change, the Dockerfile tooltip script marked all occurences
of keywords, as defined by the lexer, as Dockerfile instructions in a
`dockerfile` code block. This meant some tokens parsed from heredocs
would be included. The matched keyword token is now compared against a
hard-coded list of actual Dockerfile instructions before they're
annotated.

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-01-12 12:14:18 +01:00
David Karlsson db85f53af1 feat: improve heading markup and scroll behavior
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2023-11-12 20:35:34 +01:00
David Karlsson f64276790d feat: numbered lines for code blocks
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2023-10-30 20:48:59 +01:00
David Karlsson ec22fd57f5 feat: add dockerfile tooltips
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2023-10-13 14:31:34 +02:00
David Karlsson d603fb6571 ux: enable search for non-prod deploys
Search results include the hostname by default.
This change strips the hostname which makes it
possible to search when the site is deployed on
other domains, such as netlify and localhost.

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2023-08-24 15:14:15 +02:00
David Karlsson a0d21ade2f migrate to hugo
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2023-08-22 09:41:02 +02:00
Craig Osterhout 59bcc82aba
Improve undefined error in EULA. (#17187)
Signed-off-by: Craig Osterhout <craig.osterhout@docker.com>
2023-05-02 08:48:44 -07:00
craig-osterhout eb774bd5fd
add check in modal.js 2023-04-19 08:29:30 -07:00
CrazyMax c7d42efd55
do not append anchorLink for tiles
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2023-03-17 16:41:46 +01:00
Allie Sadler 58a506a8a9
modal fix (#16591) 2023-01-25 15:06:06 +00:00
Allie Sadler ad4c5dd659
image zoom modal (#15975)
* POC image modal

* standardize image size

* fixes

* fixes

* reverse an earlier commit and tweak further

* experiments

* more playing around

* simplify

* David's magic

* david fix

* test

* test 2

* Final fix

* now the final fix
2023-01-10 17:01:21 +00:00
Alexey Pyltsyn 41b42d94fe
Enable dark mode in browser UI (#16025) 2022-10-31 15:29:01 +01:00
craig-osterhout 6fa06e8174
remove $ prompt from code copy 2022-10-21 09:03:57 -07:00
David Karlsson 24158cc3c2
add code copy feature (#15910)
Signed-off-by: David Karlsson <david.karlsson@docker.com>
2022-10-19 14:29:26 +02:00
CrazyMax 998bfbfd09
jekyll(assets): move css to assets folder
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-09-05 15:49:22 +02:00