8.2.17 • Published 8 days ago

@fluentui/api-docs v8.2.17

Weekly downloads
361
License
MIT
Repository
github
Last release
8 days ago

@fluentui/api-docs

Processes package-name.api.json files generated by API Extractor into ComponentName.page.json files used to populate API reference tables, mainly in the Fluent UI website's Controls section.

Using the tool

  1. In each API item which should be included on the website (see Limitations below for supported item types), include a {@docCategory PageName} annotation in its top-level doc comment. If the item is related to a specific component, PageName should be the name of the component. Otherwise, you can use either the name of the item or a general category that it falls under.
/**
 * Comment about the props
 * {@docCategory Foo}
 */
interface FooProps {}
  1. Add a config and build step to run API Extractor on your package. (Fluent UI has a shared config extended by each package's config.)

  2. Somewhere in your repo (probably in the package that displays the documentation), add a build step to invoke the generatePageJsonFiles API. For the config object, see IPageJsonOptions in this file for docs and this file for an example.

const { generatePageJsonFiles } = require('@fluentui/api-docs');
const config = {}; // your config here
generatePageJsonFiles(config);
  1. To render the info from *.page.json files, you can either use ApiReferencesTableSet from @fluentui/react-docsite-components, or use its logic as a template for your own control.

Limitations

Supported API items

Documenting the following API items/types is supported:

  • Interfaces
  • Type aliases
  • Classes
  • Enums

These API items/types are not supported currently (PRs welcome):

  • Functions (including function components)
  • Constants

Markdown

If you're using ApiReferencesTableSet for rendering the output, top-level doc comments have full markdown support, but individual prop comments have limited support (currently just inline code blocks) due to performance concerns. (May not apply if you've written your own renderer.)

Prop comments

API Extractor has a particular format required for certain types of doc comments and will fail at build time if this format is not followed. There are also a few suggested best practices.

8.2.17

8 days ago

8.2.16

20 days ago

8.2.15

29 days ago

8.2.14

4 months ago

8.2.13

5 months ago

8.2.12

6 months ago

8.2.11

11 months ago

8.2.10

11 months ago

8.2.7

1 year ago

8.2.9

11 months ago

8.2.8

1 year ago

8.2.6

1 year ago

8.2.5

1 year ago

8.2.4

1 year ago

8.2.3

2 years ago

8.2.2

2 years ago

8.2.1

2 years ago

8.2.0

3 years ago

8.1.35

3 years ago

8.1.33

3 years ago

8.1.34

3 years ago

8.1.32

3 years ago

8.1.31

3 years ago

8.1.30

3 years ago

8.1.29

3 years ago

8.1.28

3 years ago

8.1.27

3 years ago

8.1.26

3 years ago

8.1.25

3 years ago

8.1.24

3 years ago

8.1.17

3 years ago

8.1.16

3 years ago

8.1.19

3 years ago

8.1.18

3 years ago

8.1.20

3 years ago

8.1.22

3 years ago

8.1.21

3 years ago

8.1.23

3 years ago

8.0.30

3 years ago

8.0.32

3 years ago

8.0.31

3 years ago

8.1.11

3 years ago

8.1.10

3 years ago

8.1.13

3 years ago

8.1.12

3 years ago

8.1.15

3 years ago

8.1.14

3 years ago

8.1.0

3 years ago

8.1.2

3 years ago

8.1.1

3 years ago

8.1.8

3 years ago

8.1.7

3 years ago

8.1.9

3 years ago

8.1.4

3 years ago

8.1.3

3 years ago

8.1.6

3 years ago

8.1.5

3 years ago

8.0.29

3 years ago

8.0.28

3 years ago

8.0.27

3 years ago

8.0.26

3 years ago

8.0.25

3 years ago

8.0.24

3 years ago

8.0.23

3 years ago

8.0.22

3 years ago

8.0.21

3 years ago

8.0.20

3 years ago

8.0.18

3 years ago

8.0.19

3 years ago

8.0.17

3 years ago

8.0.16

3 years ago

8.0.15

3 years ago

8.0.14

3 years ago

8.0.12

3 years ago

8.0.13

3 years ago

8.0.11

3 years ago

8.0.10

3 years ago

8.0.9

3 years ago

8.0.8

3 years ago

8.0.7

3 years ago

8.0.6

3 years ago

8.0.5

3 years ago

8.0.4

3 years ago

8.0.3

3 years ago

8.0.2

3 years ago

8.0.0-beta.9

3 years ago

8.0.1

3 years ago

8.0.0-beta.8

3 years ago

8.0.0-beta.7

3 years ago

8.0.0-beta.6

3 years ago

8.0.0-beta.5

3 years ago

8.0.0-beta.4

3 years ago

8.0.0-beta.3

3 years ago

8.0.0-beta.2

3 years ago

8.0.0-beta.1

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago