feat: List external dependencies in documentation

Open
#3,915 5 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
typescript
Domain
documentation

Research direction

Start with the custom-docs documentation and JsonDocsComponent reference linked in the issue, then trace how dependency documentation currently includes library components. Define how a whitelist array or glob should select external components and update the dependency list and Mermaid graph; done when the ion-* example produces ion-badge in both sections.

Written by the indexing model from the issue text.

Description

Feature: Want this? Upvote it!
Prerequisites
Describe the Feature Request

We have multiple libraries of web components, when compiling the documentation it currently only lists any component that is part of the library and not external components being used.

It would be nice if you could somehow whitelist an array or glob that can be used when documenting dependencies of your component.

Describe the Use Case

<my-component> contains an <ion-badge>. If I said I want the dependency docs to include any component I use that contains "ion-*" then I would expect the documentation to say:

Depends on
  • ion-badge
Graph
graph TD;
  my-component --> ion-badge

I tried to implement this using custom-docs and the JsonDocsComponent but it didn't seem possible.

Dominant language
TypeScript
Stars
13.1k
Forks
855
Avg merge
4h 7m
Merged PRs (30d)
44

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from stenciljs/core

All issues in stenciljs/core

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.