From ef2af977d3aa668cb74545013c92ea39bca0f100 Mon Sep 17 00:00:00 2001
From: DogmaDragon <103123951+DogmaDragon@users.noreply.github.com>
Date: Mon, 6 Feb 2023 07:34:06 +0200
Subject: [PATCH] Update the links after minor file restructuring (#3396)
---
README.md | 6 +++---
internal/api/authentication.go | 4 ++--
internal/manager/config/config.go | 2 +-
pkg/session/authentication.go | 2 +-
ui/v2.5/src/components/Settings/SettingsAboutPanel.tsx | 2 +-
ui/v2.5/src/components/Settings/SettingsLibraryPanel.tsx | 4 ++--
ui/v2.5/src/docs/en/Manual/Interface.md | 4 ++--
ui/v2.5/src/docs/en/Manual/JSONSpec.md | 6 +++---
8 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/README.md b/README.md
index 93949adec..87889fe38 100644
--- a/README.md
+++ b/README.md
@@ -54,16 +54,16 @@ Stash is available in 25 languages (so far!) and it could be in your language to
Check out our documentation on [Stash-Docs](https://docs.stashapp.cc) for information about the software, questions, guides, add-ons and more.
For more help you can:
-* Check the in-app documentation, in the top right corner of the app (it's also mirrored on [Stash-Docs](https://docs.stashapp.cc/docs/In-app-Manual/)
+* Check the in-app documentation, in the top right corner of the app (it's also mirrored on [Stash-Docs](https://docs.stashapp.cc/in-app-manual))
* Join the [Discord server](https://discord.gg/2TsNFKt), where the community can offer support.
* Start a [discussion on GitHub](https://github.com/stashapp/stash/discussions)
# Customization
## Themes and CSS Customization
-There is a [directory of community-created themes](https://docs.stashapp.cc/docs/User-Interface-UI/Themes/) on Stash-Docs, along with instructions on how to install them.
+There is a [directory of community-created themes](https://docs.stashapp.cc/user-interface-ui/themes) on Stash-Docs, along with instructions on how to install them.
-You can also change the Stash interface to fit your desired style with various snippets from [Custom CSS snippets](https://docs.stashapp.cc/docs/User-Interface-UI/Custom-CSS-Snippets/).
+You can also change the Stash interface to fit your desired style with various snippets from [Custom CSS snippets](https://docs.stashapp.cc/user-interface-ui/custom-css-snippets).
# For Developers
diff --git a/internal/api/authentication.go b/internal/api/authentication.go
index 849801962..d663d167a 100644
--- a/internal/api/authentication.go
+++ b/internal/api/authentication.go
@@ -17,12 +17,12 @@ const loginEndPoint = "/login"
const (
tripwireActivatedErrMsg = "Stash is exposed to the public internet without authentication, and is not serving any more content to protect your privacy. " +
- "More information and fixes are available at https://docs.stashapp.cc/docs/Network/Authentication-Required-When-Accessing-Stash-From-the-Internet/"
+ "More information and fixes are available at https://docs.stashapp.cc/networking/authentication-required-when-accessing-stash-from-the-internet"
externalAccessErrMsg = "You have attempted to access Stash over the internet, and authentication is not enabled. " +
"This is extremely dangerous! The whole world can see your your stash page and browse your files! " +
"Stash is not answering any other requests to protect your privacy. " +
- "Please read the log entry or visit https://docs.stashapp.cc/docs/Network/Authentication-Required-When-Accessing-Stash-From-the-Internet/"
+ "Please read the log entry or visit https://docs.stashapp.cc/networking/authentication-required-when-accessing-stash-from-the-internet"
)
func allowUnauthenticated(r *http.Request) bool {
diff --git a/internal/manager/config/config.go b/internal/manager/config/config.go
index c422b2670..07f13b261 100644
--- a/internal/manager/config/config.go
+++ b/internal/manager/config/config.go
@@ -1287,7 +1287,7 @@ func (i *Instance) GetDefaultGenerateSettings() *models.GenerateMetadataOptions
}
// GetDangerousAllowPublicWithoutAuth determines if the security feature is enabled.
-// See https://docs.stashapp.cc/docs/Network/Authentication-Required-When-Accessing-Stash-From-the-Internet/
+// See https://docs.stashapp.cc/networking/authentication-required-when-accessing-stash-from-the-internet
func (i *Instance) GetDangerousAllowPublicWithoutAuth() bool {
return i.getBool(dangerousAllowPublicWithoutAuth)
}
diff --git a/pkg/session/authentication.go b/pkg/session/authentication.go
index d70462538..d9a02314b 100644
--- a/pkg/session/authentication.go
+++ b/pkg/session/authentication.go
@@ -81,6 +81,6 @@ func LogExternalAccessError(err ExternalAccessError) {
"You probably forwarded a port from your router. At the very least, add a password to stash in the settings. \n"+
"Stash will not serve requests until you edit config.yml, remove the security_tripwire_accessed_from_public_internet key and restart stash. \n"+
"This behaviour can be overridden (but not recommended) by setting dangerous_allow_public_without_auth to true in config.yml. \n"+
- "More information is available at https://docs.stashapp.cc/docs/Network/Authentication-Required-When-Accessing-Stash-From-the-Internet/ \n"+
+ "More information is available at https://docs.stashapp.cc/networking/authentication-required-when-accessing-stash-from-the-internet \n"+
"Stash is not answering any other requests to protect your privacy.", net.IP(err).String())
}
diff --git a/ui/v2.5/src/components/Settings/SettingsAboutPanel.tsx b/ui/v2.5/src/components/Settings/SettingsAboutPanel.tsx
index 55e0b8d7d..fd2f52906 100644
--- a/ui/v2.5/src/components/Settings/SettingsAboutPanel.tsx
+++ b/ui/v2.5/src/components/Settings/SettingsAboutPanel.tsx
@@ -112,7 +112,7 @@ export const SettingsAboutPanel: React.FC = () => {
rel="noopener noreferrer"
target="_blank"
>
- Stash-Docs
+ Documentation
),
}
diff --git a/ui/v2.5/src/components/Settings/SettingsLibraryPanel.tsx b/ui/v2.5/src/components/Settings/SettingsLibraryPanel.tsx
index 7c631d7d1..b00e22e57 100644
--- a/ui/v2.5/src/components/Settings/SettingsLibraryPanel.tsx
+++ b/ui/v2.5/src/components/Settings/SettingsLibraryPanel.tsx
@@ -82,7 +82,7 @@ export const SettingsLibraryPanel: React.FC = () => {
id: "config.general.excluded_video_patterns_desc",
})}
@@ -104,7 +104,7 @@ export const SettingsLibraryPanel: React.FC = () => {
id: "config.general.excluded_image_gallery_patterns_desc",
})}
diff --git a/ui/v2.5/src/docs/en/Manual/Interface.md b/ui/v2.5/src/docs/en/Manual/Interface.md
index 019e08853..4803b4eaf 100644
--- a/ui/v2.5/src/docs/en/Manual/Interface.md
+++ b/ui/v2.5/src/docs/en/Manual/Interface.md
@@ -30,9 +30,9 @@ By default, when a scene has a resume point, the scene player will automatically
## Custom CSS
-The stash UI can be customised using custom CSS. See [here](https://docs.stashapp.cc/docs/User-Interface-UI/Custom-CSS-Snippets/) for a community-curated set of CSS snippets to customise your UI.
+The stash UI can be customised using custom CSS. See [here](https://docs.stashapp.cc/user-interface-ui/custom-css-snippets) for a community-curated set of CSS snippets to customise your UI.
-[Stash Plex Theme](https://docs.stashapp.cc/docs/User-Interface-UI/Themes/Theme-Plex/) is a community created theme inspired by the popular Plex interface.
+[Stash Plex Theme](https://docs.stashapp.cc/user-interface-ui/themes/plex) is a community created theme inspired by the popular Plex interface.
## Custom Javascript
diff --git a/ui/v2.5/src/docs/en/Manual/JSONSpec.md b/ui/v2.5/src/docs/en/Manual/JSONSpec.md
index 27467e128..ae0e76e0a 100644
--- a/ui/v2.5/src/docs/en/Manual/JSONSpec.md
+++ b/ui/v2.5/src/docs/en/Manual/JSONSpec.md
@@ -218,7 +218,7 @@ For those preferring the json-format, defined [here](https://json-schema.org/),
``` json
{
"$schema": "http://json-schema.org/draft-07/schema#",
- "$id": "https://docs.stashapp.cc/docs/In-app-Manual/Tasks/JSONSpec/#performerjson",
+ "$id": "https://docs.stashapp.cc/in-app-manual/tasks/jsonspec#performerjson",
"title": "performer",
"description": "A json file representing a performer. The file is named by a MD5 Code.",
"type": "object",
@@ -318,7 +318,7 @@ For those preferring the json-format, defined [here](https://json-schema.org/),
``` json
{
"$schema": "http://json-schema.org/draft-07/schema#",
- "$id": "https://docs.stashapp.cc/docs/In-app-Manual/Tasks/JSONSpec/#studiojson",
+ "$id": "https://docs.stashapp.cc/in-app-manual/tasks/jsonspec#studiojson",
"title": "studio",
"description": "A json file representing a studio. The file is named by a MD5 Code.",
"type": "object",
@@ -357,7 +357,7 @@ For those preferring the json-format, defined [here](https://json-schema.org/),
```json
{
"$schema": "http://json-schema.org/draft-07/schema#",
- "$id": "https://docs.stashapp.cc/docs/In-app-Manual/Tasks/JSONSpec/#scenejson",
+ "$id": "https://docs.stashapp.cc/in-app-manual/tasks/jsonspec#scenejson",
"title": "scene",
"description": "A json file representing a scene. The file is named by the MD5 Code of the file its data is referring to.",
"type": "object",