feat: move docs to github pages (#3296)

* feat(docs): setup nextra

* feat(docs): add pages

* docs: update introduction page

* docs: fix typos

* docs: fix links

* docs: update README

* docs: sync with master

* docs: remove old docs

* fix(ci/docs): fix typos

* fix(ci/docs): fix docs setup

* fix(docs): update next config

* chore(ci/docs): clean up

* chore(docs): add meta tags

* chore: apply review changes

* docs: move drm into api section

* docs: fix next config

* docs: fix links

* docs: add methods section

* chore: sync with main

* docs: add missing onAudio events
This commit is contained in:
Krzysztof Moch
2023-10-26 08:54:14 +02:00
committed by GitHub
parent 0f8467f51d
commit 85e30f0335
32 changed files with 2289 additions and 1992 deletions

39
docs/theme.config.jsx Normal file
View File

@@ -0,0 +1,39 @@
import React from 'react';
export default {
head: (
<>
<meta name="language" content="en" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<meta name="description" content="Video component for React Native" />
<meta name="og:title" content="React Native Video" />
<meta
name="og:description"
content="A Video component for React Native"
/>
</>
),
logo: (
<span>
🎬 <strong>Video component</strong> for React Native
</span>
),
faviconGlyph: '🎬',
project: {
link: 'https://github.com/react-native-video/react-native-video',
},
docsRepositoryBase:
'https://github.com/react-native-video/react-native-video/tree/master/docs/',
footer: {
text: (
<span>
Built with love by <strong>React Native Community</strong>
</span>
),
},
useNextSeoProps() {
return {
titleTemplate: '%s Video',
};
},
};