Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

adispezio/figma-plugin-external-docs-experiment

Open more actions menu

Repository files navigation

External Docs - Figma Plugin Experiment

A plugin experiment to show related external documentation for a selected component/instance.

How it works

The plugin reads the component description of the currently selected component and searches for the term @api (this could be anything). If there's a match, it uses the component name to serve the corresponding page of the documentation (by simple URL matching).

I've used Github Primer and the Primer docs as an example as this requires cross-origin requests and not a lot of public styleguides have this enabled :)

Thoughts

This is a very simple approach to a very powerful concept. A lot of design systems and/or dev teams have existing docs that would be valuable to reference while designing - why not pull them straight in!

There's a lot of fragility and room for human error by matching text strings and I could imagine a much more robust approach with:

  • uuid references instead of text
  • actual API request for urls
  • two-way data to populate the Figma canvas with useful info from the docs
  • local and external docs

Next steps

I don't have any further plans for this experiment - but perhaps it will be useful for someone else!

Thanks

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  
Morty Proxy This is a proxified and sanitized view of the page, visit original site.