8000 fix(theme-classic): temporarily disable toc heading autoscrolling by slorber · Pull Request #6748 · facebook/docusaurus · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix(theme-classic): temporarily disable toc heading autoscrolling #6748

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

Merged
merged 1 commit into from
Feb 24, 2022

Conversation

slorber
Copy link
Collaborator
@slorber slorber commented Feb 23, 2022

Motivation

This change (#6317) led to issues, for which we don't have a perfect solution yet.

Let's disable this temporarily so that next release does not have the bugs, we'll reapply it properly later.

See

Have you read the Contributing Guidelines on pull requests?

yes

Test Plan

preview, basic revert

@slorber slorber added the pr: bug fix This PR fixes a bug in a past release. label Feb 23, 2022
@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Feb 23, 2022
@netlify
Copy link
netlify bot commented Feb 23, 2022

✔️ [V2]

🔨 Explore the source changes: ec87470

🔍 Inspect the deploy log: https://app.netlify.com/sites/docusaurus-2/deploys/62165b987d4df00007fe06ec

😎 Browse the preview: https://deploy-preview-6748--docusaurus-2.netlify.app

@github-actions
Copy link

⚡️ Lighthouse report for the changes in this PR:

Category Score
🟠 Performance 54
🟢 Accessibility 100
🟢 Best practices 92
🟢 SEO 100
🟢 PWA 90

Lighthouse ran on https://deploy-preview-6748--docusaurus-2.netlify.app/

@github-actions
Copy link

Size Change: -36 B (0%)

Total Size: 782 kB

Filename Size Change
website/build/assets/js/main.********.js 591 kB -36 B (0%)
ℹ️ View Unchanged
Filename Size
website/.docusaurus/globalData.json 48 kB
website/build/assets/css/styles.********.css 106 kB
website/build/index.html 37.6 kB

compressed-size-action

@slorber slorber merged commit 8956022 into main Feb 24, 2022
@slorber slorber deleted the slorber/disable-toc-autoscroll branch February 24, 2022 10:28
cmpadden added a commit to dagster-io/dagster that referenced this pull request Mar 20, 2025
## Summary & Motivation

Closes DOC-888.

Introduces plugin to automatically `scrollIntoView()`the active left
sidebar item.

```
plugins: [
  require.resolve('./src/plugins/sidebar-scroll-into-view'),
],
``` 

This is a temporary workaround until it is re-introduced upstream
(pending since 2022): [see source
code](https://github.com/facebook/docusaurus/blob/f31bfec3c9a7e9e032a36ccd9b405b0e2c2f6957/packages/docusaurus-theme-common/src/hooks/useTOCHighlight.ts#L158).

* facebook/docusaurus#6748
* facebook/docusaurus#6319
* facebook/docusaurus#7980

## How I Tested These Changes

Confirmed working as expected on localhost.

## Changelog

- [docs] automatically scroll left sidebar into view on direct link to
documentation
prha pushed a commit to dagster-io/dagster that referenced this pull request Mar 21, 2025
## Summary & Motivation

Closes DOC-888.

Introduces plugin to automatically `scrollIntoView()`the active left
sidebar item.

```
plugins: [
  require.resolve('./src/plugins/sidebar-scroll-into-view'),
],
``` 

This is a temporary workaround until it is re-introduced upstream
(pending since 2022): [see source
code](https://github.com/facebook/docusaurus/blob/f31bfec3c9a7e9e032a36ccd9b405b0e2c2f6957/packages/docusaurus-theme-common/src/hooks/useTOCHighlight.ts#L158).

* facebook/docusaurus#6748
* facebook/docusaurus#6319
* facebook/docusaurus#7980

## How I Tested These Changes

Confirmed working as expected on localhost.

## Changelog

- [docs] automatically scroll left sidebar into view on direct link to
documentation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Signed Facebook CLA pr: bug fix This PR fixes a bug in a past release.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[bug] scroll-behavior: smooth not working together with TOC anchor nav in 2.0.0-beta.15
3 participants
0