Skip to content

📝 Docs: Highlight the lines related to the particular demo #19

@jd-solanki

Description

@jd-solanki

In all framework's docs, there's a demo and its code snippet. That's it.

However, I think when a developer looks though docs to find the required code he/she only wants to check out the code that is necessary to recreate the shown demo.

For example:

  • In the demo of alert colors, we have lots of markup but only color prop matters so we should only highlight the color prop line.
  • In slots demos, we might have some variable in script block and some additional markup in template block but what really matters is the usage of slot show we should highlight the lines that demonstrate the slot for that demo.

We already done this in some snippets but it is great docs improvement if we consider this for all snippets.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions