1
0
mirror of https://github.com/snachodog/just-the-docs.git synced 2025-04-13 23:02:22 -06:00
Matt Wang 2dd535c2da
Fix: protect search-data.json file from front matter default for layout ()
Fixes . Prior art: . Otherwise self-explanatory.

To test:

1. First, clone [template repository](https://github.com/just-the-docs/just-the-docs-template/tree/main). Observe that search works.
2. Next, add a default layout to all files
```yml
defaults:
  - scope:
      path: ""
    values:
      layout: "default"
```
3. Observe that search no longer works.
4. Apply this patch
5. Observe that search works again!
2024-05-15 17:06:27 -07:00
..