2024-04-26 12:19:50 +02:00
|
|
|
From 4a477c328eada5d3b3dfee39b6949dc97c36f813 Mon Sep 17 00:00:00 2001
|
2023-12-23 20:20:04 +01:00
|
|
|
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber@stgraber.org>
|
|
|
|
Date: Wed, 22 Nov 2023 23:02:27 +0000
|
2024-04-26 12:19:50 +02:00
|
|
|
Subject: [PATCH 2/8] Update navigation
|
2023-12-23 20:20:04 +01:00
|
|
|
MIME-Version: 1.0
|
|
|
|
Content-Type: text/plain; charset=UTF-8
|
|
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
|
|
|
|
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
|
|
|
|
---
|
2024-02-22 11:31:13 +01:00
|
|
|
src/components/Navigation.tsx | 4 ++--
|
2023-12-23 20:20:04 +01:00
|
|
|
src/components/NoMatch.tsx | 2 +-
|
|
|
|
src/context/useDocs.tsx | 2 +-
|
2024-02-22 11:31:13 +01:00
|
|
|
3 files changed, 4 insertions(+), 4 deletions(-)
|
2023-12-23 20:20:04 +01:00
|
|
|
|
|
|
|
diff --git a/src/components/Navigation.tsx b/src/components/Navigation.tsx
|
2024-04-26 12:19:50 +02:00
|
|
|
index 147676a..64a97d3 100644
|
2023-12-23 20:20:04 +01:00
|
|
|
--- a/src/components/Navigation.tsx
|
|
|
|
+++ b/src/components/Navigation.tsx
|
2024-04-26 12:19:50 +02:00
|
|
|
@@ -261,7 +261,7 @@ const Navigation: FC = () => {
|
2023-12-23 20:20:04 +01:00
|
|
|
<li className="p-side-navigation__item">
|
|
|
|
<a
|
|
|
|
className="p-side-navigation__link"
|
|
|
|
- href="https://discourse.ubuntu.com/c/lxd/126"
|
|
|
|
+ href="https://discuss.linuxcontainers.org"
|
|
|
|
target="_blank"
|
2024-04-26 12:19:50 +02:00
|
|
|
rel="noopener noreferrer"
|
2023-12-23 20:20:04 +01:00
|
|
|
title="Discussion"
|
2024-04-26 12:19:50 +02:00
|
|
|
@@ -276,7 +276,7 @@ const Navigation: FC = () => {
|
2023-12-23 20:20:04 +01:00
|
|
|
<li className="p-side-navigation__item">
|
|
|
|
<a
|
|
|
|
className="p-side-navigation__link"
|
|
|
|
- href="https://github.com/canonical/lxd-ui/issues/new"
|
|
|
|
+ href="https://github.com/zabbly/incus/issues/new"
|
|
|
|
target="_blank"
|
2024-04-26 12:19:50 +02:00
|
|
|
rel="noopener noreferrer"
|
2023-12-23 20:20:04 +01:00
|
|
|
title="Report a bug"
|
|
|
|
diff --git a/src/components/NoMatch.tsx b/src/components/NoMatch.tsx
|
2024-04-26 12:19:50 +02:00
|
|
|
index a088c54..65216fa 100644
|
2023-12-23 20:20:04 +01:00
|
|
|
--- a/src/components/NoMatch.tsx
|
|
|
|
+++ b/src/components/NoMatch.tsx
|
|
|
|
@@ -13,7 +13,7 @@ const NoMatch: FC = () => {
|
|
|
|
<br />
|
|
|
|
If you think this is an error in our product, please{" "}
|
|
|
|
<a
|
|
|
|
- href="https://github.com/canonical/lxd-ui/issues/new"
|
|
|
|
+ href="https://github.com/zabbly/incus/issues/new"
|
|
|
|
target="_blank"
|
2024-04-26 12:19:50 +02:00
|
|
|
rel="noopener noreferrer"
|
2023-12-23 20:20:04 +01:00
|
|
|
title="Report a bug"
|
|
|
|
diff --git a/src/context/useDocs.tsx b/src/context/useDocs.tsx
|
2024-04-26 12:19:50 +02:00
|
|
|
index 900688f..be3e593 100644
|
2023-12-23 20:20:04 +01:00
|
|
|
--- a/src/context/useDocs.tsx
|
|
|
|
+++ b/src/context/useDocs.tsx
|
|
|
|
@@ -1,7 +1,7 @@
|
2024-04-26 12:19:50 +02:00
|
|
|
import { useSupportedFeatures } from "./useSupportedFeatures";
|
2023-12-23 20:20:04 +01:00
|
|
|
|
|
|
|
export const useDocs = (): string => {
|
|
|
|
- const remoteBase = "https://documentation.ubuntu.com/lxd/en/latest";
|
|
|
|
+ const remoteBase = "/documentation";
|
|
|
|
const localBase = "/documentation";
|
|
|
|
|
2024-04-26 12:19:50 +02:00
|
|
|
const { hasLocalDocumentation } = useSupportedFeatures();
|
2023-12-23 20:20:04 +01:00
|
|
|
--
|
2024-02-22 11:31:13 +01:00
|
|
|
2.34.1
|
2023-12-23 20:20:04 +01:00
|
|
|
|