> For the complete documentation index, see [llms.txt](https://gitbook.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gitbook.com/docs/documentation/fr/la-documentation-comme-code/guides.md).

# Guides

Découvrez des guides pour les workflows de documentation as code, GitBook Agent et une documentation prête pour l’IA

GitBook fonctionne avec vos outils et flux de travail existants. Ces guides vous aident à utiliser le code et l’IA pour créer, maintenir et optimiser la documentation.

#### Explorer

<table data-view="cards"><thead><tr><th></th><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><h4><i class="fa-code-branch">:code-branch:</i></h4></td><td><h4>Importer ou migrer du contenu avec Git Sync</h4></td><td>Importez la documentation existante dans GitBook avec Git Sync</td><td><a href="/docs/guides/editing-and-publishing-documentation/import-or-migrate-your-content-to-gitbook-with-git-sync.md">How to import docs with Git Sync</a></td></tr><tr><td><h4><i class="fa-pen-to-square">:pen-to-square:</i></h4></td><td><h4>Rédigez de la documentation avec l’IA</h4></td><td>Utilisez GitBook Agent pour créer et maintenir la documentation</td><td><a href="/docs/guides/editing-and-publishing-documentation/how-to-write-documentation-with-ai.md">How to write documentation with AI</a></td></tr><tr><td><h4><i class="fa-magnifying-glass-chart">:magnifying-glass-chart:</i></h4></td><td><h4>Optimisez la documentation pour la recherche par IA</h4></td><td>Préparez la documentation pour la recherche par IA et l’ingestion par LLM</td><td><a href="/docs/guides/seo-and-llm-optimization/geo-guide.md">How to optimize docs for AI</a></td></tr><tr><td><h4><i class="fa-wand-magic-sparkles">:wand-magic-sparkles:</i></h4></td><td><h4>Simplifiez les flux de travail de documentation avec GitBook Agent</h4></td><td>Utilisez GitBook Agent pour les mises à jour, l’optimisation et les tâches de documentation en masse</td><td><a href="/docs/guides/editing-and-publishing-documentation/gitbook-agent-prompt-examples.md">How to streamline your docs workflow with GitBook Agent</a></td></tr><tr><td><h4><i class="fa-terminal">:terminal:</i></h4></td><td><h4>Créez et publiez un site depuis la ligne de commande</h4></td><td>Utilisez la CLI GitBook pour créer et publier un site</td><td><a href="/docs/guides/editing-and-publishing-documentation/create-and-publish-a-site-from-the-command-line.md">How to publish a docs site with the GitBook CLI</a></td></tr></tbody></table>

#### Guides rapides

<details>

<summary>Configurez Git Sync pour votre dépôt</summary>

Git Sync maintient votre dépôt GitHub ou GitLab synchronisé avec GitBook.

Ce guide explique comment choisir un fournisseur, autoriser GitBook et connecter votre dépôt.

<button type="button" class="button secondary" data-action="ask" data-query="Write a step-by-step guide to setting up Git Sync for a GitHub or GitLab repository. Cover selecting a provider, authorizing GitBook, connecting the repository, and checking the first sync. Include links to the relevant docs pages." data-icon="gitbook-assistant">Ouvrir le guide</button>

</details>

<details>

<summary>Connectez un assistant de codage avec GitBook MCP</summary>

GitBook MCP donne aux assistants de codage compatibles accès à votre contenu GitBook.

Ce guide explique comment connecter le serveur, confirmer l’accès et démarrer une tâche de documentation.

<button type="button" class="button secondary" data-action="ask" data-query="Write a step-by-step guide to connecting a coding assistant to GitBook with GitBook MCP. Cover adding the MCP server, authenticating, confirming access, and starting a documentation task. Include links to the relevant docs pages." data-icon="gitbook-assistant">Ouvrir le guide</button>

</details>

<details>

<summary>Exécutez des workflows de documentation avec la CLI GitBook</summary>

La CLI GitBook vous permet de travailler avec le contenu depuis votre ligne de commande.

Ce guide explique comment se connecter, interroger le contenu et exécuter des workflows de documentation.

<button type="button" class="button secondary" data-action="ask" data-query="Write a step-by-step guide to using the GitBook CLI for documentation workflows. Cover installing the CLI, signing in, querying content, and running a useful workflow. Include links to the relevant docs pages." data-icon="gitbook-assistant">Ouvrir le guide</button>

</details>

<details>

<summary>Donnez des compétences GitBook aux assistants de codage</summary>

Les compétences d’agent donnent aux assistants de codage un contexte sur les fonctionnalités GitBook et les blocs de contenu.

Ce guide explique comment ajouter le fichier de compétences et l’utiliser lors des tâches de documentation.

<button type="button" class="button secondary" data-action="ask" data-query="Write a step-by-step guide to giving a coding assistant GitBook skills. Cover finding the skills file, adding it to the assistant&#x27;s context, and using it for a documentation task. Include links to the relevant docs pages." data-icon="gitbook-assistant">Ouvrir le guide</button>

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://gitbook.com/docs/documentation/fr/la-documentation-comme-code/guides.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
