Skip to content

Commit

Permalink
fix: removes smooth scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
tusharf5 committed May 29, 2019
1 parent fcf6453 commit 06307c7
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 19 deletions.
12 changes: 0 additions & 12 deletions packages/docusaurus-1.x/lib/core/Head.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,18 +173,6 @@ class Head extends React.Component {
/>
)}
<script src="/js/scrollSpy.js" />
{this.props.config.smoothScroll && (
<script src="https://unpkg.com/[email protected]/dist/smooth-scroll.polyfills.min.js" />
)}
{this.props.config.smoothScroll && (
<script
dangerouslySetInnerHTML={{
__html: `
// smoothscroll
const scroll = new SmoothScroll('a[href*="#"]');`,
}}
/>
)}
{this.props.config.usePrism && (
<link
rel="stylesheet"
Expand Down
1 change: 0 additions & 1 deletion website-1.x/siteConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ const siteConfig = {
twitterImage: 'img/docusaurus.png',
onPageNav: 'separate',
cleanUrl: true,
smoothScroll: true,
scrollToTop: true,
scrollToTopOptions: {
zIndex: 100,
Expand Down
Binary file removed website-1.x/static/img/smooth-scroll.gif
Binary file not shown.
6 changes: 0 additions & 6 deletions website-1.x/versioned_docs/version-1.10.0/api-site-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -278,12 +278,6 @@ An array of JavaScript sources to load. The values can be either strings or plai

Directories inside which any `CSS` files will not be processed and concatenated to Docusaurus' styles. This is to support static `HTML` pages that may be separate from Docusaurus with completely separate styles.

#### `smoothScroll` [boolean]

Set this to `true` if you want to enable smooth scroll when navigating through TOC sidebar. **[See Image Below]**

![Smooth Scroll](/img/smooth-scroll.gif)

#### `scrollToTop` [boolean]

Set this to `true` if you want to enable the scroll to top button at the bottom of your site.
Expand Down

0 comments on commit 06307c7

Please sign in to comment.