Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare docs split for v3 #163

Merged
merged 1 commit into from
Oct 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion website/.vitepress/config.mts
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import { defineConfig } from "vitepress";
import { abbr } from "@mdit/plugin-abbr";
import * as v1 from "../v1/config.mjs";
import * as v2 from "../v2/config.mjs";

// https://vitepress.dev/reference/site-config
export default defineConfig({
title: "Bon",
description: "Generate builders for everything!",
description:
"Next-gen compile-time-checked builder generator, named function's arguments, and more!",

cleanUrls: true,
lastUpdated: true,
Expand All @@ -22,6 +24,8 @@ export default defineConfig({
},
},

srcExclude: ["README.md", "infra/**"],

head: [
["link", { rel: "icon", href: `bon-logo-thumb.png` }],
["meta", { property: "og:image", content: `bon-logo-thumb.png` }],
Expand Down Expand Up @@ -71,6 +75,7 @@ export default defineConfig({

sidebar: {
...v1.sidebars,
...v2.sidebars,
"/guide": [
{
text: "Guide",
Expand Down
4 changes: 2 additions & 2 deletions website/.vitepress/theme/utils/versioning.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { withBase } from "vitepress";

export const latestVersion = "v2";
export const versions = ["v2", "v1"];
export const latestVersion = "v3-rc";
export const versions = ["v3-rc", "v2", "v1"];

export const sectionRoots = {
guide: "guide/overview",
Expand Down
2 changes: 2 additions & 0 deletions website/guide/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ If you can't figure something out, consult the docs and maybe use that search `
## Socials

<table>
<tbody>
<tr>
<td>
<div style="display: flex; align-items: center">
Expand All @@ -293,6 +294,7 @@ If you can't figure something out, consult the docs and maybe use that search `
</td>
<td>Profile of the maintainer. There are only posts about <code>bon</code> and Rust in general here.</td>
</tr>
</tbody>
</table>


Expand Down
Loading