doublesecretagency / craft-googlemaps

Google Maps plugin for Craft CMS - Maps in minutes. Powered by the Google Maps API.
https://plugins.doublesecretagency.com/google-maps/
Other
10 stars 8 forks source link

Improve/replace the documentation search engine #15

Open engram-design opened 3 years ago

engram-design commented 3 years ago

I managed to figure it out, but the docs search didn't bring anything up for directions.

image

{# Old #}
{% set directionsUrl = entry.addressField.directionsUrl(entry.title) %}

{# New #}
{% set directionsUrl = entry.addressField.linkToDirections({ title: entry.title }) %}
lindseydiloreto commented 3 years ago

Good catch. Looks like Vuepress doesn't index code snippets. I'll add the word "directions" to the description.

Thanks for the heads up! 👍

lindseydiloreto commented 3 years ago

So not only does Vuepress not index code snippets, apparently it doesn't index anything that isn't an <h*> level header.

article@2x

Which makes more sense, because I was already able to find the word "directions" in an existing paragraph...

directions@2x

I'm going to do a little more research to figure out if there's a better search mechanism for the Vuepress docs.

Thanks for bringing this to my attention!