-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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: results list doesn't display (Uncaught TypeError: e.tags.map is not a function) #3092
Comments
Thanks for reporting. I've looked at your website and you have a ObservationsTags syntaxI've also looked at the entries and most seem to be correct (they contain a lot of tags): ...
{
"location": "rdp/2021/rdp_2021-10-08/#30daymapchallenge-2021",
"tags": [
"30DayMapChallenge",
"Centipede",
"CNIG",
"gouvernance",
"GPS",
"livre",
"Mobilit\u00e9",
"OpenStreetMap",
"PostgreSQL",
"QField",
"QGIS",
"QUADOGEO",
"RTK"
],
"text": "<p></p> <p>Topi Tjukanov lance le #30DayMapChallenge \u00e9dition 2021! Il s\u2019agit de r\u00e9aliser des rendus cartographiques quotidiens sur une p\u00e9riode d\u2019un mois. Ils devront \u00eatre cr\u00e9\u00e9s en suivant la liste de th\u00e8mes pr\u00e9-d\u00e9finie ci-dessous et devront \u00eatre partag\u00e9e sur Twitter en utilisant le hashtag : #30DayMapChallenge. Pour avoir un aper\u00e7u de ce qu\u2019\u00e0 pu faire notre camarade Aur\u00e9lien l\u2019an dernier, vous pouvez vous rendre sur sa page d\u00e9di\u00e9e.</p> <p>Pour ceux qui souhaiteraient suivre le d\u00e9fi sans cr\u00e9er de compte Twitter, vous pourrez simplement suivre le flux des publications par ici.</p> <p></p>",
"title": "30DayMapChallenge 2021"
},
... However, some are broken – they must be defined as an array, not a list of comma-separated values, which is the source of the error you are seeing: ...
{
"location": "",
"tags": "home,g\u00e9omatique,sig,g\u00e9ographie,dataviz,geordp,accueil,geotribu",
"text": "<p>Bienvenue sur le site de Geotribu !</p> <p></p>",
"title": "Bienvenue"
} Prebuilt indexYou seem to be using the Mitigations
I'll add better error/warning messages when building the |
|
Thank you for the detailed answer.
Indeed, it is related to the type of tag values. We're working on a complete overhaul ni a separate PR. Question: why are the tags generated when the tags plugin is not enabled into the mkdocs.yml?
As for the pre-generated index, we had already deactivated it according to the recommendations in the doc. |
I've not reached a final conclusion whether it makes sense or not to integrate tags inside search when the tags plugin is inactive, since tags indexing is subject to the search plugin, but I guess it makes more sense to omit tags when the plugin is not active. It's probably more what you'd expect. I'll add a patch for this later 😊 |
Indeed, we didn't expect to have to take care about our tags without the option enabled. In our mind: not explicitly enabled = disabled. Maybe we're too binary... Thank you for your profesional and comprehensive work. |
Just to follow up on this: we merged our tags clean-up and it works like a charm. FYI, to value this work on tags, I've added support into the RSS plugin (as item categories): https://guts.github.io/mkdocs-rss-plugin/configuration/#item-categories |
Really cool, awesome! I really need to activate the plugin for the new blog section in the docs. |
|
Contribution guidelines
I've found a bug and checked that ...
mkdocs
orreadthedocs
themescustom_dir
,extra_javascript
andextra_css
Description
Search behavior is broken in another fashion than #sear
Downstream issue: geotribu/website#435
Expected behaviour
Search normal behaviour, as described into the documentation or, at least, as for non insiders version.
Actual behaviour
When a user makes a search, the results list doesn't appears, but a console error does:
Steps to reproduce
pip install -U git+https://github.com/squidfunk/mkdocs-material-insiders.git
)Package versions
3.8.10
1.2.2
Version: 7.3.2+insiders.3.1.2
Configuration
System information
The text was updated successfully, but these errors were encountered: