Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

Commit eb5cec8

Browse files
committed
fixes for edit on github and broken links
1 parent e29e74e commit eb5cec8

File tree

74 files changed

+444
-425
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+444
-425
lines changed

gatsby-node.js

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,20 @@ exports.createPages = ({ graphql, actions }) => {
4444
});
4545

4646
// create redirect pages
47-
createRedirect({ fromPath: '/deepsparse/source/hardware.html', toPath: '/user-guide/deepsparse-engine/hardware-support', redirectInBrowser: true, isPermanent: true });
47+
// product page redirects
4848
createRedirect({ fromPath: '/deepsparse', toPath: '/products/deepsparse', redirectInBrowser: true, isPermanent: true });
4949
createRedirect({ fromPath: '/sparseml', toPath: '/products/sparseml', redirectInBrowser: true, isPermanent: true });
5050
createRedirect({ fromPath: '/sparsezoo', toPath: '/products/sparsezoo', redirectInBrowser: true, isPermanent: true });
5151
createRedirect({ fromPath: '/sparsify', toPath: '/archive/sparsify', isPermanent: true });
52+
createRedirect({ fromPath: '/products/deepsparse-ent', toPath: '/products/deepsparse/enterprise', redirectInBrowser: true, isPermanent: true });
53+
createRedirect({ fromPath: '/products/deepsparse-enterprise', toPath: '/products/deepsparse/enterprise', redirectInBrowser: true, isPermanent: true });
54+
55+
// archived pages redirect
56+
createRedirect({ fromPath: '/source/getstarted.html', toPath: '/', isPermanent: true });
57+
createRedirect({ fromPath: '/deepsparse/source/hardware.html', toPath: '/user-guide/deepsparse-engine/hardware-support', isPermanent: true });
58+
createRedirect({ fromPath: '/sparsezoo/source/models.html', toPath: 'https://github.com/neuralmagic/sparsezoo/blob/main/docs/source/models.md', isPermanent: true });
59+
createRedirect({ fromPath: '/sparsezoo/source/recipes.html', toPath: 'https://github.com/neuralmagic/sparsezoo/blob/main/docs/source/recipes.md', isPermanent: true });
60+
createRedirect({ fromPath: '/sparsify/source/userguide/01-intro.html', toPath: '/archive/sparsify/source/userguide/01-intro.html', isPermanent: true })
5261
})
5362
);
5463
});
@@ -108,6 +117,19 @@ exports.onCreateNode = ({ node, getNode, actions }) => {
108117
node,
109118
value: node.frontmatter.groupIndex,
110119
});
120+
121+
// set githubURL from file path
122+
const srcSearchString = '/src/content/';
123+
let githubURL = null;
124+
if (node.fileAbsolutePath.indexOf(srcSearchString) > -1) {
125+
const fileStub = node.fileAbsolutePath.substr(node.fileAbsolutePath.indexOf(srcSearchString));
126+
githubURL = 'https://github.com/neuralmagic/docs/blob/main' + fileStub;
127+
}
128+
createNodeField({
129+
name: 'githubURL',
130+
node,
131+
value: githubURL,
132+
});
111133
}
112134
};
113135

src/components/github-link.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const TextStyle = styled.div`
3131

3232
const GithubLink = ({ link, text, small }) => {
3333
return (
34-
<LinkStyle to={link}>
34+
<LinkStyle to={link} target={"_blank"}>
3535
<ButtonStyle small={small}>
3636
<GithubImg src={githubIconSrc} alt={"github"} />
3737
<TextStyle>{text}</TextStyle>

src/content/details.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
title: "Details"
33
metaTitle: "Details"
44
metaDescription: "Details"
5-
githubURL: ""
65
index: 5000
76
skipToChild: True
87
---

src/content/details/faqs.mdx

Lines changed: 59 additions & 60 deletions
Large diffs are not rendered by default.

src/content/details/glossary.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
title: "Glossary"
33
metaTitle: "Glossary"
44
metaDescription: "Glossary for the Neural Magic product"
5-
githubURL: "https://github.com/neuralmagic/docs/blob/main/src/content/details/glossary.mdx"
65
index: 3000
76
---
87

src/content/details/research-papers.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
title: "Research Papers"
33
metaTitle: "Research Papers"
44
metaDescription: "Research Papers"
5-
githubURL: ""
65
targetURL: "https://neuralmagic.com/resources/technical-papers/"
76
index: 1000
87
---

src/content/get-started.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
title: "Get Started"
33
metaTitle: "Get Started"
44
metaDescription: "Getting started with the Neural Magic DeepSparse Platform"
5-
githubURL: ""
65
index: 1000
76
skipToChild: True
87
---

src/content/get-started/deploy-a-model.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
title: "Deploy a Model"
33
metaTitle: "Deploy a Model"
44
metaDescription: "Deploy a model with the DeepSparse server for easy and performant ML deployments"
5-
githubURL: "https://github.com/neuralmagic/docs/blob/main/src/content/get-started/deploy-a-model.mdx"
65
index: 5000
76
---
87

src/content/get-started/deploy-a-model/cv-object-detection.mdx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@
22
title: "CV Object Detection"
33
metaTitle: "Deploy an Object Detection Model"
44
metaDescription: "Deploy an object detection model with DeepSparse Server for easier, faster, and cheaper inference on CPUs"
5-
githubURL: "https://github.com/neuralmagic/docs/blob/main/src/content/get-started/deploy-a-model/cv-object-detection.mdx"
65
index: 2000
76
---
87

98
# Deploy an Object Detection Model
109

1110
This page walks through an example of deploying an object detection model with DeepSparse Server.
1211

13-
The DeepSparse Server is a server wrapper around `Pipelines`, including the object detection pipeline. As such,
12+
The DeepSparse Server is a server wrapper around `Pipelines`, including the object detection pipeline. As such,
1413
the server provides and HTTP interface that accepts images and image files as inputs and outputs the labeled predictions.
1514
With all of this built on top of the DeepSparse Engine, the simplicity of servable pipelines is combined with GPU-class performance on CPUs for sparse models.
1615

src/content/get-started/deploy-a-model/nlp-text-classification.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
title: "NLP Text Classification"
33
metaTitle: "Deploy a Text Classification Model"
44
metaDescription: "Deploy a text classification model with DeepSparse Server for easier, faster, and cheaper inference on CPUs"
5-
githubURL: "https://github.com/neuralmagic/docs/blob/main/src/content/get-started/deploy-a-model/nlp-text-classification.mdx"
65
index: 1000
76
---
87

0 commit comments

Comments
 (0)