facebook / docusaurus

Easy to maintain open source documentation websites.
https://docusaurus.io
MIT License
56.53k stars 8.48k forks source link

SideBar hide Menu #4909

Closed anasoid closed 3 years ago

anasoid commented 3 years ago

🐛 Bug Report

Description

Sidebar hide the header menu, and i can't click on logo any more.

The problem is reproduced only when working with generated website, when working with" npm start" the problem is not reproduced.

the link to live website is https://jmc.anasoid.org/docs/developers/intro

The repo is https://github.com/anasoid/jmc.anasoid.org

To Reproduce

goto https://jmc.anasoid.org/docs/developers/intro and try to click logo

Actual Behavior

A part of header is hidden by sidebar.

Your Environment

Github action deploy

  gh-release:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2

      - uses: actions/setup-node@v2
        with:
          node-version: '14'

      - uses: webfactory/ssh-agent@v0.5.2
        with:
          ssh-private-key: ${{ secrets.GH_PAGES_DEPLOY }}

      - name: Release to GitHub Pages
        env:
          USE_SSH: true
          GIT_USER: git
        run: |
          git config --global user.email "actions@github.com"
          git config --global user.name "gh-actions"
          if [ -e yarn.lock ]; then
            yarn install --frozen-lockfile
          elif [ -e package-lock.json ]; then
            npm ci
          else
            npm i
          fi
          echo "#################DEPLOY##########################"
            DEPLOYMENT_BRANCH=gh-pages yarn run deploy
anasoid commented 3 years ago

I resolve issue with this commit https://github.com/anasoid/jmc.anasoid.org/commit/75902218a8ab9e9d9c5bd9989b7a9d4f1374383b.

The problem was introduced by "npm audit fix ", i revert to original version.

I add image to see the original problem as will be corrected on live website

image

lex111 commented 3 years ago

This is due to a bug in cssnano (which already fixed), reinstalling website dependencies resolves the problem.