add back normalization + docs link
This commit is contained in:
parent
43e5d04053
commit
0200e647b8
@ -131,7 +131,9 @@ function writeToServerDocuments({
|
||||
|
||||
if (!fs.existsSync(destination))
|
||||
fs.mkdirSync(destination, { recursive: true });
|
||||
const destinationFilePath = path.resolve(destination, filename) + ".json";
|
||||
const destinationFilePath = normalizePath(
|
||||
path.resolve(destination, filename) + ".json"
|
||||
);
|
||||
|
||||
fs.writeFileSync(destinationFilePath, JSON.stringify(data, null, 4), {
|
||||
encoding: "utf-8",
|
||||
|
||||
@ -7,6 +7,7 @@ import { useEffect, useState } from "react";
|
||||
import MobileConnection from "@/models/mobile";
|
||||
import PreLoader from "@/components/Preloader";
|
||||
import Logo from "@/media/logo/anything-llm-infinity.png";
|
||||
import paths from "@/utils/paths";
|
||||
|
||||
export default function MobileConnectModal({ isOpen, onClose }) {
|
||||
return (
|
||||
@ -55,7 +56,7 @@ export default function MobileConnectModal({ isOpen, onClose }) {
|
||||
sync of your workspaces, chats, threads and documents.
|
||||
<br />
|
||||
<Link
|
||||
to="https://docs.anythingllm.com/mobile"
|
||||
to={paths.documentation.mobileIntroduction()}
|
||||
className="text-cta-button font-semibold"
|
||||
>
|
||||
Learn more
|
||||
|
||||
@ -213,6 +213,9 @@ export default {
|
||||
|
||||
// TODO: Migrate all docs.anythingllm.com links to the new docs.
|
||||
documentation: {
|
||||
mobileIntroduction: () => {
|
||||
return "https://docs.anythingllm.com/mobile/overview";
|
||||
},
|
||||
contextWindows: () => {
|
||||
return "https://docs.anythingllm.com/chatting-with-documents/introduction#you-exceed-the-context-window---what-now";
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user