Skip to content

Commit 2961668

Browse files
autopilot proposal
1 parent 8142e7c commit 2961668

File tree

4 files changed

+58
-18
lines changed

4 files changed

+58
-18
lines changed

babel.config.js

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,30 @@
1+
const path = require('path');
2+
const fs = require('fs');
3+
4+
// Verify @docusaurus/core is installed
5+
const docusaurusCorePath = path.resolve(__dirname, 'node_modules', '@docusaurus', 'core');
6+
if (!fs.existsSync(docusaurusCorePath)) {
7+
throw new Error('@docusaurus/core is not installed in node_modules');
8+
}
9+
110
module.exports = {
211
presets: [require.resolve('@docusaurus/core/lib/babel/preset')],
3-
};
12+
env: {
13+
development: {
14+
presets: [
15+
// Add any development-specific presets here
16+
],
17+
plugins: [
18+
// Add any development-specific plugins here
19+
],
20+
},
21+
production: {
22+
presets: [
23+
// Add any production-specific presets here
24+
],
25+
plugins: [
26+
// Add any production-specific plugins here
27+
],
28+
},
29+
},
30+
};

docusaurus.config.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const config = {
1111
favicon: 'img/favicon.ico',
1212

1313
// Set the production url of your site here
14-
url: 'https://docs.codeautopilot.com',
14+
url: 'http://localhost:3000',
1515
// Set the /<baseUrl>/ pathname under which your site is served
1616
// For GitHub pages deployment, it is often '/<projectName>/'
1717
baseUrl: '/',
@@ -39,8 +39,7 @@ const config = {
3939
({
4040
docs: {
4141
routeBasePath: '/', // Serve the docs at the site's root
42-
editUrl:
43-
'https://github.com/codeautopilot/docs/tree/main/',
42+
// Removed editUrl as per the task requirement
4443
},
4544
blog: false,
4645
theme: {
@@ -72,7 +71,7 @@ const config = {
7271
items: [
7372
{
7473
label: 'Discord',
75-
href: 'https://discord.gg/r72ykfvyx7',
74+
href: 'http://localhost:3000/discord',
7675
},
7776
],
7877
},
@@ -86,4 +85,4 @@ const config = {
8685
}),
8786
};
8887

89-
module.exports = config;
88+
module.exports = config;

package.json

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,23 @@
1111
"clear": "docusaurus clear",
1212
"serve": "docusaurus serve",
1313
"write-translations": "docusaurus write-translations",
14-
"write-heading-ids": "docusaurus write-heading-ids"
14+
"write-heading-ids": "docusaurus write-heading-ids",
15+
"test": "jest",
16+
"lint": "eslint ."
1517
},
1618
"dependencies": {
17-
"@docusaurus/core": "2.4.3",
18-
"@docusaurus/preset-classic": "2.4.3",
19+
"@docusaurus/core": "^2.7.1",
20+
"@docusaurus/preset-classic": "^2.7.1",
1921
"@mdx-js/react": "^1.6.22",
2022
"clsx": "^1.2.1",
2123
"prism-react-renderer": "^1.3.5",
22-
"react": "^17.0.2",
23-
"react-dom": "^17.0.2"
24+
"react": "^18.2.0",
25+
"react-dom": "^18.2.0"
2426
},
2527
"devDependencies": {
26-
"@docusaurus/module-type-aliases": "2.4.3"
28+
"@docusaurus/module-type-aliases": "^2.7.1",
29+
"eslint": "^8.50.0",
30+
"jest": "^29.7.0"
2731
},
2832
"browserslist": {
2933
"production": [
@@ -38,6 +42,6 @@
3842
]
3943
},
4044
"engines": {
41-
"node": ">=16.14"
45+
"node": ">=18.0.0"
4246
}
43-
}
47+
}

src/components/HomepageFeatures/index.js

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import styles from './styles.module.css';
55
const FeatureList = [
66
{
77
title: 'Easy to Use',
8-
Svg: require('@site/static/img/undraw_docusaurus_mountain.svg').default,
8+
Svg: require('../../static/img/undraw_docusaurus_mountain.svg').default,
99
description: (
1010
<>
1111
Docusaurus was designed from the ground up to be easily installed and
@@ -15,7 +15,7 @@ const FeatureList = [
1515
},
1616
{
1717
title: 'Focus on What Matters',
18-
Svg: require('@site/static/img/undraw_docusaurus_tree.svg').default,
18+
Svg: require('../../static/img/undraw_docusaurus_tree.svg').default,
1919
description: (
2020
<>
2121
Docusaurus lets you focus on your docs, and we&apos;ll do the chores. Go
@@ -25,14 +25,24 @@ const FeatureList = [
2525
},
2626
{
2727
title: 'Powered by React',
28-
Svg: require('@site/static/img/undraw_docusaurus_react.svg').default,
28+
Svg: require('../../static/img/undraw_docusaurus_react.svg').default,
2929
description: (
3030
<>
3131
Extend or customize your website layout by reusing React. Docusaurus can
3232
be extended while reusing the same header and footer.
3333
</>
3434
),
3535
},
36+
{
37+
title: 'Customizable',
38+
Svg: require('../../static/img/undraw_docusaurus_customizable.svg').default,
39+
description: (
40+
<>
41+
Docusaurus is highly customizable, allowing you to tailor the look and
42+
feel of your site to match your brand.
43+
</>
44+
),
45+
},
3646
];
3747

3848
function Feature({Svg, title, description}) {
@@ -61,4 +71,4 @@ export default function HomepageFeatures() {
6171
</div>
6272
</section>
6373
);
64-
}
74+
}

0 commit comments

Comments
 (0)