Skip to content

Commit e15227a

Browse files
committed
Docs - fix up v1.15 docs links to point to PX4-Autopilot
1 parent e0d4da2 commit e15227a

File tree

1 file changed

+5
-18
lines changed

1 file changed

+5
-18
lines changed

.vitepress/config.mjs

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ export default defineConfig({
4848
pattern: ({ filePath, frontmatter }) => {
4949
if (frontmatter.newEditLink) {
5050
//newEditLink defines a frontmatter key you can use to append a path to main
51-
return `https://github.com/PX4/PX4-user_guide/edit/main/${frontmatter.newEditLink}`;
51+
return `https://github.com/PX4/PX4-Autopilot/edit/main/${frontmatter.newEditLink}`;
5252
} else {
53-
return `https://github.com/PX4/PX4-user_guide/edit/main/${filePath}`;
53+
return `https://github.com/PX4/PX4-Autopilot/edit/main/${filePath}`;
5454
}
5555
},
5656
text: "Edit on GitHub",
@@ -120,26 +120,13 @@ export default defineConfig({
120120

121121
nav: [
122122
{
123-
text: "PX4",
123+
text: "Dronecode",
124124
items: [
125125
{
126-
text: "Website",
126+
text: "PX4",
127127
link: "https://px4.io/",
128128
ariaLabel: "PX4 website link",
129129
},
130-
{
131-
text: "Autopilot Source Code",
132-
link: "https://github.com/PX4/PX4-Autopilot",
133-
},
134-
{
135-
text: "Docs Source Code",
136-
link: "https://github.com/PX4/PX4-user_guide",
137-
},
138-
],
139-
},
140-
{
141-
text: "Dronecode",
142-
items: [
143130
{
144131
text: "QGroundControl",
145132
link: "http://qgroundcontrol.com/",
@@ -180,7 +167,7 @@ export default defineConfig({
180167
],
181168

182169
socialLinks: [
183-
{ icon: "github", link: "https://github.com/PX4/PX4-user_guide" },
170+
{ icon: "github", link: "https://github.com/PX4/PX4-Autopilot" },
184171
],
185172
},
186173

0 commit comments

Comments
 (0)