how to change the code example in a docs page?
I am trying to change an example here:
Specifically line 226:
:component-example{name="tabs-model-value-example"}
Can't find a file with the same name.2 Replies
Hi @philipsman. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
I can see you're trying to modify a code example in the Nuxt documentation. Based on the knowledge sources provided, I can see several examples of documentation changes, but they don't contain specific information about the
:component-example syntax or where those example files are located.
However, from the pattern shown in your question (:component-example{name="tabs-model-value-example"}), this appears to be a custom component that references an example file. In Nuxt documentation, these example files are typically stored in a separate examples directory.
Unfortunately, the knowledge sources provided don't contain explicit information about:
- The location of component example files in the Nuxt docs repository
- The structure or naming convention for these example files
- How the :component-example component resolves file names
To properly answer your question about where to find the tabs-model-value-example file, I would need access to documentation about the Nuxt docs repository structure or contribution guidelines that explain the examples system. The knowledge sources I have access to only show various documentation PRs with minor fixes and updates, but don't explain the overall documentation architecture.
I recommend checking the Nuxt contribution docs or looking in the Nuxt documentation repository for an examples/ or similar directory where these component examples might be stored.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------<@796419042054242335> Kapa.ai is still learning and improving, please let me know how I did by reacting below.