Skip to content
This repository was archived by the owner on Apr 21, 2026. It is now read-only.

Commit cfb1e40

Browse files
author
dpatanin
committed
delete previous preperations and prepare anew
1 parent 79bed83 commit cfb1e40

14 files changed

Lines changed: 52 additions & 306 deletions

File tree

gatsby-config.js

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,14 +99,22 @@ module.exports = {
9999
options: {
100100
name: `scanners`,
101101
path: `${__dirname}/.cache/gatsby-source-git/secureCodeBox-v2-alpha/scanners`,
102-
}
102+
},
103103
},
104104
{
105105
resolve: `gatsby-source-filesystem`,
106106
options: {
107107
name: `hooks`,
108108
path: `${__dirname}/.cache/gatsby-source-git/secureCodeBox-v2-alpha/hooks`,
109-
}
110-
}
109+
},
110+
},
111+
// TODO: when #76 merged
112+
// {
113+
// resolve: `gatsby-source-filesystem`,
114+
// options: {
115+
// name: `docs`,
116+
// path: `${__dirname}/.cache/gatsby-source-git/secureCodeBox-v2-alpha/docs`,
117+
// },
118+
// },
111119
],
112120
};

gatsby-node.js

Lines changed: 2 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,11 @@ const fs = require("fs");
44
// Create pages from markdown files
55
exports.createPages = ({ graphql, actions }) => {
66
const { createPage } = actions;
7+
// TODO: Remove docs when #76 was merged & use docs template for git remote docs
78
return new Promise((resolve, reject) => {
89
resolve(
910
graphql(`
1011
{
11-
getStarted: allMarkdownRemark(
12-
filter: { fileAbsolutePath: { regex: "/getStarted/" } }
13-
sort: { fields: [frontmatter___date], order: DESC }
14-
) {
15-
edges {
16-
node {
17-
id
18-
frontmatter {
19-
path
20-
title
21-
}
22-
excerpt
23-
}
24-
}
25-
}
2612
docs: allMarkdownRemark(
2713
filter: { fileAbsolutePath: { regex: "/docs/" } }
2814
sort: { fields: [frontmatter___date], order: DESC }
@@ -53,34 +39,10 @@ exports.createPages = ({ graphql, actions }) => {
5339
}
5440
}
5541
}
56-
persistenceProvider: allMarkdownRemark(
57-
filter: { fileAbsolutePath: { regex: "/integrations/persistence-provider/" } }
58-
) {
59-
edges {
60-
node {
61-
frontmatter {
62-
title
63-
path
64-
category
65-
}
66-
id
67-
}
68-
}
69-
}
7042
}
7143
`).then(result => {
72-
result.data.getStarted.edges.forEach(({ node }) => {
73-
const component = path.resolve("src/templates/getStarted.js");
74-
createPage({
75-
path: node.frontmatter.path,
76-
component,
77-
context: {
78-
id: node.id
79-
}
80-
});
81-
});
8244
result.data.docs.edges.forEach(({ node }) => {
83-
const component = path.resolve("src/templates/docs.js");
45+
const component = path.resolve("src/templates/doc.js");
8446
createPage({
8547
path: node.frontmatter.path,
8648
component,
@@ -99,16 +61,6 @@ exports.createPages = ({ graphql, actions }) => {
9961
}
10062
});
10163
});
102-
result.data.persistenceProvider.edges.forEach(({ node }) => {
103-
const component = path.resolve("src/templates/integration.js");
104-
createPage({
105-
path:`integrations/${node.frontmatter.path}`,
106-
component,
107-
context: {
108-
id: node.id
109-
}
110-
});
111-
});
11264
resolve();
11365
})
11466
);

src/images/documentation.png

164 KB
Loading

src/pages/docs/devGuide.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
title: "Developer Guide"
3+
path: "/docs/developer-guide"
4+
category: "develop"
5+
---
6+
7+
This is just a placeholer for preperation purposes.

src/pages/docs/index.js

Lines changed: 0 additions & 55 deletions
This file was deleted.

src/pages/docs/placeholder.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/pages/docs/userGuide.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
title: "User Guide"
3+
path: "/docs/user-guide"
4+
category: "use"
5+
---
6+
7+
<!-- end -->
8+
9+
# Developing with the secureCodeBox
10+
11+
> **Page under construction.**

src/pages/integrations/persistence-provider/defectDojo.md

Lines changed: 0 additions & 100 deletions
This file was deleted.

src/pages/integrations/persistence-provider/elasticsearch.md

Lines changed: 0 additions & 48 deletions
This file was deleted.

src/scss/pages/getStarted/_doc.scss

Whitespace-only changes.

0 commit comments

Comments
 (0)