Skip to content
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

Search in new version 8.0.x not working #3324

Closed
5 tasks done
ladisone opened this issue Dec 9, 2021 · 2 comments
Closed
5 tasks done

Search in new version 8.0.x not working #3324

ladisone opened this issue Dec 9, 2021 · 2 comments
Labels
needs reproduction Issue lacks a minimal reproduction .zip file

Comments

@ladisone
Copy link

ladisone commented Dec 9, 2021

Contribution guidelines

I've found a bug and checked that ...

  • ... the problem doesn't occur with the mkdocs or readthedocs themes
  • ... the problem persists when all overrides are removed, i.e. custom_dir, extra_javascript and extra_css
  • ... the documentation does not mention anything about my problem
  • ... there are no open or closed issues that are related to my problem

Description

If I write to the search form no results are displayed.

Expected behaviour

Show results as you type in the search form.

Actual behaviour

If I write to the search form no results are displayed.

Steps to reproduce

Write to the search form.

Package versions

  • Python: 3.9.7
  • MkDocs: 1.2.3
  • Material: 8.0.5

Configuration

theme:
  name: 'material'
  palette:
    - media: "(prefers-color-scheme: light)"
      scheme: default
      primary: red
      accent: red
      toggle:
        icon: material/weather-night
        name: Switch to dark mode
    - media: "(prefers-color-scheme: dark)"
      scheme: slate
      primary: red
      accent: red
      toggle:
        icon: material/weather-sunny
        name: Switch to light mode

markdown_extensions:
    - abbr
    - admonition
    - codehilite
    - attr_list
    - def_list
    - pymdownx.details:
    - pymdownx.magiclink:
    - pymdownx.mark:
    - pymdownx.superfences:
    - pymdownx.inlinehilite:
    - pymdownx.tasklist:
        clickable_checkbox: True
        custom_checkbox: True
    - pymdownx.snippets:
    - pymdownx.tabbed:
    - pymdownx.keys:
    - pymdownx.emoji:
        emoji_index: !!python/name:materialx.emoji.twemoji
        emoji_generator: !!python/name:materialx.emoji.to_svg

System information

  • Operating system: Fedora release 34 (Thirty Four)
  • Browser: Chrome Version 96.0.4664.45 (Official Build) (64-bit)
@squidfunk
Copy link
Owner

squidfunk commented Dec 9, 2021

Thanks for reporting. However, it's pretty hard to give guidance with the little information you gave us. Please provide more information. "Not working" is nothing we can help you with. For example, what was the last version that worked for you? Are you serving from file://?

@squidfunk squidfunk added the needs input Issue needs further input by the reporter label Dec 9, 2021
@squidfunk
Copy link
Owner

squidfunk commented Dec 9, 2021

I have just tested with a clean installation. Search works fine.

squidfunk@squidfunk:~/<redacted>/mkdocs-material-test > virtualenv venv    
created virtual environment CPython3.8.11.final.0-64 in 884ms
  creator CPython3Posix(dest=/Users/squidfunk/<redacted>/mkdocs-material-test/venv, clear=False, global=False)
  seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/Users/squidfunk/Library/Application Support/virtualenv)
    added seed packages: pip==21.3, setuptools==58.2.0, wheel==0.37.0
  activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator
squidfunk@squidfunk:~/<redacted>/mkdocs-material-test > . ./venv/bin/activate
(venv) squidfunk@squidfunk:~/<redacted>/mkdocs-material-test > pip install mkdocs-material                      
Collecting mkdocs-material
  Downloading mkdocs_material-8.0.5-py2.py3-none-any.whl (4.5 MB)
     |████████████████████████████████| 4.5 MB 3.4 MB/s            
Collecting pymdown-extensions>=9.0
  Downloading pymdown_extensions-9.1-py3-none-any.whl (215 kB)
     |████████████████████████████████| 215 kB 3.4 MB/s            
Collecting pygments>=2.10
  Using cached Pygments-2.10.0-py3-none-any.whl (1.0 MB)
Collecting markdown>=3.2
  Downloading Markdown-3.3.6-py3-none-any.whl (97 kB)
     |████████████████████████████████| 97 kB 4.3 MB/s            
Collecting mkdocs>=1.2.3
  Using cached mkdocs-1.2.3-py3-none-any.whl (6.4 MB)
Collecting jinja2>=2.11.1
  Downloading Jinja2-3.0.3-py3-none-any.whl (133 kB)
     |████████████████████████████████| 133 kB 3.9 MB/s            
Collecting mkdocs-material-extensions>=1.0
  Using cached mkdocs_material_extensions-1.0.3-py3-none-any.whl (8.1 kB)
Collecting MarkupSafe>=2.0
  Using cached MarkupSafe-2.0.1-cp38-cp38-macosx_10_9_x86_64.whl (13 kB)
Collecting importlib-metadata>=4.4
  Downloading importlib_metadata-4.8.2-py3-none-any.whl (17 kB)
Collecting ghp-import>=1.0
  Using cached ghp_import-2.0.2-py3-none-any.whl (11 kB)
Collecting click>=3.3
  Downloading click-8.0.3-py3-none-any.whl (97 kB)
     |████████████████████████████████| 97 kB 1.1 MB/s            
Collecting pyyaml-env-tag>=0.1
  Using cached pyyaml_env_tag-0.1-py3-none-any.whl (3.9 kB)
Collecting PyYAML>=3.10
  Downloading PyYAML-6.0-cp38-cp38-macosx_10_9_x86_64.whl (192 kB)
     |████████████████████████████████| 192 kB 3.4 MB/s            
Collecting mergedeep>=1.3.4
  Using cached mergedeep-1.3.4-py3-none-any.whl (6.4 kB)
Collecting watchdog>=2.0
  Using cached watchdog-2.1.6-cp38-cp38-macosx_10_9_x86_64.whl (85 kB)
Collecting packaging>=20.5
  Downloading packaging-21.3-py3-none-any.whl (40 kB)
     |████████████████████████████████| 40 kB 4.0 MB/s            
Collecting python-dateutil>=2.8.1
  Using cached python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
Collecting zipp>=0.5
  Using cached zipp-3.6.0-py3-none-any.whl (5.3 kB)
Collecting pyparsing!=3.0.5,>=2.0.2
  Downloading pyparsing-3.0.6-py3-none-any.whl (97 kB)
     |████████████████████████████████| 97 kB 4.6 MB/s            
Collecting six>=1.5
  Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Installing collected packages: zipp, six, PyYAML, python-dateutil, pyparsing, MarkupSafe, importlib-metadata, watchdog, pyyaml-env-tag, packaging, mergedeep, markdown, jinja2, ghp-import, click, pymdown-extensions, pygments, mkdocs-material-extensions, mkdocs, mkdocs-material
Successfully installed MarkupSafe-2.0.1 PyYAML-6.0 click-8.0.3 ghp-import-2.0.2 importlib-metadata-4.8.2 jinja2-3.0.3 markdown-3.3.6 mergedeep-1.3.4 mkdocs-1.2.3 mkdocs-material-8.0.5 mkdocs-material-extensions-1.0.3 packaging-21.3 pygments-2.10.0 pymdown-extensions-9.1 pyparsing-3.0.6 python-dateutil-2.8.2 pyyaml-env-tag-0.1 six-1.16.0 watchdog-2.1.6 zipp-3.6.0
WARNING: You are using pip version 21.3; however, version 21.3.1 is available.
You should consider upgrading via the '/Users/squidfunk/<redacted>/mkdocs-material-test/venv/bin/python -m pip install --upgrade pip' command.
(venv) squidfunk@squidfunk:~/<redacted>/mkdocs-material-test > mkdocs new .                             
INFO     -  Writing config file: ./mkdocs.yml
INFO     -  Writing initial docs: ./docs/index.md
(venv) squidfunk@squidfunk:~/<redacted>/mkdocs-material-test > echo "theme:\n  name: material" >> mkdocs.yml           
(venv) squidfunk@squidfunk:~/<redacted>/mkdocs-material-test > mkdocs serve                             
INFO     -  Building documentation...
INFO     -  Cleaning site directory
INFO     -  Documentation built in 0.26 seconds
INFO     -  [15:45:13] Serving on http://127.0.0.1:8000/
INFO     -  [15:45:15] Browser connected: http://localhost:8000/

screenshot-localhost-8000-1639061274066

@squidfunk squidfunk added needs reproduction Issue lacks a minimal reproduction .zip file and removed needs input Issue needs further input by the reporter labels Dec 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs reproduction Issue lacks a minimal reproduction .zip file
Projects
None yet
Development

No branches or pull requests

2 participants