Commit Graph

47 Commits

Author SHA1 Message Date
Sarah Sanders
d50fe6664f fix: open in new tab for links (#22820)
## Description
- Update Contribute `links.md` to verify that internal and external
links open in the same tab.
- Remove "open in new" tab icon 

## Related issues or tickets
https://docker.atlassian.net/browse/ENGDOCS-2717

## Reviews
- [ ] Technical review
- [ ] Editorial review
- [ ] Product review
2025-06-11 12:36:53 -04:00
Arthur
fce604bc19 MCP: MCP Toolkit in Docker Desktop (#22673)
Docs for the new GUI for the MCP Toolkit.


https://deploy-preview-22673--docsdocker.netlify.app/ai/mcp-catalog-and-toolkit/
2025-06-04 14:49:58 +01:00
Arthur
6a940f3b2a ux: update code block styling (#22761)
![export](https://github.com/user-attachments/assets/9a9df60b-22db-42b9-9b5d-3d2c7812bb0e)
2025-06-04 15:38:11 +02:00
Arthur
1686e58dd1 fix: various theme improvements (#22725)
Harmonize various areas of the theme.
2025-05-30 11:57:20 +02:00
Craig Osterhout
3a609cdfa3 fix mailto links (#22715)
<!--Delete sections as needed -->

## Description

Fix mailto links to work with the following syntax:

`[email me](mailto:example@example.com)`

Can verify at
https://deploy-preview-22715--docsdocker.netlify.app/desktop/enterprise/

## Related issues or tickets

https://docker.slack.com/archives/C039ZM6GH4Z/p1748022452990369

## Reviews

<!-- Notes for reviewers here -->
<!-- List applicable reviews (optionally @tag reviewers) -->

- [ ] Editorial review

Signed-off-by: Craig <craig.osterhout@docker.com>
2025-05-29 07:23:20 -07:00
Arthur
a6f8367968 fix: increase codeblock title contrast (#22713) 2025-05-28 09:11:25 -04:00
Arthur
038e6dc682 chore: update Tailwind to v4 (#22666)
- Extract classes to utilities and components.
- Reduce number of colors used.
- Harmonize button colors.
- Restyle admonitions.
- Move **Page options** button to main article.
- Various color tweaks.
2025-05-28 08:37:10 +01:00
David Karlsson
ac73249bf9 site: remove target=_blank
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-10-31 15:46:19 +01:00
David Karlsson
ffd3ccd072 hugo: use render hook for markdown tables
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-10-10 10:46:11 +02:00
David Karlsson
ef0d03ff26 fix: relative image references in leaf bundles
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-10-07 12:52:16 +02:00
David Karlsson
d3b966e9f6 deps: update material-symbols icons to v0.23.0
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-09-27 12:09:29 +02:00
David Karlsson
5e4fc68d6e hugo: use i18n string for 'caution' alerts
While we don't currently use the caution alert anywhere yet, we should
still be consistent in using i18n strings for these (not `title
.AlertType`).

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-09-11 15:08:38 +02:00
David Karlsson
554aaabb1f hugo: don't rewrite index.md links in render hook
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-09-10 16:54:06 +02:00
David Karlsson
812ba366b4 hugo: fix link generation
For some inexplicable reason, the link render hook was failing, probably
caused by cases where goldmark was called recursively by shortcodes.

This change changas the render hook to use the global `pages` pointer
instead of the .Pages pointer of the render hook context. Seems to work.

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-08-22 09:37:06 +02:00
David Karlsson
cabff85f2e Merge pull request #20608 from dvdksn/callouts-render-hook
hugo: use render hooks for blockquotes (callouts/alerts)
2024-08-16 10:45:03 +02:00
David Karlsson
ea6246b059 hugo: use render hook for callouts
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-08-16 10:28:48 +02:00
David Karlsson
c303c470a3 site: decrease z-index for copy button
The copy button z-index was higher than the site header.

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-08-16 09:46:26 +02:00
David Karlsson
d8750ca6e7 hugo: fix invalid image refs for section pages
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-07-09 16:32:10 +02:00
David Karlsson
7f778f78ea hugo: use URL parser for image ref in render hook
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-07-08 16:02:44 +02:00
David Karlsson
b21e0573af hugo: add support for absolute markdown links
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-06-13 12:56:42 +02:00
David Karlsson
97307d4c66 search: pagefind v1.1.0
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-05-23 14:05:59 +02:00
David Karlsson
401468ac4c fix: pass heading text through md renderer
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-05-06 17:36:56 +02:00
David Karlsson
0a7cb792ec Merge pull request #19854 from dvdksn/scout-prometheus-exporter
scout: metrics exporter endpoint
2024-04-29 14:18:59 +02:00
David Karlsson
f2b49281d9 fix: copy codeblock
JavaScript methods were lowercased in a bad rebase

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-04-25 18:56:56 +02:00
David Karlsson
14b42c807b hugo: add support for figure titles
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-04-25 15:01:13 +02:00
David Karlsson
6e181ff28a fix: copy codeblocks for powershell
Handle PowerShell prompt char (>) and PS1 script syntax for env var
assignments

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-04-24 23:04:36 +02:00
David Karlsson
5f6848ae8b hugo: add support for code block titles
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-04-11 16:19:22 +02:00
David Karlsson
66b5b990de hugo: add collapse attribute for code blocks
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-04-03 14:06:21 +02:00
David Karlsson
4267ce33e4 hugo: use "text" as a fallback lang for codeblocks
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-04-02 17:43:50 +02:00
David Karlsson
df0455d16f hugo: improve build performance
use cached partials for repeat templates and icons

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-03-04 16:05:28 +01:00
David Karlsson
d29dbaf482 style: design updates march 2024
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-03-04 11:58:08 +01:00
David Karlsson
adcb1edfa7 chore: style and script refactor
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-02-23 15:03:27 +01:00
David Karlsson
ee3c9c6448 site: add lazy loading for images
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-02-07 17:10:16 +01:00
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
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
04a5ee0915 hugo: use icon utility class for external links
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-01-08 13:25:03 +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
c710541f28 a11y: add aria-hidden to external link icons
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2023-12-11 09:43:11 +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
f7bbe06d27 feat: special rendering for codeblock variables
This change adds special rendering for variables in codeblocks.
Variables (placeholder values in examples subject to change)
can be denoted using the following syntax:

    <VARIABLE_NAME>

Using this format will render the variable in a special color, and
without the angle brackets, akin to:

    \033[95mVARIABLE_NAME\033[39m

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2023-10-13 20:17:16 +02:00
David Karlsson
26ee37b52a feat: add image border as query param
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2023-10-02 13:08:40 +02:00
David Karlsson
2eb97d7fe7 fix: use links with leading slash as-is
Links that started with a slash were being prepended the URL hostname
and rendered as absolute links before. This caused our link checker to
miss broken links that contained a leading slash.

This change fixes this issue by rendering links with a leading slash as-is,
without modification.

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2023-09-29 21:06:55 +02:00
David Karlsson
0eca2035e7 fix: add no-select to external link icon
Prevents users from having the icon ligature text included in
clipboard text when copying text from the docs site.

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2023-09-28 10:36:49 +02:00
David Karlsson
b5f365e0ec style: center images and adjust border radius 💅
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2023-08-31 16:44:15 +02:00
David Karlsson
57c9b961fe js: fix copy function for multiline code blocks
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2023-08-23 11:19:53 +02:00
David Karlsson
2284afe898 hugo: fix html escape for headings
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2023-08-22 11:27:27 +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