react-native-navigation的迁移库

docusaurus.config.js 3.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. module.exports = {
  2. title: 'React Native Navigation',
  3. tagline: '',
  4. url: 'https://wix.github.io',
  5. baseUrl: '/react-native-navigation/',
  6. favicon: 'img/favicon.ico',
  7. organizationName: 'wix', // Usually your GitHub org/user name.
  8. projectName: 'react-native-navigation', // Usually your repo name.
  9. themeConfig: {
  10. prism: {
  11. // theme: require('prism-react-renderer/themes/vsDark'),
  12. theme: require('prism-react-renderer/themes/nightOwl'),
  13. // theme: require('prism-react-renderer/themes/dracula'),
  14. },
  15. navbar: {
  16. title: 'React Native Navigation',
  17. logo: {
  18. alt: 'React Native Navigation Logo',
  19. src: 'img/logo.png',
  20. },
  21. links: [
  22. {to: 'docs/before-you-start', label: 'Docs', position: 'left', activeBasePath: 'docs'},
  23. {to: 'api/component', label: 'API', position: 'left', activeBasePath: 'api'},
  24. {
  25. href: 'https://github.com/wix/react-native-navigation',
  26. label: 'GitHub',
  27. position: 'right',
  28. },
  29. ],
  30. },
  31. algolia: {
  32. apiKey: '6d8c985d9db80241d117497afe2a0e8c',
  33. indexName: 'wix_react-native-navigation'
  34. },
  35. sidebarCollapsible: false,
  36. footer: {
  37. style: 'dark',
  38. links: [
  39. {
  40. title: 'Docs',
  41. items: [
  42. {
  43. label: 'Installation',
  44. to: 'docs/installing',
  45. },
  46. {
  47. label: 'Basic Navigation',
  48. to: 'docs/basic-navigation',
  49. },
  50. {
  51. label: 'Contributing',
  52. to: 'docs/meta-contributing',
  53. }
  54. ],
  55. },
  56. {
  57. title: 'Support',
  58. items: [
  59. {
  60. label: 'Ask a question on Stack Overflow',
  61. href: 'https://stackoverflow.com/questions/tagged/wix-react-native-navigation',
  62. },
  63. {
  64. label: 'Community chat on Discord',
  65. href: 'https://discord.gg/DhkZjq2',
  66. },
  67. {
  68. label: 'Submit on issue on GitHub',
  69. href: 'https://github.com/wix/react-native-navigation/issues/new/choose',
  70. }
  71. ],
  72. },
  73. {
  74. title: 'Social',
  75. items: [
  76. {
  77. label: 'GitHub',
  78. href: 'https://github.com/wix/react-native-navigation',
  79. },
  80. {
  81. label: 'Twitter',
  82. href: 'https://twitter.com/ReactNativeNav',
  83. },
  84. ],
  85. },
  86. ]
  87. },
  88. },
  89. presets: [
  90. [
  91. '@docusaurus/preset-classic',
  92. {
  93. docs: {
  94. sidebarPath: require.resolve('./sidebars.js'),
  95. routeBasePath: 'docs',
  96. path: 'docs',
  97. editUrl:
  98. 'https://github.com/wix/react-native-navigation/edit/master/website'
  99. },
  100. theme: {
  101. customCss: require.resolve('./src/css/custom.css'),
  102. },
  103. },
  104. ],
  105. [
  106. '@docusaurus/preset-classic',
  107. {
  108. docs: {
  109. routeBasePath: 'api',
  110. path: 'api',
  111. sidebarPath: require.resolve('./sidebarsApi.js'),
  112. editUrl:
  113. 'https://github.com/wix/react-native-navigation/edit/master/website'
  114. },
  115. theme: {
  116. customCss: require.resolve('./src/css/custom.css'),
  117. },
  118. },
  119. ]
  120. ],
  121. };