Commit Graph

89 Commits

Author SHA1 Message Date
David Karlsson
f6191387b6 chore: remove mermaid.js
We're not using mermaid for diagrams anymore so we can prune the
dependency.

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-02-01 09:46:24 +01:00
David Karlsson
595dfde3b3 site: redesign landing page
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-01-26 11:20:39 +01:00
David Karlsson
47487acd24 fix: render callout icons
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-01-25 14:08:48 +01:00
David Karlsson
0ff3eb3aab hugo: migrate font icons to svg
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-01-25 12:28:38 +01:00
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
1f42d72ed3 hugo: support for inline svg icons
This commit adds support for icon optimization using inline svgs,
improving site performance.

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
e4df074a75 site: dbc landing page banner
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-01-22 23:49:39 +01:00
David Karlsson
b1b8263be7 styles: update site logo
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-01-19 09:59:41 +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
a13ad08101 css: add external-link utility class
Adds an .external-link utility class, to be used together with the
existing .link utility, for adding the correct styles to the open_in_new
icon without having to duplicate the markup each time.

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-01-08 13:17:26 +01:00
David Karlsson
d006adfc20 css: add icons utility
Adds an .icon utility class to set ligature text via via a data-icon
attribute on the element. This is a workaround to prevent crawlers from
picking up the font ligature innertext in html directly.

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-01-08 13:15:58 +01:00
David Karlsson
834db3da41 css: refactor and improve styles
- Refactoring styles to prevent unwanted specificity issues by using
  tailwind directives
- Improve color consistency for code blocks and other components by
  replacing adhoc hex values with theme colors

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-01-03 14:54:57 +01:00
David Karlsson
ed83bfba4b Revert "style: adjust callout colors to match dds alerts"
This reverts commit b77d185c27.
2024-01-02 14:09:46 +01:00
David Karlsson
5abe774df8 fix: code span colors in dark mode
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-01-02 13:51:35 +01:00
David Karlsson
0a007cf09d style: color override for code spans in callouts
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2023-12-28 20:20:56 +01:00
David Karlsson
ce6563475b style: update search button bg to match dds
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2023-12-28 20:11:03 +01:00
David Karlsson
f1331c5c2c style: adjust callout spacing to match dds alerts
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2023-12-28 19:56:50 +01:00
David Karlsson
b77d185c27 style: adjust callout colors to match dds alerts
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2023-12-28 19:48:11 +01:00
David Karlsson
b7e3ae1c69 hugo: use white text for code identifiers
NameOther identifiers had a dark violet color in dark mode, making them
illegible in e.g. code blocks. Changed to plain white.

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2023-12-21 16:03:36 +01:00
David Karlsson
2f779a076d hugo: unset font-style and font-weight for code
Italicized and bold text didn't really add any value to code blocks

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2023-12-21 15:49:44 +01:00
David Karlsson
0adbe36a0f feat: add invertible class for images
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2023-12-10 21:32:40 +01:00
David Karlsson
fbab835920 css: improve table display
- Use full reading col width for tables on large screens
- Use `display: block; overflow-x: scroll;` on small screens

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2023-12-06 20:52:09 +01:00
David Karlsson
fb87f9c93f Merge pull request #18735 from dvdksn/code-hl-lines
feat: add support for hl_lines
2023-11-27 11:01:06 +01:00
David Karlsson
59e685da08 feat: add support for hl_lines
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2023-11-21 11:35:36 +01:00
David Karlsson
cffc6251e3 style: fix margin for li with children
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2023-11-21 09:45:51 +01:00
David Karlsson
fc39602f1d fix: li margin issue
List item margins were incorrectly set to 0.

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2023-11-14 09:20:32 +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
Allie Sadler
b4268ce362 fancy callout icons (#18586) 2023-11-06 11:17:04 +00:00
David Karlsson
cfdf5bd86a feat: no-select generic prompts in codeblocks
Makes it easier to copy console commands by e.g. triple-click

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2023-10-30 20:52:57 +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
dab13dbaff style: font antialiasing
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2023-09-28 11:01:33 +02:00
Rishi Pradeep
88a0a97638 Update search.css (#18203)
Centered the CTRL K icons in the search bar.
2023-09-26 11:44:11 +01:00
David Karlsson
e91c4cceb4 fix: rendering for callouts without title
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2023-09-07 17:43:10 +02:00
David Karlsson
4008bfd11b chore: format with prettier
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2023-09-07 17:42:15 +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
Allie Sadler
33ac6f8697 new screenshot for extensions (#17905)
* new screenshot

* oops

* remove image

---------

Co-authored-by: Allie Sadler <alliesadler@f693mt7fh6.home>
2023-08-10 17:05:15 +01: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
aaa79c2b6d Merge pull request #17148 from craig-osterhout/fix-modal-error
Add modal check
2023-04-21 09:26:00 -07:00
craig-osterhout
d7104e157b update arch image 2023-04-19 16:41:55 -07:00
craig-osterhout
eb774bd5fd add check in modal.js 2023-04-19 08:29:30 -07:00
Allie Sadler
fe17d7434c release refreshen (#16993) 2023-03-28 16:05:24 +01:00
Craig Osterhout
f4258c0c1e Add learning center walkthroughs (#16893)
* add learning center walkthroughs
2023-03-26 20:43:19 -07:00
Allie Sadler
62b78dd9de ENGDOCS-1274 (#16961)
* ENGDOCS-1274

* move pages about

* fix images

* fix images

* fix typo
2023-03-25 08:37:29 +00: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
b59dad4f9a ENGDOCS-1258 (#16857)
* ENGDOCS-1258

* toc updates

* fix build and edit pages

* edits

* fix build

* review edits

* edits from review

* tweaks
2023-03-14 08:58:53 +00:00
Chris Chinchilla
483fa29903 Merge pull request #16833 from docker/chrisward/repo-pub-images
Add details on uploading logos to repositories
2023-03-09 17:11:57 +01:00