Reusable GitHub Actions workflow

Call from your CI

pmndrs/docs provides a build.yml reusable workflow, any project can use:

uses: pmndrs/docs/.github/workflows/build.yml@main
  with:
    mdx: './docs'
    libname: 'React Three Fiber'
    libname_short: 'r3f'
    home_redirect: '/getting-started/introduction'
    icon: '🇨🇭'
    logo: '/logo.png'
    github: 'https://github.com/pmndrs/react-three-fiber'
    discord: 'https://discord.com/channels/740090768164651008/740093168770613279'
    theme_primary: '#323e48'
    theme_hint: '#d29922'
    theme_scheme: 'tonalSpot'
    theme_contrast: '0'

See pmndrs/react-three-fiber/.github/workflows/docs.yml for an example implementation.