Commit 09114ce
feat: LLMs dropdown (#1956)
<img width="1915" height="986" alt="Screenshot 2025-09-30 at 16 04 30"
src="https://github.com/user-attachments/assets/e66b6853-1aaa-4feb-941b-9ede319a33a2"
/>
<!-- CURSOR_SUMMARY -->
> [!NOTE]
> Refactors LLM actions into a single dropdown menu and updates the doc
header layout and styles, adding UI library/icon deps.
>
> - **Frontend (theme)**:
> - **LLM actions**:
> - Replace `CopyForLLM` and `ViewAsMarkdown` buttons with a single
dropdown in `theme/LLMButtons/index.jsx` using `@apify/ui-library`
`Menu` and `@apify/ui-icons`.
> - Implements copy-as-Markdown (with loading/success feedback) and
view-as-Markdown actions.
> - Removes `theme/LLMButtons/CopyForLLM` and
`theme/LLMButtons/ViewAsMarkdown` components.
> - Revamps styles in `theme/LLMButtons/styles.module.css` for the new
button and menu options.
> - **Doc header layout**:
> - In `theme/DocItemContent/index.js`, wraps title and LLM controls in
a flex container (`styles.docItemContent`), keeping `MDXContent` below;
adds `styles.module.css` for layout.
> - **Dependencies**:
> - Add `@apify/ui-icons` and bump `@apify/ui-library`; update lockfile
accordingly.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
5455d61. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
---------
Co-authored-by: Richard Biroš <[email protected]>
Co-authored-by: Jan Bárta <[email protected]>1 parent 6a94fcc commit 09114ce
File tree
9 files changed
+426
-169
lines changed- apify-docs-theme/src/theme
- DocItemContent
- LLMButtons
- CopyForLLM
- ViewAsMarkdown
9 files changed
+426
-169
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| |||
62 | 64 | | |
63 | 65 | | |
64 | 66 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
72 | 78 | | |
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
Lines changed: 0 additions & 71 deletions
This file was deleted.
Lines changed: 0 additions & 37 deletions
This file was deleted.
0 commit comments