Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

docs: updated website #381

Merged
merged 5 commits into from
Mar 30, 2021
Merged
Show file tree
Hide file tree
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
Next Next commit
chore: updated docusaurus
  • Loading branch information
gorhom committed Mar 30, 2021
commit c181212ae6fd059b205fd4adc490a3829fc66fec
9 changes: 6 additions & 3 deletions website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = {
image: 'img/icon.png',
navbar: {
title: 'Bottom Sheet',
hideOnScroll: true,
hideOnScroll: false,
items: [
{
to: 'modal/',
Expand All @@ -28,8 +28,11 @@ module.exports = {
},
],
},
prism: {
theme: require('prism-react-renderer/themes/dracula'),
},
footer: {
style: 'dark',
copyright: `Copyright © ${new Date().getFullYear()} <a rel="noreferrer" href="https://gorhom.dev/" target="_blank">Mo Gorhom</a>. Built with Docusaurus.`,
},
},
presets: [
Expand All @@ -40,7 +43,7 @@ module.exports = {
sidebarPath: require.resolve('./sidebars.js'),
routeBasePath: '/',
editUrl:
'/~https://github.com/facebook/docusaurus/edit/master/website/',
'/~https://github.com/gorhom/react-native-bottom-sheet/edit/master/website/',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
Expand Down
8 changes: 4 additions & 4 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
"clear": "docusaurus clear"
},
"dependencies": {
"@docusaurus/core": "2.0.0-alpha.69",
"@docusaurus/preset-classic": "2.0.0-alpha.69",
"@docusaurus/core": "2.0.0-alpha.72",
"@docusaurus/preset-classic": "2.0.0-alpha.72",
"@mdx-js/react": "^1.6.21",
"clsx": "^1.1.1",
"react": "^16.8.4",
"react-dom": "^16.8.4"
"react": "^17.0.1",
"react-dom": "^17.0.1"
},
"browserslist": {
"production": [
Expand Down
4 changes: 2 additions & 2 deletions website/sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ module.exports = {
'props',
'methods',
'hooks',
'scrollables',
{
type: 'category',
label: 'Guides',
items: [
'scrollables',
'react-navigation-integration',
'custom-handle',
'custom-backdrop',
'custom-background',
'react-navigation-integration',
],
},
'troubleshooting',
Expand Down