Skip to content

Commit 5e3bb66

Browse files
authored
Fix documentation shortcut location (#572)
wpilibsuite/frc-docs#3159 and wpilibsuite/frc-docs#3160 changed the documentation directory from frc-docs-latest to frc-docs which makes more sense. Update shortcuts to point to the new directory. Simplify the install location, which was documentation/rtd/frc-docs-latest to just documentation/frc-docs which should be more discoverable, since most people don't know what rtd is.
1 parent 277e8bf commit 5e3bb66

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

WPILibInstaller-Avalonia/ViewModels/InstallPageViewModel.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -927,8 +927,8 @@ private async Task RunShortcutCreator(CancellationToken token)
927927
if (toInstallProvider.Model.InstallEverything)
928928
{
929929
// Add Documentation Shortcuts
930-
shortcutData.DesktopShortcuts.Add(new ShortcutInfo(Path.Join(frcHomePath, "documentation", "rtd", "frc-docs-latest", "index.html"), $"{frcYear} WPILib Documentation", $"{frcYear} WPILib Documentation", wpilibIconLocation));
931-
shortcutData.StartMenuShortcuts.Add(new ShortcutInfo(Path.Join(frcHomePath, "documentation", "rtd", "frc-docs-latest", "index.html"), $"Programs/{frcYear} WPILib Documentation", $"{frcYear} WPILib Documentation", wpilibIconLocation));
930+
shortcutData.DesktopShortcuts.Add(new ShortcutInfo(Path.Join(frcHomePath, "documentation", "frc-docs", "index.html"), $"{frcYear} WPILib Documentation", $"{frcYear} WPILib Documentation", wpilibIconLocation));
931+
shortcutData.StartMenuShortcuts.Add(new ShortcutInfo(Path.Join(frcHomePath, "documentation", "frc-docs", "index.html"), $"Programs/{frcYear} WPILib Documentation", $"{frcYear} WPILib Documentation", wpilibIconLocation));
932932
}
933933

934934
var serializedData = JsonConvert.SerializeObject(shortcutData);

scripts/maven.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ ext.mavenZipSetup = { AbstractArchiveTask zip->
280280
}
281281

282282
zip.from(project.zipTree(downloadReadTheDocs.get().outputFiles.first())) {
283-
into '/documentation/rtd'
283+
into '/documentation'
284284
}
285285

286286
zip.from(project.zipTree(downloadPythonAPI.get().outputFiles.first())) {

0 commit comments

Comments
 (0)