1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208
|
/**
* Copyright (c) 2017-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
// See https://docusaurus.io/docs/site-config for all the possible
// site configuration options.
const siteConfig = {
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
path: '../docs',
routeBasePath: '/',
sidebarPath: require.resolve('./sidebars.js'),
showLastUpdateTime: true,
editUrl: 'https://github.com/reduxjs/react-redux/edit/master/website',
include: [
'{api,introduction,using-react-redux,tutorials}/*.{md,mdx}',
'troubleshooting.md',
], // no other way to exclude node_modules
},
theme: {
customCss: [
require.resolve('./static/css/custom.css'),
require.resolve('./static/css/404.css'),
require.resolve('./static/css/codeblock.css'),
],
},
},
],
],
title: 'React Redux', // Title for your website.
onBrokenLinks: 'throw',
tagline: 'Official React bindings for Redux',
url: 'https://react-redux.js.org', // Your website URL
baseUrl: '/',
// Used for publishing and more
projectName: 'react-redux',
organizationName: 'reduxjs',
// For no header links in the top nav bar -> headerLinks: [],
/* path to images for header/footer */
favicon: 'img/favicon/favicon.ico',
// Add custom scripts here that would be placed in <script> tags.
scripts: [
'/scripts/sidebarScroll.js',
'/scripts/codeblock.js',
{
src: 'https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.0/clipboard.min.js',
async: true,
},
],
// You may provide arbitrary config keys to be used as needed by your
// template. For example, if you need your repo's URL...
customFields: {
repoUrl: 'https://github.com/reduxjs/react-redux',
},
themeConfig: {
metadata: [{ name: 'twitter:card', content: 'summary' }],
prism: {
theme: require('./static/scripts/monokaiTheme.js'),
},
image: 'img/redux-logo-landscape.png',
navbar: {
title: 'React Redux',
logo: {
alt: 'Redux Logo',
src: 'img/redux.svg',
},
items: [
{
to: 'introduction/getting-started',
label: 'Getting Started',
position: 'right',
},
{
to: 'tutorials/quick-start',
label: 'Tutorial',
position: 'right',
},
{
to: 'using-react-redux/connect-mapstate',
label: 'Using React Redux',
position: 'right',
},
{ to: 'api/hooks', label: 'API', position: 'right' },
{
href: 'https://www.github.com/reduxjs/react-redux',
label: 'GitHub',
position: 'right',
className: 'github',
},
{
href: '/introduction/getting-started#help-and-discussion',
label: 'Need help?',
position: 'right',
},
],
},
footer: {
style: 'dark',
logo: {
alt: 'Redux Logo',
src: 'img/redux_white.svg',
},
copyright:
'Copyright (c) 2015-present Dan Abramov and the Redux documentation authors.',
links: [
{
title: 'Docs',
items: [
{
label: 'Introduction',
to: 'introduction/getting-started',
},
{
label: 'Using React Redux',
to: 'using-react-redux/connect-mapstate',
},
{
label: 'API Reference',
to: 'api/hooks',
},
{
label: 'Guides',
to: 'troubleshooting',
},
],
},
{
title: 'Community',
items: [
{
label: 'Stack Overflow',
href: 'https://stackoverflow.com/questions/tagged/react-redux',
},
{
label: 'Discord',
href: 'https://discord.gg/0ZcbPKXt5bZ6au5t',
},
],
},
{
title: 'More',
items: [
{
label: 'GitHub',
href: 'https://github.com/reduxjs/react-redux',
},
{
html: `
<a
class="github-button"
href="https://github.com/reduxjs/react-redux"
data-icon="octicon-star"
data-count-href="/reduxjs/react-redux/stargazers"
data-show-count="true"
data-count-aria-label="# stargazers on GitHub"
aria-label="Star this project on GitHub"
>
Star
</a>
`,
},
{
html: `
<a href="https://www.netlify.com">
<img
src="https://www.netlify.com/img/global/badges/netlify-light.svg"
alt="Deploys by Netlify"
/>
</a>
`,
},
],
},
],
},
algolia: {
appId: ' ',
apiKey: '2d058d216b7fd5d68d481fd48ee72c06',
indexName: 'react-redux',
algoliaOptions: {},
},
},
plugins: [
[
'@dipakparmar/docusaurus-plugin-umami',
/** @type {import('@dipakparmar/docusaurus-plugin-umami').Options} */
({
websiteID: 'e81a2686-96f3-4557-9c03-f584b7e8ab6b',
analyticsDomain: 'redux-docs-umami.up.railway.app',
scriptName: 'script.js',
dataAutoTrack: true,
dataDoNotTrack: true,
dataCache: true,
}),
],
],
}
module.exports = siteConfig
|