From 31ba5192bf3e327f96881f88e8af85ea62510a89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Pereira=20Mu=C3=B1oz?= Date: Fri, 12 Jan 2024 20:56:51 +0100 Subject: [PATCH] Refactor the matcher logic --- README.md | 12 +++++++----- src/constants/index.ts | 2 +- src/custom-sidebar.ts | 39 ++++++++++++++++++++++++++------------- src/types/index.ts | 9 ++++++++- 4 files changed, 42 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index cdf3743..4ec8cd3 100644 --- a/README.md +++ b/README.md @@ -98,7 +98,7 @@ frontend: Depending on the file that you have added to [extra_module_url], you will need to add your configuration in `JSON` or `YAML` format. If you used `custom-sidebar.js` you need to provide the configuration in `JSON` format. If you have used `custom-sidebar-yaml.js` you need to provide the configuration in `YAML` format. -Add a file named `sidebar-order.json` or `sidebar-order.yaml` into your `/www/` directory. It could be easier if you copy the [example sidebar-order.json] or the [example sidebar-order.yaml] file, delete the `id` parameter, and edit it to match your needs. +Add a file named `sidebar-config.json` or `sidebar-config.yaml` into your `/www/` directory. It could be easier if you copy the [example sidebar-order.json] or the [example sidebar-order.yaml] file, delete the `id` parameter, and edit it to match your needs. ### Configuration options @@ -109,14 +109,15 @@ Add a file named `sidebar-order.json` or `sidebar-order.yaml` into your `