Skip to content

Commit

Permalink
feat: add git-driven automated changelogs to every page (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
wescopeland authored Sep 1, 2024
1 parent aa76a91 commit af2a996
Show file tree
Hide file tree
Showing 5 changed files with 1,181 additions and 275 deletions.
1 change: 1 addition & 0 deletions docs/.postcssrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"plugins": {
"tailwindcss/nesting": {},
"tailwindcss": {},
"postcss-flexbugs-fixes": {},
"postcss-preset-env": {
Expand Down
16 changes: 16 additions & 0 deletions docs/.vitepress/config/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { GitChangelog, GitChangelogMarkdownSection } from "@nolebase/vitepress-plugin-git-changelog";
import { defineConfig } from "vitepress";

import { shared } from "./shared";
Expand All @@ -7,9 +8,24 @@ import { es } from "./es";

export default defineConfig({
...shared,

locales: {
root: { label: "English", ...en },
pt: { label: "Português", ...pt },
es: { label: "Español", ...es },
},

vite: {
plugins: [
GitChangelog({
repoURL: () => "https://github.com/RetroAchievements/docs",
}),

GitChangelogMarkdownSection({
sections: {
disableContributors: true,
},
}),
],
},
});
11 changes: 10 additions & 1 deletion docs/.vitepress/theme/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
import DefaultTheme from "vitepress/theme";
import { NolebaseGitChangelogPlugin } from "@nolebase/vitepress-plugin-git-changelog/client";
import "@nolebase/vitepress-plugin-git-changelog/client/style.css";

import "./styles.css";

export { default } from "vitepress/theme";
export default {
extends: DefaultTheme,
enhanceApp({ app }) {
app.use(NolebaseGitChangelogPlugin);
},
};
Loading

0 comments on commit af2a996

Please sign in to comment.