You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the path of the image file is added as a prop to customProps in the _category_.json
// ~/docs/_category_.json (in project){"customProps": {"card": "img/project-logo.png""banner": "img/[email protected]"// ...}// ...}
the custom-homepage-plugin (A.K.A. /plugins/homepage-items-plugin.js😬) reads the paths fromcategory.jsonand adapts them to their-docs` directory structure.
Summary
Things to decide
Technical Implementation
projects place their images in their
static
folder. These will be copied into~/static/<project-name>
the path of the image file is added as a prop to
customProps
in the_category_.json
the
custom-homepage-plugin
(A.K.A. /plugins/homepage-items-plugin.js😬) reads the paths from
category.jsonand adapts them to the
ir-docs` directory structure.Components consume this via the docusaurus context.
The text was updated successfully, but these errors were encountered: