From bee94bcae44594ee8e8b702fef0b36f8920a3e5b Mon Sep 17 00:00:00 2001
From: delucis
Date: Tue, 6 Feb 2024 14:23:43 +0000
Subject: [ci] format
---
docs/src/content/docs/it/guides/site-search.mdx | 67 ++++++++++++-------------
1 file changed, 33 insertions(+), 34 deletions(-)
diff --git a/docs/src/content/docs/it/guides/site-search.mdx b/docs/src/content/docs/it/guides/site-search.mdx
index 6bc788f1..199474d3 100644
--- a/docs/src/content/docs/it/guides/site-search.mdx
+++ b/docs/src/content/docs/it/guides/site-search.mdx
@@ -37,7 +37,7 @@ Questo testo sarà ricercabile.
-Questo testo sarà nascosto dalla ricerca.
+Questo testo sarà nascosto dalla ricerca.
```
@@ -50,58 +50,58 @@ Se hai accesso al programma [Algolia's DocSearch](https://docsearch.algolia.com/
1. Installa `@astrojs/starlight-docsearch`:
-
+
-
+
- ```sh
- npm install @astrojs/starlight-docsearch
- ```
+ ```sh
+ npm install @astrojs/starlight-docsearch
+ ```
-
+
-
+
- ```sh
- pnpm add @astrojs/starlight-docsearch
- ```
+ ```sh
+ pnpm add @astrojs/starlight-docsearch
+ ```
-
+
-
+
- ```sh
- yarn add @astrojs/starlight-docsearch
- ```
+ ```sh
+ yarn add @astrojs/starlight-docsearch
+ ```
-
+
-
+
2. Aggiungi DocSearch alla configurazione [`plugins`](/it/reference/configuration/#plugins) di Starlight in `astro.config.mjs` e passagli il tuo `appId`, `apiKey` e `indexName` di Algolia:
- ```js ins={4,10-16}
+ ```js ins={4,10-16}
// astro.config.mjs
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
import starlightDocSearch from '@astrojs/starlight-docsearch';
-
+
export default defineConfig({
- integrations: [
- starlight({
- title: 'Sito con DocSearch',
- plugins: [
- starlightDocSearch({
- appId: 'TUO_APP_ID',
- apiKey: 'TUA_API_KEY_DI_RICERCA',
- indexName: 'TUO_NOME_INDICE'
- }),
- ],
- }),
- ],
+ integrations: [
+ starlight({
+ title: 'Sito con DocSearch',
+ plugins: [
+ starlightDocSearch({
+ appId: 'TUO_APP_ID',
+ apiKey: 'TUA_API_KEY_DI_RICERCA',
+ indexName: 'TUO_NOME_INDICE',
+ }),
+ ],
+ }),
+ ],
});
```
-
+
Con questa configurazione aggiornata, la barra di ricerca nel tuo sito aprirà ora una schermata Algolia invece della schermata di ricerca predefinita.
#### Traduzione dell'interfaccia utente di DocSearch
@@ -162,4 +162,3 @@ Aggiungi traduzioni della UI della schermata per la tua lingua utilizzando il [s
"docsearch.noResultsScreen.reportMissingResultsLinkText": "Let us know."
}
```
-
\ No newline at end of file
--
cgit