<% for doc_link in index.clone().into_iter() { %>
diff --git a/static/css/modules.scss b/static/css/modules.scss
new file mode 100644
index 000000000..4baf62d46
--- /dev/null
+++ b/static/css/modules.scss
@@ -0,0 +1,3 @@
+// This file is automatically generated.
+// There is no need to edit it manually.
+
From 05404a9fd1f27b38b9704bef59ff28467855b811 Mon Sep 17 00:00:00 2001
From: Dan <39170265+chillenberger@users.noreply.github.com>
Date: Fri, 19 Jul 2024 13:38:25 -0600
Subject: [PATCH 3/8] this should not be here
---
pgml-cms/pgml-cms | 1 -
1 file changed, 1 deletion(-)
delete mode 120000 pgml-cms/pgml-cms
diff --git a/pgml-cms/pgml-cms b/pgml-cms/pgml-cms
deleted file mode 120000
index f76a7eae8..000000000
--- a/pgml-cms/pgml-cms
+++ /dev/null
@@ -1 +0,0 @@
-/Users/danielillenberger/Projects/postgresml/pgml-cms
\ No newline at end of file
From e36656b738b1c31c5926b32617c39937ea3e8945 Mon Sep 17 00:00:00 2001
From: Dan <39170265+chillenberger@users.noreply.github.com>
Date: Fri, 19 Jul 2024 13:40:15 -0600
Subject: [PATCH 4/8] should not be here
---
static/css/modules.scss | 3 ---
1 file changed, 3 deletions(-)
delete mode 100644 static/css/modules.scss
diff --git a/static/css/modules.scss b/static/css/modules.scss
deleted file mode 100644
index 4baf62d46..000000000
--- a/static/css/modules.scss
+++ /dev/null
@@ -1,3 +0,0 @@
-// This file is automatically generated.
-// There is no need to edit it manually.
-
From 2367f7e2cc839f969389c4947e044e6554842051 Mon Sep 17 00:00:00 2001
From: Dan <39170265+chillenberger@users.noreply.github.com>
Date: Fri, 19 Jul 2024 16:35:20 -0600
Subject: [PATCH 5/8] redirects and make old links work
---
pgml-dashboard/src/api/cms.rs | 61 +++++++++++++++++++
.../sections/footers/marketing_footer/mod.rs | 15 ++++-
2 files changed, 73 insertions(+), 3 deletions(-)
diff --git a/pgml-dashboard/src/api/cms.rs b/pgml-dashboard/src/api/cms.rs
index ddb3904a7..26afd99a9 100644
--- a/pgml-dashboard/src/api/cms.rs
+++ b/pgml-dashboard/src/api/cms.rs
@@ -3,6 +3,7 @@ use std::{
path::{Path, PathBuf},
};
+use rocket::response::Redirect;
use std::str::FromStr;
use comrak::{format_html_with_plugins, parse_document, Arena, ComrakPlugins};
@@ -63,6 +64,10 @@ lazy_static! {
("guides/predictions/overview", "api/sql-extension/pgml.predict/"),
("machine-learning/supervised-learning/data-pre-processing", "api/sql-extension/pgml.train/data-pre-processing"),
("api/client-sdk/getting-started", "api/client-sdk/"),
+ ("introduction/getting-started/import-your-data/", "introduction/import-your-data/"),
+ ("introduction/getting-started/import-your-data/foreign-data-wrapper", "introduction/import-your-data/foreign-data-wrappers"),
+ ("use-cases/embeddings/generating-llm-embeddings-with-open-source-models-in-postgresml", "open-source/pgml/guides/embeddings/in-database-generation"),
+ ("use-cases/natural-language-processing", "open-source/pgml/guides/natural-language-processing"),
])
);
}
@@ -857,6 +862,56 @@ pub async fn careers_apply(title: PathBuf, cluster: &Cluster) -> Result
")]
+pub async fn api_redirect(path: PathBuf) -> Redirect {
+ match path.to_str().unwrap() {
+ "apis" => Redirect::permanent("/docs/open-source/overview"),
+ "client-sdk/search" => {
+ Redirect::permanent("/docs/open-source/pgml/guides/improve-search-results-with-machine-learning")
+ }
+ "client-sdk/getting-started" => Redirect::permanent("/docs/open-source/pgml/guides/getting-started"),
+ "sql-extensions/pgml.predict/" => Redirect::permanent("/docs/open-source/pgml/api/pgml.predict/"),
+ "sql-extensions/pgml.deploy" => Redirect::permanent("/docs/open-source/pgml/api/pgml.deploy"),
+ _ => Redirect::permanent("/docs/open-source/".to_owned() + path.to_str().unwrap()),
+ }
+}
+
+/// Redirect our old sql-extension path.
+#[get("/docs/open-source/sql-extension/")]
+pub async fn sql_extension_redirect(path: PathBuf) -> Redirect {
+ Redirect::permanent("/docs/open-source/pgml/api/".to_owned() + path.to_str().unwrap())
+}
+
+/// Redirect our old pgcat path.
+#[get("/docs/product/pgcat/")]
+pub async fn pgcat_redirect(path: PathBuf) -> Redirect {
+ Redirect::permanent("/docs/open-source/pgcat/".to_owned() + path.to_str().unwrap())
+}
+
+/// Redirect our old cloud-database path.
+#[get("/docs/product/cloud-database/")]
+pub async fn cloud_database_redirect(path: PathBuf) -> Redirect {
+ let path = path.to_str().unwrap();
+ if path.is_empty() {
+ Redirect::permanent("/docs/cloud/overview")
+ } else {
+ Redirect::permanent("/docs/cloud/".to_owned() + path)
+ }
+}
+
+/// Redirect our old pgml docs.
+#[get("/docs/open-source/client-sdk/")]
+pub async fn pgml_redirect(path: PathBuf) -> Redirect {
+ Redirect::permanent("/docs/open-source/korvus/api/".to_owned() + path.to_str().unwrap())
+}
+
+/// Redirect our old MkDocs paths to the new ones under `/docs`.
+#[get("/user_guides/")]
+pub async fn user_guides_redirect(path: PathBuf) -> Redirect {
+ Redirect::permanent("/docs/guides/".to_owned() + path.to_str().unwrap())
+}
+
#[get("/docs/", rank = 5)]
async fn get_docs(
path: PathBuf,
@@ -1003,6 +1058,12 @@ pub fn routes() -> Vec {
search,
search_blog,
demo,
+ sql_extension_redirect,
+ api_redirect,
+ pgcat_redirect,
+ pgml_redirect,
+ cloud_database_redirect,
+ user_guides_redirect,
]
}
diff --git a/pgml-dashboard/src/components/sections/footers/marketing_footer/mod.rs b/pgml-dashboard/src/components/sections/footers/marketing_footer/mod.rs
index 5aeb6264f..0e60e6535 100644
--- a/pgml-dashboard/src/components/sections/footers/marketing_footer/mod.rs
+++ b/pgml-dashboard/src/components/sections/footers/marketing_footer/mod.rs
@@ -22,10 +22,19 @@ impl MarketingFooter {
StaticNavLink::new("VPC".into(), "/docs/cloud/enterprise/vpc".into()),
],
solutions: vec![
- StaticNavLink::new("NLP".into(), "/docs/open-source/pgml/guides/natural-language-processing".into()),
- StaticNavLink::new("Supervised Learning".into(), "/docs/open-source/pgml/guides/supervised-learning".into()),
+ StaticNavLink::new(
+ "NLP".into(),
+ "/docs/open-source/pgml/guides/natural-language-processing".into(),
+ ),
+ StaticNavLink::new(
+ "Supervised Learning".into(),
+ "/docs/open-source/pgml/guides/supervised-learning".into(),
+ ),
StaticNavLink::new("Embedding".into(), "/docs/open-source/pgml/guides/embeddings/".into()),
- StaticNavLink::new("Vector Database".into(), "/docs/open-source/pgml/guides/vector-database".into()),
+ StaticNavLink::new(
+ "Vector Database".into(),
+ "/docs/open-source/pgml/guides/vector-database".into(),
+ ),
StaticNavLink::new(
"Search".into(),
"/docs/open-source/pgml/guides/improve-search-results-with-machine-learning".into(),
From 510cd7f5d1159b302921edbdf6513df97d259895 Mon Sep 17 00:00:00 2001
From: Dan <39170265+chillenberger@users.noreply.github.com>
Date: Mon, 22 Jul 2024 13:15:59 -0600
Subject: [PATCH 6/8] remove unneeded endpoint
---
pgml-dashboard/src/api/cms.rs | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/pgml-dashboard/src/api/cms.rs b/pgml-dashboard/src/api/cms.rs
index 26afd99a9..b42f2388b 100644
--- a/pgml-dashboard/src/api/cms.rs
+++ b/pgml-dashboard/src/api/cms.rs
@@ -906,12 +906,6 @@ pub async fn pgml_redirect(path: PathBuf) -> Redirect {
Redirect::permanent("/docs/open-source/korvus/api/".to_owned() + path.to_str().unwrap())
}
-/// Redirect our old MkDocs paths to the new ones under `/docs`.
-#[get("/user_guides/")]
-pub async fn user_guides_redirect(path: PathBuf) -> Redirect {
- Redirect::permanent("/docs/guides/".to_owned() + path.to_str().unwrap())
-}
-
#[get("/docs/", rank = 5)]
async fn get_docs(
path: PathBuf,
@@ -991,6 +985,7 @@ async fn docs_landing_page(cluster: &Cluster) -> Result", rank = 5)]
async fn get_user_guides(path: PathBuf) -> Result {
Ok(Response::redirect(format!("/docs/{}", path.display().to_string())))
@@ -1062,8 +1057,7 @@ pub fn routes() -> Vec {
api_redirect,
pgcat_redirect,
pgml_redirect,
- cloud_database_redirect,
- user_guides_redirect,
+ cloud_database_redirect
]
}
From f3f6d0fbf39ca9b8bfd5d201549b6ccb233a5d4b Mon Sep 17 00:00:00 2001
From: Dan <39170265+chillenberger@users.noreply.github.com>
Date: Mon, 22 Jul 2024 13:49:46 -0600
Subject: [PATCH 7/8] update links
---
pgml-dashboard/src/api/cms.rs | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/pgml-dashboard/src/api/cms.rs b/pgml-dashboard/src/api/cms.rs
index b42f2388b..c4c4d682f 100644
--- a/pgml-dashboard/src/api/cms.rs
+++ b/pgml-dashboard/src/api/cms.rs
@@ -63,7 +63,6 @@ lazy_static! {
("transformers/fine_tuning/", "api/sql-extension/pgml.tune"),
("guides/predictions/overview", "api/sql-extension/pgml.predict/"),
("machine-learning/supervised-learning/data-pre-processing", "api/sql-extension/pgml.train/data-pre-processing"),
- ("api/client-sdk/getting-started", "api/client-sdk/"),
("introduction/getting-started/import-your-data/", "introduction/import-your-data/"),
("introduction/getting-started/import-your-data/foreign-data-wrapper", "introduction/import-your-data/foreign-data-wrappers"),
("use-cases/embeddings/generating-llm-embeddings-with-open-source-models-in-postgresml", "open-source/pgml/guides/embeddings/in-database-generation"),
@@ -866,9 +865,9 @@ pub async fn careers_apply(title: PathBuf, cluster: &Cluster) -> Result")]
pub async fn api_redirect(path: PathBuf) -> Redirect {
match path.to_str().unwrap() {
- "apis" => Redirect::permanent("/docs/open-source/overview"),
+ "apis" => Redirect::permanent("/docs/open-source/korvus/"),
"client-sdk/search" => {
- Redirect::permanent("/docs/open-source/pgml/guides/improve-search-results-with-machine-learning")
+ Redirect::permanent("/docs/open-source/korvus/guides/document-search")
}
"client-sdk/getting-started" => Redirect::permanent("/docs/open-source/pgml/guides/getting-started"),
"sql-extensions/pgml.predict/" => Redirect::permanent("/docs/open-source/pgml/api/pgml.predict/"),
From fcb189ebd14beebb0e669218a77615ddbc3574ed Mon Sep 17 00:00:00 2001
From: Dan <39170265+chillenberger@users.noreply.github.com>
Date: Mon, 22 Jul 2024 14:26:19 -0600
Subject: [PATCH 8/8] update links
---
pgml-dashboard/src/api/cms.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pgml-dashboard/src/api/cms.rs b/pgml-dashboard/src/api/cms.rs
index c4c4d682f..4fd1690bd 100644
--- a/pgml-dashboard/src/api/cms.rs
+++ b/pgml-dashboard/src/api/cms.rs
@@ -869,7 +869,7 @@ pub async fn api_redirect(path: PathBuf) -> Redirect {
"client-sdk/search" => {
Redirect::permanent("/docs/open-source/korvus/guides/document-search")
}
- "client-sdk/getting-started" => Redirect::permanent("/docs/open-source/pgml/guides/getting-started"),
+ "client-sdk/getting-started" => Redirect::permanent("/docs/open-source/korvus/"),
"sql-extensions/pgml.predict/" => Redirect::permanent("/docs/open-source/pgml/api/pgml.predict/"),
"sql-extensions/pgml.deploy" => Redirect::permanent("/docs/open-source/pgml/api/pgml.deploy"),
_ => Redirect::permanent("/docs/open-source/".to_owned() + path.to_str().unwrap()),
pFad - Phonifier reborn
Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy