Commit Graph

146 Commits

Author SHA1 Message Date
David Karlsson
50f7d86aef Merge pull request #23960 from dvdksn/improve-markdown-rendering
improve markdown rendering
2026-01-13 16:54:52 +01:00
David Karlsson
d3a595ef6a site: use gordon for ask ai
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2026-01-13 12:21:28 +01:00
David Karlsson
23a6fde9cb site: render page info dropdown on cli pages
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2026-01-12 15:45:33 +01:00
David Karlsson
8c05ef70b8 hugo: render markdown for api/cli reference pages
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2026-01-12 15:42:05 +01:00
David Karlsson
aa10ed9784 hugo: improve metadata rendering for markdown output
Render title and related pages as front matter

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2026-01-12 15:17:32 +01:00
Sebastiaan van Stijn
67c1e98f0b api: include alternate link for swagger / OpenAPI spec
The API docs are generated dynamically, which prevents them from being
crawled / indexed. Provide a link to the swagger / OpenAPI spec that's
used to generate the page, so that that content can be used as alternative.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2026-01-08 16:36:09 +01:00
Craig Osterhout
b10a462f9f rename api layout (#23928)
<!--Delete sections as needed -->

## Description

Rename API template



https://deploy-preview-23928--docsdocker.netlify.app/reference/api/engine/version/v1.52/

## Related issues or tickets

<!-- Related issues, pull requests, or Jira tickets -->

## Reviews

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

- [ ] Editorial review

Signed-off-by: Craig Osterhout <craig.osterhout@docker.com>
2026-01-05 16:40:38 +00:00
David Karlsson
599393423f dhi: use attribute for tier, remove badge shortcode from heading
Create a 'tier' attribute for headings and render it semantically

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2025-12-17 14:07:35 +01:00
David Karlsson
4cc579f17b site: improve header buttons, remove support link
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2025-12-12 17:43:34 +01:00
Craig Osterhout
ac68e447ff hub: add base url to api paths (#22870)
<!--Delete sections as needed -->

## Description

Display the base url specifically for Hub API and Registry API docs. 

Is this enough, or do we also need to write something about it in the
description at the top?


![image](https://github.com/user-attachments/assets/666a4605-c131-4593-8a67-132481785a3e)


## Related issues or tickets

ENGDOCS-2748

## Reviews

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

- [ ] Editorial review

---------

Signed-off-by: Craig <craig.osterhout@docker.com>
2025-11-24 14:30:48 -08:00
David Karlsson
d4bbf9b8e9 llms.txt: add markup for h1
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2025-11-13 14:38:01 +01:00
David Karlsson
e17aa3e6a6 llms.txt: only render section links to existing pages
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2025-11-13 14:38:01 +01:00
David Karlsson
3a8312bf55 llms.txt: resolve shortcodes in rendered Markdown
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2025-11-13 14:38:01 +01:00
David Karlsson
69e7b81888 llms.txt: add page descriptions
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2025-11-13 14:38:01 +01:00
David Karlsson
be9c6d7543 llms.txt: reduce whitespaces and remove dud entries
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2025-11-13 14:38:01 +01:00
Craig Osterhout
54896155f7 scout: fix watch docs (#23506)
<!--Delete sections as needed -->

## Description

Fixes the generated scout watch docs to use examples from the upstream
markdown, instead of the yaml. When previously updated, only the
markdown was updated upstream and not the CLI source which generates the
yaml.

- Added new layout for the scout cli, based on the generic cli layout.
The new layout uses the more extensive markdown examples if present,
otherwise use the examples from the yaml.
- Updated the scout watch topic to use the new layout 

Once fixed upstream, will have a follow up to most likely revert this.



https://deploy-preview-23506--docsdocker.netlify.app/reference/cli/docker/scout/watch/#examples

## Related issues or tickets

Original PR to update the version: #23485. The markdown was updated but
not the yaml.
Upstream fix: https://github.com/docker/scout-cli-plugin/pull/713

## Reviews

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

- [ ] Editorial review

Signed-off-by: Craig Osterhout <craig.osterhout@docker.com>
2025-10-07 08:37:24 -07:00
Sarah Sanders
73ba3a54c0 fix: search bar (#23459)
Fix for intermittent bug that happens on the docs site when using the
search bar/search drop-down, reported by Eng
- Fixed disconnected dropdown to keep dropdown attached to search bar
- Added viewport boundary detection for window resizing
- Made search icon clickable (critical for mobile)

Tested on:
- Chrome
- Safari
- Mobile

https://docker.atlassian.net/browse/ENGDOCS-3002
2025-09-26 08:59:56 -04:00
Arthur
ed2dca923b chore: update favicon (#23314)
Use the official favicon.
2025-08-27 07:50:54 +01:00
Arthur
80581f3dfc fix: search display (#23250) 2025-08-15 11:15:55 +02:00
Arthur
39ff715091 ux: move support and theme buttons to topnav (#23243)
Move the contact support button and the theme switch button to the top
nav bar.
2025-08-15 10:51:55 +02:00
Arthur
b427433371 ux: copy search term to AI widget (#23212)
Harmonize buttons in the nav and automatically copy the search term to
the AI widget.
Uses "cmd k" to open the AI widget instead of search.
Touch up search results.
2025-08-11 09:33:02 +02:00
Arthur
4f51bd8e1b dmr: add GHA example (#23136)
Add GHA workflow example for DMR

---------

Co-authored-by: Allie Sadler <102604716+aevesdocker@users.noreply.github.com>
2025-07-22 12:29:12 +00:00
Arthur
03ae6f16f8 chore: fix search result color (#22962)
Some parts of the search results window are hard to read. Let's fix
this.

Before: see live website
After: 

![Screenshot 2025-07-01 at 12 45
40](https://github.com/user-attachments/assets/34e8e10c-d2ab-4c8b-9d83-07299915464e)
![Screenshot 2025-07-01 at 12 45
49](https://github.com/user-attachments/assets/a851dcdb-5423-40bc-9a8b-19cd949c408c)
2025-07-01 13:00:56 +02:00
David Karlsson
6dee98ad33 Merge pull request #22896 from dvdksn/llms.txt-exclude-hidden
chore: exclude hidden pages from llms.txt
2025-06-24 10:30:56 -04:00
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
9eff1ba5fc theme: extract more styles (#22734)
Extract shared styling into appropriate utilities.
Improve toc width.
2025-05-30 09:20:56 -07: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
Sarah Sanders
537c9f158f fix: mobile footer issue (#22639)
## Description
- The Contact support button was appearing above the sidenav slideout on
mobile, this fixes that
- Tested on mobile in browser and mobile device
- Verified there is no impact to desktop web version

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

## Reviews
- [ ] Technical review
- [ ] Editorial review
- [ ] Product review
2025-05-14 14:47:01 -04:00
Craig Osterhout
a6a887c1cb glossary: add static terms (#22401)
<!--Delete sections as needed -->

## Description

Reverted the glossary back to some static terms and instead added a tip
to ask AI.

https://deploy-preview-22401--docsdocker.netlify.app/reference/glossary/

## Related issues or tickets

<!-- Related issues, pull requests, or Jira tickets -->

## Reviews


- [ ] Editorial review

---------

Signed-off-by: Craig <craig.osterhout@docker.com>
2025-04-17 13:37:39 -07:00
Sarah Sanders
a4eda2ced4 add llms.txt to repo (#22298)
## Description
- Adds .md versions of manuals and guide pages
- Adds site-wide llms.txt file to footer (this is essentially a sitemap
that LLMs can crawl)
- Adds options for llms/AI agents to better crawl docs, users to ask
about docs in Docs AI
- Preview:
https://deploy-preview-22298--docsdocker.netlify.app/admin/organization/onboard/

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

## Reviews

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

- [ ] Technical review
- [ ] Editorial review
- [ ] Product review
2025-04-02 12:30:52 -04:00
Craig Osterhout
b4efa8117d remove glossary (#22112)
<!--Delete sections as needed -->

## Description

Remove glossary with a nudge towards using Ask AI.

https://deploy-preview-22112--docsdocker.netlify.app/reference/glossary/

## Related issues or tickets

ENGDOC-2445

## Reviews

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


- [ ] Editorial review

---------

Signed-off-by: Craig <craig.osterhout@docker.com>
2025-02-27 08:58:33 -08:00
Josh
fdfb1614c3 Improve auth docs and add oat tags for use (#22045)
<!--Delete sections as needed -->

## Description

This improves our authentication docs in our API. Additionally, we need
to note on certain routes where OAT bearers are allowed.

## Related issues or tickets

<!-- Related issues, pull requests, or Jira tickets -->

## Reviews

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

- [x] Technical review
- [x] Editorial review
- [ ] Product review

---------

Co-authored-by: Sarah Sanders <sarah.sanders@docker.com>
2025-02-18 15:05:44 -05:00
David Karlsson
ac388dc992 Merge pull request #21853 from dvdksn/tidy-hugo-tpl-2
chore: tidy templates, add comments
2025-01-27 09:23:29 +01:00
Sebastiaan van Stijn
e3b1eb968d layouts: cli.html: fix incorrect closing tag
The opening tag was a "td", but the closing tag a "th". Looks
like browsers fix this up, but let's change it to be correct.

updates 56679aec98

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-01-22 11:55:40 +01:00
David Karlsson
1a9dc69bd0 chore: tidy templates, add comments
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2025-01-20 10:30:58 +01:00
David Karlsson
effa260c24 hugo: only render subcommand link if cli data exists
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2025-01-09 15:34:44 +01:00
David Karlsson
54e84be145 hugo(refactor): use Page.Store instead of Page.Scratch
Page.Scratch was soft-deprecated in v0.138.0
https://github.com/gohugoio/hugo/releases/tag/v0.138.0

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-11-07 15:59:16 +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
6d320898d5 Merge pull request #21097 from dvdksn/tbl-styles
hugo: update table styles
2024-10-24 15:10:43 +02:00
David Karlsson
c026103cef guides: update listing layout on landing page
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-10-18 16:41:13 +02:00
David Karlsson
0f80eeae07 site: automatically scroll down the sidebar to reveal the current page
Some pages are nested quite deep in the sidebar, which means they aren't
automatically visible on pageload unless the sidebar is scrolled. This
commit adds a scrolldown function to the sidebar to check if the element
representing the current page is in view. If it isn't, the sidebar is
scrolled down to a position where the current page comes into view.

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-10-10 12:28:21 +02:00
David Karlsson
ecc54f2b3b hugo: align cli table styles with defaults, add horizontal overflow
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-10-10 10:46:23 +02: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
2e59bd4eb7 site: use filter-based nav for guides
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-10-03 16:50:15 +02:00