Add FAQ on using AI coding assistants with THEOplayer - #854
Conversation
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
|
Thanks, I was not aware of #838. I looked at it: it covers everything the generator in this PR does, and more (per-product Proposal, @Danesz: I drop the plugin from this PR and keep only the FAQ page ("How can I use AI coding assistants with THEOplayer?"), which is the part #838 does not have. It links to |
This comment has been minimized.
This comment has been minimized.
|
Fine for me |
ae72326 to
cb35629
Compare
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
cb35629 to
7232a95
Compare
|
@morgandrake-cpu I changed the PR to ready for review. I think it looks ok, it can land. |
|
Devin I like the FAQ idea, but tbh that page could win a hide-and-seek competition. Can't we make it more visible? e.g. in the header of the page, to the left of the dark/light theme icon we put the nowadays fancy "AI sparkle" icon that links to this page? Then even if a crazy AI agent would start reading the HTML page itself (instead of llms.txt), could find it on top with a higher chance, and follow it. |
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
|
Done in d951538: a sparkle icon in the navbar, left of the theme toggle, links to the FAQ. On mobile the sidebar shows it as a text item ("AI coding assistants"). |
|
Good stuff! |
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
|
Added in eeb0a97: on hover the icon shows a gradient from |
|
Very colorful! However, I think it could use a transition. Two things to try:
Can you record a video of these transitions, so we can pick the one we like best? |
|
Here are both transitions side by side (each icon is hovered twice; the icons are enlarged for the video): A: fade (0.3 s). One registered custom property mixed into the gradient stops, transitioned on the existing @property --ai-gradient {
syntax: '<percentage>';
inherits: false;
initial-value: 0%;
}
.navbar__items .navbar__ai-link::before {
background: linear-gradient(135deg,
color-mix(in srgb, var(--ifm-color-primary-lightest) var(--ai-gradient), currentColor),
color-mix(in srgb, var(--ifm-color-primary-darker) var(--ai-gradient), currentColor));
transition: --ai-gradient 0.3s ease;
}
.navbar__items .navbar__ai-link:hover::before { --ai-gradient: 100%; }B: sweep (0.5 s). The gradient is a band inside a 300% background; on hover it moves in from the bottom right, on mouse leave it continues in the same direction and ends on the plain color. Keyframes are used instead of a transition so that the direction is the same both ways: .navbar__items .navbar__ai-link::before {
background: linear-gradient(135deg,
currentColor 0 30%,
var(--ifm-color-primary-lightest) 36%,
var(--ifm-color-primary-darker) 64%,
currentColor 70% 100%);
background-size: 300% 300%;
animation: ai-sweep-out 0.5s ease-out forwards;
}
.navbar__items .navbar__ai-link:hover::before { animation: ai-sweep-in 0.5s ease-out forwards; }
@keyframes ai-sweep-in { from { background-position: 0 0; } to { background-position: 50% 50%; } }
@keyframes ai-sweep-out { from { background-position: 50% 50%; } to { background-position: 100% 100%; } }Both use |
|
I like the sweep. However, now I think it's better to make the gradient colors symmetrical when entering and exiting. So add another stop with |
…p left Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
|
Committed the sweep with a symmetric band (lightest, darker, lightest) in 9dbab2d. On the real navbar, light and dark theme: |
|
Beautiful ❤️ |
Summary
Adds a customer-facing FAQ,
theoplayer/faq/how-to-use-ai-coding-assistants, that explains how to load the THEOplayer documentation into AI coding assistants (Claude Code, Cursor, GitHub Copilot, Windsurf, ...):/docs/llms.txt,/docs/<product>/llms.txt,/docs/<product>/llms-full.txt, and the.mdtwin of every page) and when to use which;CLAUDE.md,AGENTS.md, Cursor rules or Copilot instructions (documentation URLs, package names per platform, and a few integration rules such as reading the license from configuration).To make the page easy to find, a sparkle icon in the navbar (left of the theme toggle) links to it. The icon is a CSS mask over
static/img/ai-sparkle.svgon a normallinknavbar item, so the mobile sidebar shows it as a text item ("AI coding assistants").web-uiis added to the spellcheck dictionary because the FAQ links to the publicTHEOplayer/web-uirepository.The earlier version of this PR contained its own
llms.txtgenerator; it was removed in favour of #838, which is now merged.Link to Devin session: https://dolby.devinenterprise.com/sessions/77e06f6b72b740eeadf0bf3bfe666b92
Open in Devin Desktop: https://dolby.devinenterprise.com/desktop/session/77e06f6b72b740eeadf0bf3bfe666b92?variant=devin
Requested by: @morgandrake-cpu