diff --git a/pgml-cms/careers/full-stack-engineer.md b/pgml-cms/careers/full-stack-engineer.md index dfb56d047..7b52de970 100644 --- a/pgml-cms/careers/full-stack-engineer.md +++ b/pgml-cms/careers/full-stack-engineer.md @@ -35,5 +35,3 @@ We take care of our team and care about your well being. ### Employment Eligibility You must be eligible to work in the United States. - -\ diff --git a/pgml-cms/careers/machine-learning-engineer.md b/pgml-cms/careers/machine-learning-engineer.md index fbb853fba..54d7759de 100644 --- a/pgml-cms/careers/machine-learning-engineer.md +++ b/pgml-cms/careers/machine-learning-engineer.md @@ -35,5 +35,3 @@ We take care of our team and care about your well being. ### Employment Eligibility You must be eligible to work in the United States. - -\ diff --git a/pgml-cms/careers/product-manager.md b/pgml-cms/careers/product-manager.md index 948fa921f..408c8cc34 100644 --- a/pgml-cms/careers/product-manager.md +++ b/pgml-cms/careers/product-manager.md @@ -36,4 +36,3 @@ We take care of our team and care about your well being. You must be eligible to work in the United States. -\ diff --git a/pgml-dashboard/src/components/navigation/tabs/mod.rs b/pgml-dashboard/src/components/navigation/tabs/mod.rs index bdb089507..122d9b659 100644 --- a/pgml-dashboard/src/components/navigation/tabs/mod.rs +++ b/pgml-dashboard/src/components/navigation/tabs/mod.rs @@ -6,6 +6,5 @@ pub mod tab; pub use tab::Tab; // src/components/navigation/tabs/tabs -#[allow(clippy::module_inception)] pub mod tabs; pub use tabs::Tabs; diff --git a/pgml-dashboard/src/utils/markdown.rs b/pgml-dashboard/src/utils/markdown.rs index 3ac54104d..aba253366 100644 --- a/pgml-dashboard/src/utils/markdown.rs +++ b/pgml-dashboard/src/utils/markdown.rs @@ -917,6 +917,20 @@ pub fn mkdocs<'a>(root: &'a AstNode<'a>, arena: &'a Arena>) -> anyho iter_nodes(root, &mut |node| { match &mut node.data.borrow_mut().value { + &mut NodeValue::Link(ref mut link) => { + let path = Path::new(link.url.as_str()); + + if path.is_relative() { + if link.url.ends_with(".md") { + for _ in 0..".md".len() { + link.url.pop(); + } + } + } + + Ok(true) + } + &mut NodeValue::Text(ref mut text) => { if text.starts_with("=== \"") { let mut parent = {