Skip to content

feat(website): Add docs hash routing, optimize markdown component.#233

Merged
LittleLittleCloud merged 4 commits intoRazorConsole:mainfrom
TeseySTD:feat/website-scrolling
Dec 3, 2025
Merged

feat(website): Add docs hash routing, optimize markdown component.#233
LittleLittleCloud merged 4 commits intoRazorConsole:mainfrom
TeseySTD:feat/website-scrolling

Conversation

@TeseySTD
Copy link
Member

@TeseySTD TeseySTD commented Dec 2, 2025

Description

This PR resolves issues with documentation navigation, sidebar fixation, and rendering performance.

Key Changes:

  1. Hash Scrolling: Added hash scrolling in Docs page via markdown headers. Integrated github-slugger for heading ID generation.
  2. Markdown Optimization: Wrapped the MarkdownRenderer component in React.memo and moved plugin configuration outside the component. This eliminates content "flickering" (unnecessary re-renders) when expanding menu items.
  3. Sidebar Fixation: Fixed CSS in index.css by replacing overflow-x: hidden with overflow-x: clip for html/body and removing overflow from #root. This allows position: sticky to work correctly for the navigation menu.
  4. Scroll to top: When route changes page automatically scroll to top.

@github-actions
Copy link

github-actions bot commented Dec 2, 2025

🚀 Preview Deployment

A preview build has been generated for this PR from CI run #19874931531!

Download the artifact:
website-preview-233-39fd04ae3ff9052a7c833270f68466b515463898

To view the preview locally:

  1. Download the artifact from the CI workflow run
  2. Extract the ZIP file
  3. Serve the files with a local web server
    (e.g., npx serve dist)

🌐 Live Preview URL: https://2d497f1a.razorconsole.pages.dev

The live preview will be automatically updated when you push new
commits to this PR.

@TeseySTD TeseySTD changed the title feat(website): Fix docs sidebar navigation, scrolling, and markdown. feat(website): Add docs hash routing, optimize markdown component. Dec 2, 2025
@LittleLittleCloud
Copy link
Member

Looks pretty nice, thanks

@LittleLittleCloud LittleLittleCloud merged commit a99ff55 into RazorConsole:main Dec 3, 2025
6 checks passed
@github-actions github-actions bot added this to the v0.2.2 milestone Dec 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants