diff --git a/README.md b/README.md index 10dfbad..29a3d30 100644 --- a/README.md +++ b/README.md @@ -1,51 +1,18 @@ -# template-nextjs +# albert-docs -![GitHub last commit (branch)](https://img.shields.io/github/last-commit/betagouv/template/main) -![Libraries.io dependency status for GitHub repo](https://img.shields.io/librariesio/github/betagouv/template) +![GitHub last commit (branch)](https://img.shields.io/github/last-commit/betagouv/albert-docs/main) +![Libraries.io dependency status for GitHub repo](https://img.shields.io/librariesio/github/betagouv/albert-docs) -Template minimal avec Next.js qui intègre les recommandations tech beta.gouv.fr. +Minimalist UI for [albert-API](https://github.com/etalab-ia/albert-api/). Drop documents and query them with LLM. -> ⚠️ Le [Système de Design de l'État](https://www.systeme-de-design.gouv.fr/) s'adresse **uniquement** aux développeurs et aux concepteurs, qu'ils soient agents publics ou prestataires pour des sites Internet de l'État (Ministères, Administrations centrales, Préfectures, Ambassades, etc.). cf [conditions d'utilisation](https://www.systeme-de-design.gouv.fr/utilisation-et-organisation/perimetre-d-application). +## Start -👉 Démo: https://betagouv.github.io/template-nextjs - -## Lancer le code - -Après avoir cloné le projet : - -### Développement - -```bash -yarn # to install dependencies -yarn dev # to run in dev mode -``` - -Point your browser to [http://127.0.0.1:3000/template](http://127.0.0.1:3000/template) and start playing. - -### Tests - -``` -# run unit tests with vitest -yarn test - -# build, serve and launch playwright interactive end-to-end tests -yarn e2e --ui - -# run storybook -yarn storybook +```sh +export ALBERT_API_KEY=xxx +yarn +yarn dev ``` -## Projets connexes - -| projet | description | -| --------------------------------------------------------------------------------------- | ----------------------------------------------------------- | -| [inclusion-numerique/stack](https://github.com/inclusion-numerique/stack) | Stack DSFR + Next.js + OIDC | -| [InseeFrLab/vite-insee-starter](https://github.com/InseeFrLab/vite-insee-starter) | Starter SPA Vite + DSFR + OIDC | -| [betagouv/rails-template](https://github.com/betagouv/rails-template) | Template DSFR pour Ruby on Rails | -| [betagouv/django-template](https://github.com/betagouv/django-template) | Template DSFR pour Django | -| [codegouvfr/eleventy-dsfr](https://github.com/codegouvfr/eleventy-dsfr) | Template DSFR pour [eleventy](https://www.11ty.dev/) | -| [codegouvfr/docsify-dsfr-template](https://github.com/codegouvfr/docsify-dsfr-template) | Template DSFR pour [docsify](https://docsify.js.org/#/) | -| [sneko/dsfr-connect](https://github.com/sneko/dsfr-connect) | Themes DSFR pour bootstrap, vuetify, mui, infima, emails... | -| [laruiss/create-vue-dsfr](https://github.com/laruiss/create-vue-dsfr) | Un starter Vue.js + Nuxt3 + DSFR | -| [socialgouv/template](https://github.com/socialgouv/template) | Version initiale de ce template | +## Related +Projet créé avec [template-nextjs](https://github.com/betagouv/template-nextjs) diff --git a/mdx-components.tsx b/mdx-components.tsx index 03b3b3b..fe94c76 100644 --- a/mdx-components.tsx +++ b/mdx-components.tsx @@ -1,24 +1,25 @@ -import type { MDXComponents } from "mdx/types"; -import Image, { ImageProps } from "next/image"; import Link from "next/link"; import { CallOut } from "@codegouvfr/react-dsfr/CallOut"; import { Table } from "@codegouvfr/react-dsfr/Table"; import { fr } from "@codegouvfr/react-dsfr"; +import { ReactNode } from "react"; +import { MDXComponents } from "mdx/types"; export const mdxComponents = { - h1: ({ children }) =>