To create dynamic image previews please refer to docs.flyyer.io.
This plugin required Docusaurus v2. There is no support for v1.
Need help? Join our Discord
yarn add @flyyer/docusaurus-preset @flyyer/flyyer
# or with npm
npm install --save @flyyer/docusaurus-preset @flyyer/flyyerOn your docusaurus.config.js add @flyyer/docusaurus-preset at the end of your presets array:
{
// ...
presets: [
// ...
[
"@flyyer/docusaurus-preset",
{
flyyer: {
/**
* Get your project's id at https://flyyer.io/dashboard/_/projects/_/integrate
*/
project: "",
}
},
],
],
}To prevent bad actors from generating images you can sign your URLs.
🔑 Get your secret key here: flyyer.io/dashboard//projects//advanced.
Note: This key is different form your
FLYYER_KEY.
{
presets: [
[
"@flyyer/docusaurus-preset",
{
flyyer: {
project: "",
secret: process.env.FLYYER_SIGNATURE_KEY || "your-key",
strategy: "JWT", // "JWT" | "HMAC"
}
},
],
],
}Clone this repository with:
git clone https://github.com/useflyyer/docusaurus-preset.git
cd docusaurus-presetInstall dependencies and bootstrap Lerna:
yarn install
yarn run bootstrapBuild packages:
yarn run buildCreate a new Lerna version:
yarn run lerna versionPublish packages:
yarn run lerna publish from-git --yesMIT