From 96bf941751a8460c5cf64027348f05d332e19a20 Mon Sep 17 00:00:00 2001 From: Nick McCurdy Date: Wed, 23 Dec 2020 09:57:53 -0500 Subject: [PATCH] Link directly to #redux on Reactiflux (#1673) --- docs/introduction/quick-start.md | 2 +- docs/introduction/why-use-react-redux.md | 2 +- website/docusaurus.config.js | 80 ++++++++++++------- .../introduction/why-use-react-redux.md | 2 +- .../version-6.x/introduction/quick-start.md | 10 +-- .../introduction/why-use-react-redux.md | 2 +- .../version-7.0/introduction/quick-start.md | 9 +-- .../introduction/why-use-react-redux.md | 2 +- .../version-7.1/introduction/quick-start.md | 9 +-- .../introduction/why-use-react-redux.md | 2 +- .../version-7.2/introduction/quick-start.md | 9 +-- .../introduction/why-use-react-redux.md | 2 +- 12 files changed, 70 insertions(+), 61 deletions(-) diff --git a/docs/introduction/quick-start.md b/docs/introduction/quick-start.md index 372b7b67f..2a60f665a 100644 --- a/docs/introduction/quick-start.md +++ b/docs/introduction/quick-start.md @@ -82,6 +82,6 @@ export default connect(mapStateToProps, mapDispatchToProps)(Counter) ## Help and Discussion -The **[#redux channel](https://discord.gg/reactiflux)** of the **[Reactiflux Discord community](http://www.reactiflux.com)** is our official resource for all questions related to learning and using Redux. Reactiflux is a great place to hang out, ask questions, and learn - come join us! +The **[#redux channel](https://discord.gg/0ZcbPKXt5bZ6au5t)** of the **[Reactiflux Discord community](http://www.reactiflux.com)** is our official resource for all questions related to learning and using Redux. Reactiflux is a great place to hang out, ask questions, and learn - come join us! You can also ask questions on [Stack Overflow](https://stackoverflow.com) using the **[#redux tag](https://stackoverflow.com/questions/tagged/redux)**. diff --git a/docs/introduction/why-use-react-redux.md b/docs/introduction/why-use-react-redux.md index 0cf4e0642..4cefb9f0b 100644 --- a/docs/introduction/why-use-react-redux.md +++ b/docs/introduction/why-use-react-redux.md @@ -83,7 +83,7 @@ As the official binding library for React and Redux, React Redux has a large com ### Community Resources -- Discord channel: [#redux on Reactiflux](https://discord.com/channels/102860784329052160/103538784460615680) ([Reactiflux invite link](https://reactiflux.com)) +- Discord channel: [#redux on Reactiflux](https://discord.gg/0ZcbPKXt5bZ6au5t) ([Reactiflux invite link](https://reactiflux.com)) - Stack Overflow topics: [Redux](https://stackoverflow.com/questions/tagged/redux), [React Redux](https://stackoverflow.com/questions/tagged/redux) - Reddit: [/r/reactjs](https://www.reddit.com/r/reactjs/), [/r/reduxjs](https://www.reddit.com/r/reduxjs/) - GitHub issues (bug reports and feature requests): https://github.com/reduxjs/react-redux/issues diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js index b06f05eae..1942442a6 100644 --- a/website/docusaurus.config.js +++ b/website/docusaurus.config.js @@ -1,4 +1,4 @@ -const { resolve } = require('path'); +const { resolve } = require('path') /** * Copyright (c) 2017-present, Facebook, Inc. * @@ -18,17 +18,20 @@ const siteConfig = { path: '../docs', sidebarPath: require.resolve('./sidebars.json'), routeBasePath: '/', - include: ['{api,introduction,using-react-redux}/*.{md,mdx}', 'troubleshooting.md'], // no other way to exclude node_modules + include: [ + '{api,introduction,using-react-redux}/*.{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') + require.resolve('./static/css/codeblock.css'), ], }, - } - ] + }, + ], ], title: 'React Redux', // Title for your website. onBrokenLinks: 'throw', @@ -65,7 +68,8 @@ const siteConfig = { '/scripts/sidebarScroll.js', '/scripts/codeblock.js', { - src: 'https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.0/clipboard.min.js', + src: + 'https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.0/clipboard.min.js', async: true, }, ], @@ -85,7 +89,7 @@ const siteConfig = { themeConfig: { metadatas: [{ name: 'twitter:card', content: 'summary' }], prism: { - theme: require('./static/scripts/monokaiTheme.js') + theme: require('./static/scripts/monokaiTheme.js'), }, image: 'img/redux-logo-landscape.png', navbar: { @@ -100,11 +104,28 @@ const siteConfig = { position: 'left', // Do not add the link active class when browsing docs. }, - { to: 'introduction/quick-start', label: 'Quick Start', position: 'right' }, - { to: 'using-react-redux/connect-mapstate', label: 'Using React Redux', position: 'right' }, + { + to: 'introduction/quick-start', + label: 'Quick Start', + position: 'right', + }, + { + to: 'using-react-redux/connect-mapstate', + label: 'Using React Redux', + position: 'right', + }, { to: 'api/connect', label: 'API', position: 'right' }, - { href: 'https://www.github.com/reduxjs/react-redux', label: 'GitHub', position: 'right', className: 'github' }, - { href: '/introduction/quick-start#help-and-discussion', label: 'Need help?', position: 'right' } + { + href: 'https://www.github.com/reduxjs/react-redux', + label: 'GitHub', + position: 'right', + className: 'github', + }, + { + href: '/introduction/quick-start#help-and-discussion', + label: 'Need help?', + position: 'right', + }, ], }, footer: { @@ -113,41 +134,42 @@ const siteConfig = { alt: 'Redux Logo', src: 'img/redux_white.svg', }, - copyright: 'Copyright (c) 2015-present Dan Abramov and the Redux documentation authors.', + copyright: + 'Copyright (c) 2015-present Dan Abramov and the Redux documentation authors.', links: [ { title: 'Docs', items: [ { label: 'Introduction', - to: 'introduction/quick-start' + to: 'introduction/quick-start', }, { label: 'Using React Redux', - to: 'using-react-redux/connect-mapstate' + to: 'using-react-redux/connect-mapstate', }, { label: 'API Reference', - to: 'api/connect' + to: 'api/connect', }, { label: 'Guides', - to: 'troubleshooting' - } - ] + to: 'troubleshooting', + }, + ], }, { title: 'Community', items: [ { label: 'Stack Overflow', - href: 'https://stackoverflow.com/questions/tagged/react-redux' + href: 'https://stackoverflow.com/questions/tagged/react-redux', }, { label: 'Discord', - href: 'https://discord.gg/reactiflux', - } - ] + href: 'https://discord.gg/0ZcbPKXt5bZ6au5t', + }, + ], }, { title: 'More', @@ -169,7 +191,7 @@ const siteConfig = { > Star - ` + `, }, { html: ` @@ -179,21 +201,21 @@ const siteConfig = { alt="Deploys by Netlify" /> - ` - } - ] - } + `, + }, + ], + }, ], }, algolia: { apiKey: '2d058d216b7fd5d68d481fd48ee72c06', indexName: 'react-redux', - algoliaOptions: {} + algoliaOptions: {}, }, googleAnalytics: { trackingID: 'UA-130598673-2', }, - } + }, } module.exports = siteConfig diff --git a/website/versioned_docs/version-5.x/introduction/why-use-react-redux.md b/website/versioned_docs/version-5.x/introduction/why-use-react-redux.md index 94fbdc7f0..f801e590f 100644 --- a/website/versioned_docs/version-5.x/introduction/why-use-react-redux.md +++ b/website/versioned_docs/version-5.x/introduction/why-use-react-redux.md @@ -81,7 +81,7 @@ As the official binding library for React and Redux, React-Redux has a large com ### Community Resources -- Discord channel: [#redux on Reactiflux](https://discord.com/channels/102860784329052160/103538784460615680) ([Reactiflux invite link](https://reactiflux.com)) +- Discord channel: [#redux on Reactiflux](https://discord.gg/0ZcbPKXt5bZ6au5t) ([Reactiflux invite link](https://reactiflux.com)) - Stack Overflow topics: [Redux](https://stackoverflow.com/questions/tagged/redux), [React-Redux](https://stackoverflow.com/questions/tagged/redux) - Reddit: [/r/reactjs](https://www.reddit.com/r/reactjs/), [/r/reduxjs](https://www.reddit.com/r/reduxjs/) - GitHub issues (bug reports and feature requests): https://github.com/reduxjs/react-redux/issues diff --git a/website/versioned_docs/version-6.x/introduction/quick-start.md b/website/versioned_docs/version-6.x/introduction/quick-start.md index 78b0b8c5e..f7a5fa60c 100644 --- a/website/versioned_docs/version-6.x/introduction/quick-start.md +++ b/website/versioned_docs/version-6.x/introduction/quick-start.md @@ -63,21 +63,17 @@ import { increment, decrement, reset } from './actionCreators' const mapStateToProps = (state /*, ownProps*/) => { return { - counter: state.counter + counter: state.counter, } } const mapDispatchToProps = { increment, decrement, reset } -export default connect( - mapStateToProps, - mapDispatchToProps -)(Counter) +export default connect(mapStateToProps, mapDispatchToProps)(Counter) ``` - ## Help and Discussion -The **[#redux channel](https://discord.gg/reactiflux)** of the **[Reactiflux Discord community](http://www.reactiflux.com)** is our official resource for all questions related to learning and using Redux. Reactiflux is a great place to hang out, ask questions, and learn - come join us! +The **[#redux channel](https://discord.gg/0ZcbPKXt5bZ6au5t)** of the **[Reactiflux Discord community](http://www.reactiflux.com)** is our official resource for all questions related to learning and using Redux. Reactiflux is a great place to hang out, ask questions, and learn - come join us! You can also ask questions on [Stack Overflow](https://stackoverflow.com) using the **[#redux tag](https://stackoverflow.com/questions/tagged/redux)**. diff --git a/website/versioned_docs/version-6.x/introduction/why-use-react-redux.md b/website/versioned_docs/version-6.x/introduction/why-use-react-redux.md index e47a0b45b..7e16b7dd1 100644 --- a/website/versioned_docs/version-6.x/introduction/why-use-react-redux.md +++ b/website/versioned_docs/version-6.x/introduction/why-use-react-redux.md @@ -83,7 +83,7 @@ As the official binding library for React and Redux, React Redux has a large com ### Community Resources -- Discord channel: [#redux on Reactiflux](https://discord.com/channels/102860784329052160/103538784460615680) ([Reactiflux invite link](https://reactiflux.com)) +- Discord channel: [#redux on Reactiflux](https://discord.gg/0ZcbPKXt5bZ6au5t) ([Reactiflux invite link](https://reactiflux.com)) - Stack Overflow topics: [Redux](https://stackoverflow.com/questions/tagged/redux), [React Redux](https://stackoverflow.com/questions/tagged/redux) - Reddit: [/r/reactjs](https://www.reddit.com/r/reactjs/), [/r/reduxjs](https://www.reddit.com/r/reduxjs/) - GitHub issues (bug reports and feature requests): https://github.com/reduxjs/react-redux/issues diff --git a/website/versioned_docs/version-7.0/introduction/quick-start.md b/website/versioned_docs/version-7.0/introduction/quick-start.md index a43891fb8..9df6d9aed 100644 --- a/website/versioned_docs/version-7.0/introduction/quick-start.md +++ b/website/versioned_docs/version-7.0/introduction/quick-start.md @@ -63,20 +63,17 @@ import { increment, decrement, reset } from './actionCreators' const mapStateToProps = (state /*, ownProps*/) => { return { - counter: state.counter + counter: state.counter, } } const mapDispatchToProps = { increment, decrement, reset } -export default connect( - mapStateToProps, - mapDispatchToProps -)(Counter) +export default connect(mapStateToProps, mapDispatchToProps)(Counter) ``` ## Help and Discussion -The **[#redux channel](https://discord.gg/reactiflux)** of the **[Reactiflux Discord community](http://www.reactiflux.com)** is our official resource for all questions related to learning and using Redux. Reactiflux is a great place to hang out, ask questions, and learn - come join us! +The **[#redux channel](https://discord.gg/0ZcbPKXt5bZ6au5t)** of the **[Reactiflux Discord community](http://www.reactiflux.com)** is our official resource for all questions related to learning and using Redux. Reactiflux is a great place to hang out, ask questions, and learn - come join us! You can also ask questions on [Stack Overflow](https://stackoverflow.com) using the **[#redux tag](https://stackoverflow.com/questions/tagged/redux)**. diff --git a/website/versioned_docs/version-7.0/introduction/why-use-react-redux.md b/website/versioned_docs/version-7.0/introduction/why-use-react-redux.md index e47a0b45b..7e16b7dd1 100644 --- a/website/versioned_docs/version-7.0/introduction/why-use-react-redux.md +++ b/website/versioned_docs/version-7.0/introduction/why-use-react-redux.md @@ -83,7 +83,7 @@ As the official binding library for React and Redux, React Redux has a large com ### Community Resources -- Discord channel: [#redux on Reactiflux](https://discord.com/channels/102860784329052160/103538784460615680) ([Reactiflux invite link](https://reactiflux.com)) +- Discord channel: [#redux on Reactiflux](https://discord.gg/0ZcbPKXt5bZ6au5t) ([Reactiflux invite link](https://reactiflux.com)) - Stack Overflow topics: [Redux](https://stackoverflow.com/questions/tagged/redux), [React Redux](https://stackoverflow.com/questions/tagged/redux) - Reddit: [/r/reactjs](https://www.reddit.com/r/reactjs/), [/r/reduxjs](https://www.reddit.com/r/reduxjs/) - GitHub issues (bug reports and feature requests): https://github.com/reduxjs/react-redux/issues diff --git a/website/versioned_docs/version-7.1/introduction/quick-start.md b/website/versioned_docs/version-7.1/introduction/quick-start.md index 2a06ee7db..22083490b 100644 --- a/website/versioned_docs/version-7.1/introduction/quick-start.md +++ b/website/versioned_docs/version-7.1/introduction/quick-start.md @@ -63,20 +63,17 @@ import { increment, decrement, reset } from './actionCreators' const mapStateToProps = (state /*, ownProps*/) => { return { - counter: state.counter + counter: state.counter, } } const mapDispatchToProps = { increment, decrement, reset } -export default connect( - mapStateToProps, - mapDispatchToProps -)(Counter) +export default connect(mapStateToProps, mapDispatchToProps)(Counter) ``` ## Help and Discussion -The **[#redux channel](https://discord.gg/reactiflux)** of the **[Reactiflux Discord community](http://www.reactiflux.com)** is our official resource for all questions related to learning and using Redux. Reactiflux is a great place to hang out, ask questions, and learn - come join us! +The **[#redux channel](https://discord.gg/0ZcbPKXt5bZ6au5t)** of the **[Reactiflux Discord community](http://www.reactiflux.com)** is our official resource for all questions related to learning and using Redux. Reactiflux is a great place to hang out, ask questions, and learn - come join us! You can also ask questions on [Stack Overflow](https://stackoverflow.com) using the **[#redux tag](https://stackoverflow.com/questions/tagged/redux)**. diff --git a/website/versioned_docs/version-7.1/introduction/why-use-react-redux.md b/website/versioned_docs/version-7.1/introduction/why-use-react-redux.md index fab9ffab3..07727f38a 100644 --- a/website/versioned_docs/version-7.1/introduction/why-use-react-redux.md +++ b/website/versioned_docs/version-7.1/introduction/why-use-react-redux.md @@ -83,7 +83,7 @@ As the official binding library for React and Redux, React Redux has a large com ### Community Resources -- Discord channel: [#redux on Reactiflux](https://discord.com/channels/102860784329052160/103538784460615680) ([Reactiflux invite link](https://reactiflux.com)) +- Discord channel: [#redux on Reactiflux](https://discord.gg/0ZcbPKXt5bZ6au5t) ([Reactiflux invite link](https://reactiflux.com)) - Stack Overflow topics: [Redux](https://stackoverflow.com/questions/tagged/redux), [React Redux](https://stackoverflow.com/questions/tagged/redux) - Reddit: [/r/reactjs](https://www.reddit.com/r/reactjs/), [/r/reduxjs](https://www.reddit.com/r/reduxjs/) - GitHub issues (bug reports and feature requests): https://github.com/reduxjs/react-redux/issues diff --git a/website/versioned_docs/version-7.2/introduction/quick-start.md b/website/versioned_docs/version-7.2/introduction/quick-start.md index 425147107..5c1354ca7 100644 --- a/website/versioned_docs/version-7.2/introduction/quick-start.md +++ b/website/versioned_docs/version-7.2/introduction/quick-start.md @@ -63,20 +63,17 @@ import { increment, decrement, reset } from './actionCreators' const mapStateToProps = (state /*, ownProps*/) => { return { - counter: state.counter + counter: state.counter, } } const mapDispatchToProps = { increment, decrement, reset } -export default connect( - mapStateToProps, - mapDispatchToProps -)(Counter) +export default connect(mapStateToProps, mapDispatchToProps)(Counter) ``` ## Help and Discussion -The **[#redux channel](https://discord.gg/reactiflux)** of the **[Reactiflux Discord community](http://www.reactiflux.com)** is our official resource for all questions related to learning and using Redux. Reactiflux is a great place to hang out, ask questions, and learn - come join us! +The **[#redux channel](https://discord.gg/0ZcbPKXt5bZ6au5t)** of the **[Reactiflux Discord community](http://www.reactiflux.com)** is our official resource for all questions related to learning and using Redux. Reactiflux is a great place to hang out, ask questions, and learn - come join us! You can also ask questions on [Stack Overflow](https://stackoverflow.com) using the **[#redux tag](https://stackoverflow.com/questions/tagged/redux)**. diff --git a/website/versioned_docs/version-7.2/introduction/why-use-react-redux.md b/website/versioned_docs/version-7.2/introduction/why-use-react-redux.md index 0cf4e0642..4cefb9f0b 100644 --- a/website/versioned_docs/version-7.2/introduction/why-use-react-redux.md +++ b/website/versioned_docs/version-7.2/introduction/why-use-react-redux.md @@ -83,7 +83,7 @@ As the official binding library for React and Redux, React Redux has a large com ### Community Resources -- Discord channel: [#redux on Reactiflux](https://discord.com/channels/102860784329052160/103538784460615680) ([Reactiflux invite link](https://reactiflux.com)) +- Discord channel: [#redux on Reactiflux](https://discord.gg/0ZcbPKXt5bZ6au5t) ([Reactiflux invite link](https://reactiflux.com)) - Stack Overflow topics: [Redux](https://stackoverflow.com/questions/tagged/redux), [React Redux](https://stackoverflow.com/questions/tagged/redux) - Reddit: [/r/reactjs](https://www.reddit.com/r/reactjs/), [/r/reduxjs](https://www.reddit.com/r/reduxjs/) - GitHub issues (bug reports and feature requests): https://github.com/reduxjs/react-redux/issues