Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Assorted docs cleanup #1688

Merged
merged 7 commits into from
Feb 22, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Point "API" navbar link at hooks page
  • Loading branch information
markerikson committed Feb 22, 2021
commit 63fef31dfd0141df81b1d4343f8ca4fbf5eeca99
84 changes: 42 additions & 42 deletions website/docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -20,18 +20,18 @@ const siteConfig = {
routeBasePath: '/',
include: [
'{api,introduction,using-react-redux}/*.{md,mdx}',
'troubleshooting.md',
], // no other way to exclude node_modules
'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',
@@ -70,14 +70,14 @@ const siteConfig = {
{
src:
'https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.0/clipboard.min.js',
async: true,
},
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',
repoUrl: 'https://github.com/reduxjs/react-redux'
},
/**
* Note:
@@ -89,50 +89,50 @@ 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: {
title: 'React Redux',
logo: {
alt: 'Redux Logo',
src: 'img/redux.svg',
src: 'img/redux.svg'
},
items: [
{
type: 'docsVersionDropdown',
position: 'left',
position: 'left'
// Do not add the link active class when browsing docs.
},
{
to: 'introduction/quick-start',
label: 'Quick Start',
position: 'right',
position: 'right'
},
{
to: 'using-react-redux/connect-mapstate',
label: 'Using React Redux',
position: 'right',
position: 'right'
},
{ to: 'api/connect', label: 'API', position: 'right' },
{ to: 'api/hooks', label: 'API', position: 'right' },
{
href: 'https://github.com/reduxjs/react-redux',
label: 'GitHub',
position: 'right',
className: 'github',
className: 'github'
},
{
href: '/introduction/quick-start#help-and-discussion',
label: 'Need help?',
position: 'right',
},
],
position: 'right'
}
]
},
footer: {
style: 'dark',
logo: {
alt: 'Redux Logo',
src: 'img/redux_white.svg',
src: 'img/redux_white.svg'
},
copyright:
'Copyright (c) 2015-present Dan Abramov and the Redux documentation authors.',
@@ -142,41 +142,41 @@ const siteConfig = {
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/hooks'
},
{
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/0ZcbPKXt5bZ6au5t',
},
],
href: 'https://discord.gg/0ZcbPKXt5bZ6au5t'
}
]
},
{
title: 'More',
items: [
{
label: 'GitHub',
href: 'https://github.com/reduxjs/react-redux',
href: 'https://github.com/reduxjs/react-redux'
},
{
html: `
@@ -191,7 +191,7 @@ const siteConfig = {
>
Star
</a>
`,
`
},
{
html: `
@@ -201,21 +201,21 @@ const siteConfig = {
alt="Deploys by Netlify"
/>
</a>
`,
},
],
},
],
`
}
]
}
]
},
algolia: {
apiKey: '2d058d216b7fd5d68d481fd48ee72c06',
indexName: 'react-redux',
algoliaOptions: {},
algoliaOptions: {}
},
googleAnalytics: {
trackingID: 'UA-130598673-2',
},
},
trackingID: 'UA-130598673-2'
}
}
}

module.exports = siteConfig