import "@recit/site-stories/styles.css";
import { defineConfig } from "recit/config";
/**
* One file for the site and its Récit stories: the stories of
* ./stories are served under /stories/<slug> (no vite.config.ts needed).
*/
export default defineConfig({
metadata: {
title: "%s | Lorem Ipsum Docs",
description: "Lorem ipsum documentation with Récit stories.",
},
site: {
title: "Lorem Ipsum Docs",
showPoweredBy: false,
},
search: {
type: "pagefind",
},
docs: {
files: ["./docs/**/*.{md,mdx}"],
},
navigation: [
{
type: "category",
label: "Documentation",
items: [{ type: "doc", file: "index" }],
},
{
type: "category",
label: "Stories",
items: [
{
type: "link",
label: "Lorem Ipsum Review",
to: "/stories/lorem-ipsum",
},
// Two decks in one category make a series (plan 39 SO3.2): the
// Contents drawer and the last slide link one to the other
{
type: "link",
label: "Lorem Ipsum Sequel",
to: "/stories/lorem-sequel",
},
],
},
],
redirects: [{ from: "/", to: "/index" }],
// Récit sections
publish: { dir: "./stories", routePrefix: "/stories" },
app: {
productName: "Lorem Ipsum Docs",
identifier: "com.example.loremipsum",
// Android refuses 0.0.0, the default when the package.json has no version
version: "0.1.0",
},
footer: { left: "{title}", right: "{slide} / {total}" },
});