question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Japanese search is broken after v4.0.1

See original GitHub issue

Description

The Japanese/Chinese search is no longer working for mkdocs-material v4.0.2. But the behaviors are as expected for v4.0.1 and earlier versions.

I believe this unexpected behavior is related to the update of lunr-languages, or some DOM behavior changes of the search box. But I have not figured it out yet.

Expected behavior

expected

Actual behavior

actual

And strangely the hint is saying “Type to start searching”, not “No matching document”.

Steps to reproduce the bug

  1. Update your mkdocs-material to v4.0.2
  2. It starts to fail working as expected.

Package versions

  • Python: 3.7.1
  • MkDocs: 1.0.4
  • Material: 4.0.2

Project configuration

theme:
  name: 'material'
  language: 'zh'
  palette:
    primary: 'red'
    accent:  'red'
  font:
    text: "Roboto"
extra:
  search:
    language: 'en, jp'

System information

  • OS: Deepin 15.9.1 Desktop x64
  • Browser: Chrome 70.0.3538.77

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
celestialphineascommented, Mar 11, 2019

It is not related to python-markdown-math either. I ran the original official docker with no math configuration and it is still not working. So the problem might be with some other markdown extensions.

$ docker run --rm -it --network host -v /media/celestialphineas/36303C04303BCA1F/development/ckcers-tutorial:/docs squidfunk/mkdocs-material serve
INFO    -  Building documentation... 
INFO    -  Cleaning site directory 
[I 190311 13:23:25 server:298] Serving on http://127.0.0.1:8000
[I 190311 13:23:25 handlers:59] Start watching changes
[I 190311 13:23:25 handlers:61] Start detecting changes
[I 190311 13:23:30 handlers:132] Browser Connected: http://localhost:8000/

Diff of the extention configuration:

markdown_extensions:
  - admonition
  - codehilite
  - footnotes
  - meta
  - toc:
      permalink: true
  - pymdownx.arithmatex
  - pymdownx.betterem:
      smart_enable: all
  - pymdownx.caret
  - pymdownx.critic
  - pymdownx.emoji:
      emoji_generator: !!python/name:pymdownx.emoji.to_svg
  - pymdownx.inlinehilite
  - pymdownx.magiclink
  - pymdownx.mark
  - pymdownx.smartsymbols
  - pymdownx.superfences
  - pymdownx.tasklist:
      custom_checkbox: true
  - pymdownx.tilde
  # - mdx_math
0reactions
celestialphineascommented, Mar 14, 2019

I’m afraid I was building mkdocs-material in an improper way. Some JS scripts are missing when running mkdocs serve (see my comment above).

Thank you so much for the bug fix, Martin. If you find it is working alright, just draft new release and I’ll check it out in the new release right away.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Japanese bond yields continue to rise after Bank of Japan ...
The dollar gained 0.1 per cent against a basket of peers, with the renminbi declining 0.1 per cent to trade at Rmb6.969 and...
Read more >
Unexplained Windows or software behavior may be caused ...
Describes behavior that may occur if your computer has deceptive software that is installed and running, and describes steps that you can take...
Read more >
Changelog - Material for MkDocs - GitHub Pages
Deprecated prebuilding of search index; Improved graceful handling of broken search for file:// Added minimum Jinja version to list of requirements ...
Read more >
iNEWS v4.0.1 ReadMe - Avid Technology
Version 4.0.1 ReadMe ... Note: Search the Avid Knowledge Base ... Note: Since this release of iNEWS will be more widely distributed than ......
Read more >
macOS Ventura - Apple
You can even use Live Text to search for an image based on text inside it. New search design. Richer search results bring...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found