Skip to content

Commit 3db7cc1

Browse files
committed
upgrade docs
1 parent 79938f2 commit 3db7cc1

File tree

5 files changed

+4941
-3047
lines changed

5 files changed

+4941
-3047
lines changed

docs/docusaurus.config.js

Lines changed: 0 additions & 112 deletions
This file was deleted.

docs/docusaurus.config.ts

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
import { themes as prismThemes } from "prism-react-renderer";
2+
import type { Config } from "@docusaurus/types";
3+
import type * as Preset from "@docusaurus/preset-classic";
4+
5+
const config: Config = {
6+
title: "Awesome CI",
7+
customFields: {
8+
openerTitle: "FS DevOps peresents: Awesome CI",
9+
},
10+
tagline: "Fullstack applications and DevOps solutions",
11+
favicon: "https://avatars.githubusercontent.com/u/97617148?s=200&v=4",
12+
url: "https://fullstack-devops.github.io",
13+
baseUrl: "/awesome-ci",
14+
organizationName: "fullstack-devops",
15+
projectName: "awesome-ci",
16+
onBrokenLinks: "throw",
17+
onBrokenMarkdownLinks: "warn",
18+
i18n: {
19+
defaultLocale: "en",
20+
locales: ["en"],
21+
},
22+
23+
presets: [
24+
[
25+
"classic",
26+
{
27+
docs: {
28+
sidebarPath: require.resolve("./sidebars.js"),
29+
editUrl: "https://github.com/fullstack-devops/awesome-ci/tree/main/",
30+
},
31+
theme: {
32+
customCss: require.resolve("./src/css/custom.css"),
33+
},
34+
},
35+
],
36+
],
37+
38+
plugins: [require.resolve("docusaurus-lunr-search")],
39+
40+
themeConfig: {
41+
image: "https://fullstack-devops.github.io/img/full-logo.png",
42+
navbar: {
43+
title: "Awesome CI",
44+
logo: {
45+
alt: "Awesome CI Logo",
46+
src: "https://fullstack-devops.github.io/img/logo.png",
47+
},
48+
items: [
49+
{
50+
type: "doc",
51+
docId: "overview",
52+
position: "left",
53+
label: "Overview",
54+
},
55+
{
56+
type: "search",
57+
position: "right",
58+
},
59+
{
60+
href: "https://github.com/fullstack-devops/awesome-ci",
61+
label: "GitHub",
62+
position: "right",
63+
},
64+
],
65+
},
66+
footer: {
67+
style: "dark",
68+
links: [
69+
{
70+
title: "Docs",
71+
items: [
72+
{
73+
label: "Overview",
74+
to: "/docs/overview",
75+
},
76+
],
77+
},
78+
{
79+
title: "Community",
80+
items: [
81+
{
82+
label: "Stack Overflow",
83+
href: "https://stackoverflow.com/questions/tagged/fs-devops",
84+
},
85+
],
86+
},
87+
{
88+
title: "More",
89+
items: [
90+
{
91+
label: "GitHub",
92+
href: "https://github.com/fullstack-devops/awesome-ci",
93+
},
94+
],
95+
},
96+
],
97+
copyright: `Copyright © ${new Date().getFullYear()} Fs DevOps. Built with Docusaurus.`,
98+
},
99+
prism: {
100+
theme: prismThemes.github,
101+
darkTheme: prismThemes.dracula,
102+
},
103+
} satisfies Preset.ThemeConfig,
104+
};
105+
106+
export default config;

docs/package.json

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,22 @@
1515
"typecheck": "tsc"
1616
},
1717
"dependencies": {
18-
"@docusaurus/core": "2.3.1",
19-
"@docusaurus/preset-classic": "2.3.1",
20-
"@mdx-js/react": "^1.6.22",
21-
"clsx": "^1.2.1",
22-
"docusaurus-lunr-search": "^2.3.2",
23-
"prism-react-renderer": "^1.3.5",
24-
"react": "^17.0.2",
25-
"react-dom": "^17.0.2"
18+
"@docusaurus/core": "^3.3.2",
19+
"@docusaurus/preset-classic": "^3.3.2",
20+
"@docusaurus/theme-mermaid": "^3.3.2",
21+
"@mdx-js/react": "^3.0.1",
22+
"clsx": "^2.1.1",
23+
"docusaurus-lunr-search": "^3.4.0",
24+
"prism-react-renderer": "^2.3.1",
25+
"react": "^18.3.1",
26+
"react-dom": "^18.3.1"
2627
},
2728
"devDependencies": {
28-
"@docusaurus/module-type-aliases": "^2.3.1",
29-
"@tsconfig/docusaurus": "^1.0.6",
30-
"typescript": "^4.9.5"
29+
"@docusaurus/module-type-aliases": "^3.3.2",
30+
"@docusaurus/tsconfig": "^3.3.2",
31+
"@docusaurus/types": "^3.3.2",
32+
"@tsconfig/docusaurus": "^2.0.3",
33+
"typescript": "^5.4.5"
3134
},
3235
"browserslist": {
3336
"production": [
@@ -42,6 +45,6 @@
4245
]
4346
},
4447
"engines": {
45-
"node": ">=16.14"
48+
"node": ">=18.18"
4649
}
4750
}

docs/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
// This file is not used in compilation. It is here just for a nice editor experience.
3-
"extends": "@tsconfig/docusaurus/tsconfig.json",
3+
"extends": "@docusaurus/tsconfig",
44
"compilerOptions": {
55
"baseUrl": "."
66
}

0 commit comments

Comments
 (0)