react-native-vision-camera/docs/docusaurus.config.js
2023-10-12 10:15:01 +02:00

177 lines
4.5 KiB
JavaScript

module.exports = {
title: 'VisionCamera',
tagline: '📸 A powerful, high-performance React Native Camera library.',
url: 'https://react-native-vision-camera.com',
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'throw',
favicon: '/favicon.ico',
organizationName: 'mrousavy',
projectName: 'react-native-vision-camera',
themeConfig: {
algolia: {
appId: 'NRK7PZXU6O',
apiKey: '33d54e627c4587a6d8dbff79d5209e46',
indexName: 'react-native-vision-camera',
contextualSearch: false
},
colorMode: {
respectPrefersColorScheme: true
},
prism: {
theme: require('prism-react-renderer/themes/github'),
darkTheme: require('prism-react-renderer/themes/palenight'),
additionalLanguages: ['swift', 'java', 'kotlin'],
},
navbar: {
title: 'VisionCamera',
logo: {
alt: 'Logo',
src: './android-chrome-192x192.png',
},
items: [
{
label: 'Guides',
to: 'docs/guides',
position: 'left',
},
{
to: 'docs/api',
label: 'API',
position: 'left'
},
{
href: 'https://github.com/mrousavy/react-native-vision-camera/tree/main/package/example',
label: 'Example App',
position: 'left'
},
{
href: 'https://github.com/mrousavy/react-native-vision-camera',
label: 'GitHub',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Docs',
items: [
{
label: 'Guides',
to: 'docs/guides'
},
{
label: 'API',
to: 'docs/api',
},
{
label: 'Example App',
href: 'https://github.com/mrousavy/react-native-vision-camera/tree/main/package/example',
},
],
},
{
title: 'Community',
items: [
{
label: 'Community Discord',
href: 'https://discord.com/invite/6CSHz2qAvA',
},
{
label: 'GitHub discussions',
href: 'https://github.com/mrousavy/react-native-vision-camera/discussions',
},
{
label: 'Twitter (@mrousavy)',
href: 'https://twitter.com/mrousavy',
},
],
},
{
title: 'More',
items: [
{
label: 'GitHub',
href: 'https://github.com/mrousavy/react-native-vision-camera',
},
{
label: 'Marc\'s Portfolio',
href: 'https://mrousavy.com',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Marc Rousavy`,
},
image: 'img/11.png',
metadata: [
{
name: 'keywords',
content: 'documentation, coding, docs, guides, camera, react, native, react-native'
},
{
name: 'og:title',
content: 'VisionCamera Documentation'
},
{
name: 'og:type',
content: 'application'
},
{
name: 'og:description',
content: '📸 A powerful, high-performance React Native Camera library.'
},
{
name: 'og:image',
content: '/img/11.png'
},
],
},
presets: [
[
'@docusaurus/preset-classic',
{
sitemap: {
changefreq: 'weekly',
priority: 1.0,
ignorePatterns: ['/tags/**'],
filename: 'sitemap.xml',
},
docs: {
sidebarPath: require.resolve('./sidebars.js'),
editUrl: 'https://github.com/mrousavy/react-native-vision-camera/edit/main/docs/',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
gtag: {
trackingID: 'G-FX9Q0YKV7S',
anonymizeIP: false,
},
},
],
],
plugins: [
[
'docusaurus-plugin-typedoc',
{
name: 'VisionCamera',
entryPoints: ['../package/src'],
exclude: "../package/src/index.ts",
tsconfig: '../package/tsconfig.json',
watch: process.env.TYPEDOC_WATCH,
excludePrivate: true,
excludeProtected: true,
excludeExternals: true,
excludeInternal: true,
readme: "none",
sidebar: {
indexLabel: 'Overview'
}
},
],
],
}