docs: Upgrade Docusaurus (#1513)
* Add sitemaps plugin * Update docusaurus.config.js * Update libs * Add OpenGraph metadata * use same url
This commit is contained in:
parent
757ecb0640
commit
ab757125b5
@ -10,6 +10,7 @@ module.exports = {
|
|||||||
projectName: 'react-native-vision-camera',
|
projectName: 'react-native-vision-camera',
|
||||||
themeConfig: {
|
themeConfig: {
|
||||||
algolia: {
|
algolia: {
|
||||||
|
appId: 'HBHXBT6T9E',
|
||||||
apiKey: 'ab7f44570bb62d0e07c0f7d92312ed1a',
|
apiKey: 'ab7f44570bb62d0e07c0f7d92312ed1a',
|
||||||
indexName: 'react-native-vision-camera',
|
indexName: 'react-native-vision-camera',
|
||||||
},
|
},
|
||||||
@ -94,11 +95,39 @@ module.exports = {
|
|||||||
],
|
],
|
||||||
copyright: `Copyright © ${new Date().getFullYear()} Marc Rousavy`,
|
copyright: `Copyright © ${new Date().getFullYear()} Marc Rousavy`,
|
||||||
},
|
},
|
||||||
|
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: '📸 The Camera library that sees the vision.'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'og:image',
|
||||||
|
content: 'https://www.react-native-vision-camera.com/img/11.png'
|
||||||
|
},
|
||||||
|
]
|
||||||
},
|
},
|
||||||
presets: [
|
presets: [
|
||||||
[
|
[
|
||||||
'@docusaurus/preset-classic',
|
'@docusaurus/preset-classic',
|
||||||
{
|
{
|
||||||
|
sitemap: {
|
||||||
|
changefreq: 'weekly',
|
||||||
|
priority: 1.0,
|
||||||
|
ignorePatterns: ['/tags/**'],
|
||||||
|
filename: 'sitemap.xml',
|
||||||
|
},
|
||||||
docs: {
|
docs: {
|
||||||
sidebarPath: require.resolve('./sidebars.js'),
|
sidebarPath: require.resolve('./sidebars.js'),
|
||||||
editUrl: 'https://github.com/mrousavy/react-native-vision-camera/edit/main/docs/',
|
editUrl: 'https://github.com/mrousavy/react-native-vision-camera/edit/main/docs/',
|
||||||
|
@ -13,12 +13,13 @@
|
|||||||
"clear": "docusaurus clear"
|
"clear": "docusaurus clear"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@docusaurus/core": "^2.0.0-beta.14",
|
"@docusaurus/core": "^2.3.1",
|
||||||
"@docusaurus/preset-classic": "^2.0.0-beta.14",
|
"@docusaurus/plugin-sitemap": "^2.3.1",
|
||||||
|
"@docusaurus/preset-classic": "^2.3.1",
|
||||||
"@mdx-js/react": "^1.6.22",
|
"@mdx-js/react": "^1.6.22",
|
||||||
"clsx": "^1.1.1",
|
"clsx": "^1.2.1",
|
||||||
"react": "^17.0.2",
|
"react": "^18.2.0",
|
||||||
"react-dom": "^17.0.2"
|
"react-dom": "^18.2.0"
|
||||||
},
|
},
|
||||||
"browserslist": {
|
"browserslist": {
|
||||||
"production": [
|
"production": [
|
||||||
@ -33,9 +34,9 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"docusaurus-plugin-typedoc": "^0.16.6",
|
"docusaurus-plugin-typedoc": "^0.18.0",
|
||||||
"typedoc": "^0.22.10",
|
"typedoc": "^0.24.0-beta.2",
|
||||||
"typedoc-plugin-markdown": "^3.11.8",
|
"typedoc-plugin-markdown": "^3.14.0",
|
||||||
"typescript": "^4.5.4"
|
"typescript": "^4.9.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
4937
docs/yarn.lock
4937
docs/yarn.lock
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user