vuepress / core

Vue-Powered Static Site Generator
https://vuepress.vuejs.org
MIT License
2.17k stars 923 forks source link

[Bug report] navbar items ignore their `activeMatch` #1346

Closed jrappen closed 1 year ago

jrappen commented 1 year ago

Description

Support for activeMatch was introduced with vuepress/vuepress-next@ab0c6d1 which is part of vuepress/vuepress-next@v2.0.0-beta.19 and documented at https://v2.vuepress.vuejs.org/reference/default-theme/config.html#navbar.

The described features seem to be ignored.

Used Package Manager

yarn

System Info

System:
    OS: Linux 5.15 Ubuntu 22.04.2 LTS 22.04.2 LTS (Jammy Jellyfish)
    CPU: (2) x64 Intel(R) Xeon(R) Platinum 8272CL CPU @ 2.60GHz
    Memory: 5.86 GB / 6.78 GB
    Shell: 5.1.16 - /bin/bash
  Binaries:
    Node: 20.2.0 - /tmp/yarn--1685569712105-0.20706479216053464/node
    Yarn: 1.22.19 - /tmp/yarn--1685569712105-0.20706479216053464/yarn
    npm: 9.6.6 - /opt/hostedtoolcache/node/20.2.0/x64/bin/npm
  Utilities:
    Git: 2.40.1 - /usr/bin/git
  Browsers:
    Chrome: 113.0.5672.63
    Firefox: 113.0
  npmPackages:
    @vuepress/bundler-vite:  2.0.0-beta.62 
    @vuepress/bundler-webpack: next => 2.0.0-beta.62 
    @vuepress/cli:  2.0.0-beta.62 
    @vuepress/client: next => 2.0.0-beta.62 
    @vuepress/core: next => 2.0.0-beta.62 
    @vuepress/markdown:  2.0.0-beta.62 
    @vuepress/plugin-active-header-links:  2.0.0-beta.62 
    @vuepress/plugin-back-to-top:  2.0.0-beta.62 
    @vuepress/plugin-container:  2.0.0-beta.62 
    @vuepress/plugin-docsearch: Not Found
    @vuepress/plugin-external-link-icon:  2.0.0-beta.62 
    @vuepress/plugin-git:  2.0.0-beta.62 
    @vuepress/plugin-google-analytics: Not Found
    @vuepress/plugin-medium-zoom:  2.0.0-beta.62 
    @vuepress/plugin-nprogress:  2.0.0-beta.62 
    @vuepress/plugin-palette:  2.0.0-beta.62 
    @vuepress/plugin-prismjs:  2.0.0-beta.62 
    @vuepress/plugin-pwa: next => 2.0.0-beta.62 
    @vuepress/plugin-pwa-popup: next => 2.0.0-beta.62 
    @vuepress/plugin-register-components: next => 2.0.0-beta.62 
    @vuepress/plugin-search: next => 2.0.0-beta.62 
    @vuepress/plugin-shiki: Not Found
    @vuepress/plugin-theme-data:  2.0.0-beta.62 
    @vuepress/plugin-toc: next => 2.0.0-beta.62 
    @vuepress/shared:  2.0.0-beta.62 
    @vuepress/theme-default: next => 2.0.0-beta.62 
    @vuepress/utils:  2.0.0-beta.62 
    vue: ^3.2.45 => 3.3.4 
    vue-loader:  17.1.2 
    vue-router:  4.2.2 
    vuepress: next => 2.0.0-beta.62 
    vuepress-vite:  2.0.0-beta.62 
    vuepress-webpack: Not Found
jrappen commented 1 year ago

Disregard, I thought this is used to toggle visibility, but it toggles being highlighted as active. Which makes much more sense now.