Update documentation links in main-legacy (#849)

This commit is contained in:
Evan Simkowitz 2024-09-25 10:46:30 -07:00 committed by GitHub
parent a221655027
commit bea1949e47
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 19 additions and 16 deletions

View File

@ -40,9 +40,9 @@ brew install --cask wave
- Homepage — https://www.waveterm.dev
- Download Page — https://www.waveterm.dev/download
- Documentation — https://docs.waveterm.dev/
- Documentation — https://legacydocs.waveterm.dev/
- Blog — https://blog.waveterm.dev/
- Quick Start Guide — https://docs.waveterm.dev/quickstart/
- Quick Start Guide — https://legacydocs.waveterm.dev/quickstart/
- Discord Community — https://discord.gg/XfvZ334gwU
## Building from Source

View File

@ -269,7 +269,8 @@ class EditRemoteConnModal extends React.Component<{}, {}> {
Most options for connections imported from an ssh config file cannot be edited. For these
changes, you must edit the config file and import it again. The shell preference can be
edited, but will return to the default if you import again. It will stay changed if you
follow <a href="https://docs.waveterm.dev/features/sshconfig-imports">this procedure</a>.
follow{" "}
<a href="https://legacydocs.waveterm.dev/features/sshconfig-imports">this procedure</a>.
</span>
}
icon={<i className="fa-sharp fa-regular fa-fw fa-triangle-exclamation" />}

View File

@ -98,7 +98,9 @@ class TosModal extends React.Component<{}, {}> {
We collect minimal anonymous
<a
target="_blank"
href={util.makeExternLink("https://docs.waveterm.dev/reference/telemetry")}
href={util.makeExternLink(
"https://legacydocs.waveterm.dev/reference/telemetry",
)}
rel={"noopener"}
>
&nbsp;telemetry data&nbsp;

View File

@ -216,7 +216,7 @@ class ViewRemoteConnDetailModal extends React.Component<{}, {}> {
<span>
Connections imported from an ssh config file can be deleted, but will come back upon
importing again. They will stay removed if you follow{" "}
<a href="https://docs.waveterm.dev/features/sshconfig-imports">this procedure</a>.
<a href="https://legacydocs.waveterm.dev/features/sshconfig-imports">this procedure</a>.
</span>
}
icon={<i className="fa-sharp fa-regular fa-fw fa-triangle-exclamation" />}
@ -373,7 +373,7 @@ class ViewRemoteConnDetailModal extends React.Component<{}, {}> {
className={clsx(
"terminal-wrapper",
{ focus: isTermFocused },
remote != null ? "status-" + remote.status : null
remote != null ? "status-" + remote.status : null,
)}
>
<If condition={!isTermFocused}>
@ -393,7 +393,7 @@ class ViewRemoteConnDetailModal extends React.Component<{}, {}> {
height: textmeasure.termHeightFromRows(
appconst.RemotePtyRows,
termFontSize,
appconst.RemotePtyTotalRows
appconst.RemotePtyTotalRows,
),
width: termWidth,
}}

View File

@ -333,7 +333,7 @@ class MainSideBar extends React.Component<MainSideBarProps, {}> {
key="documentation"
frontIcon={<i className="fa-sharp fa-regular fa-circle-question icon" />}
contents="Documentation"
onClick={() => openLink("https://docs.waveterm.dev")}
onClick={() => openLink("https://legacydocs.waveterm.dev")}
endIcons={[
<CenteredIcon key="offsite" className="link-offsite hoverEffect">
<i className="fa-sharp fa-solid fa-arrow-up-right-from-square"></i>

View File

@ -225,7 +225,7 @@ class CmdInput extends React.Component<{}, {}> {
<If condition={feState["invalidshellstate"]}>
<div className="remote-status-warning">
The shell state for this tab is invalid (
<a target="_blank" href="https://docs.waveterm.dev/reference/faq">
<a target="_blank" href="https://legacydocs.waveterm.dev/reference/faq">
see FAQ
</a>
). Must reset to continue.
@ -287,7 +287,7 @@ class CmdInput extends React.Component<{}, {}> {
key="input"
className={clsx(
"cmd-input-field field has-addons",
inputMode != null ? "inputmode-" + inputMode : null
inputMode != null ? "inputmode-" + inputMode : null,
)}
>
<If condition={inputMode != null}>

View File

@ -55,7 +55,7 @@ const loggerConfig = {
level: "info",
format: winston.format.combine(
winston.format.timestamp({ format: "YYYY-MM-DD HH:mm:ss" }),
winston.format.printf((info) => `${info.timestamp} ${info.message}`)
winston.format.printf((info) => `${info.timestamp} ${info.message}`),
),
transports: loggerTransports,
};
@ -75,8 +75,8 @@ console.log(
getElectronAppBasePath(),
getGoAppBasePath(),
unamePlatform,
unameArch
)
unameArch,
),
);
if (isDev) {
console.log("waveterm-app WAVETERM_DEV set");
@ -361,11 +361,11 @@ function createWindow(clientData: ClientDataType | null): Electron.BrowserWindow
win.webContents.on("will-frame-navigate", shFrameNavHandler);
win.on(
"resize",
debounce(400, (e) => mainResizeHandler(e, win))
debounce(400, (e) => mainResizeHandler(e, win)),
);
win.on(
"move",
debounce(400, (e) => mainResizeHandler(e, win))
debounce(400, (e) => mainResizeHandler(e, win)),
);
win.on("focus", () => {
wasInFg = true;
@ -375,7 +375,7 @@ function createWindow(clientData: ClientDataType | null): Electron.BrowserWindow
win.webContents.send("zoom-changed");
});
win.webContents.setWindowOpenHandler(({ url, frameName }) => {
if (url.startsWith("https://docs.waveterm.dev/")) {
if (url.startsWith("https://legacydocs.waveterm.dev/")) {
console.log("openExternal docs", url);
electron.shell.openExternal(url);
} else if (url.startsWith("https://discord.gg/")) {