From 038ee96a5b08362eab91203d405065193abfb989 Mon Sep 17 00:00:00 2001 From: Alexandre Macabies Date: Tue, 15 Sep 2020 10:58:53 +0200 Subject: [PATCH] Add OpenSearch specifications for both packages and options. (#190) Fixes #186. --- src/assets/desc-search-options.xml | 10 ++++++++++ src/assets/desc-search-packages.xml | 10 ++++++++++ src/index.html | 5 +++++ webpack.config.js | 4 ++-- 4 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 src/assets/desc-search-options.xml create mode 100644 src/assets/desc-search-packages.xml diff --git a/src/assets/desc-search-options.xml b/src/assets/desc-search-options.xml new file mode 100644 index 0000000..65d3da6 --- /dev/null +++ b/src/assets/desc-search-options.xml @@ -0,0 +1,10 @@ + + + NixOS options + Search NixOS options by name or description. + UTF-8 + https://nixos.org/favicon.png + + https://search.nixos.org/options + diff --git a/src/assets/desc-search-packages.xml b/src/assets/desc-search-packages.xml new file mode 100644 index 0000000..2be2218 --- /dev/null +++ b/src/assets/desc-search-packages.xml @@ -0,0 +1,10 @@ + + + NixOS packages + Search NixOS packages by name or description. + UTF-8 + https://nixos.org/favicon.png + + https://search.nixos.org/packages + diff --git a/src/index.html b/src/index.html index 02f9b58..751e610 100644 --- a/src/index.html +++ b/src/index.html @@ -20,6 +20,11 @@ + + + diff --git a/webpack.config.js b/webpack.config.js index 65e1260..9d4f485 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -38,7 +38,7 @@ var common = { ], resolve: { modules: [path.join(__dirname, "src"), "node_modules"], - extensions: [".js", ".elm", ".scss", ".png"] + extensions: [".js", ".elm", ".scss", ".png", ".xml"] }, module: { rules: [ @@ -70,7 +70,7 @@ var common = { } }, { - test: /\.(ttf|eot|svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/, + test: /\.(ttf|eot|svg|xml)(\?v=[0-9]\.[0-9]\.[0-9])?$/, exclude: [/elm-stuff/, /node_modules/], loader: "file-loader" },