Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added _includes/archive-warning
Empty file.
20 changes: 20 additions & 0 deletions src/components/Documentation/ArchiveNotice.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import React from "react";
import Admonition from "@theme/Admonition";

export default function ArchiveNotice() {
return (
<Admonition type="danger" title="Weaviate Documentation Archive">
<p>
This is the <strong>Weaviate Documentation Archive</strong>. It contains
info and code snippets for the deprecated Python v3 and TypeScript v2
clients.
<br />
The official and up-to-date documentation is available at{" "}
<strong>
<a href="https://docs.weaviate.io/">docs.weaviate.io</a>
</strong>
.
</p>
</Admonition>
);
}
12 changes: 12 additions & 0 deletions src/theme/DocItem/Layout/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React from "react";
import Layout from "@theme-original/DocItem/Layout";
import ArchiveNotice from "@site/src/components/Documentation/ArchiveNotice";

export default function LayoutWrapper(props) {
return (
<>
<ArchiveNotice />
<Layout {...props} />
</>
);
}
Loading