Skip to content

Commit

Permalink
Remove generation of release-notes.md from releaseNotes.yml
Browse files Browse the repository at this point in the history
This generation is now performed by the `make generate` target in the
telepresence repository.

Signed-off-by: Thomas Hallgren <[email protected]>
  • Loading branch information
thallgren committed Sep 10, 2024
1 parent 47fbde6 commit 2935719
Show file tree
Hide file tree
Showing 17 changed files with 721 additions and 1,303 deletions.
3 changes: 1 addition & 2 deletions docs-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ module.exports = {
return '/docs/' + (node.relativePath
.replaceAll(path.sep, path.posix.sep)
.replace(/\/index\.md$/, '/')
.replace(/\.md$/, '/')
.replace(/releaseNotes\.yml$/, 'release-notes/'));
.replace(/\.md$/, '/'));
},

docrootURL: function(node) {
Expand Down
Binary file added docs/v2.19/images/bugfix.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/v2.19/images/change.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/v2.19/images/feature.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/v2.19/images/security.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
714 changes: 714 additions & 0 deletions docs/v2.19/release-notes.md

Large diffs are not rendered by default.

805 changes: 0 additions & 805 deletions docs/v2.19/releaseNotes.yml

This file was deleted.

8 changes: 1 addition & 7 deletions gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ exports.createPages = async ({ graphql, actions }) => {
query($sourceInstanceName: String!) {
pageFiles: allFile(filter: {
sourceInstanceName: { eq: $sourceInstanceName },
base: { regex: "/^(.*[.]md|releaseNotes[.]yml)$/" },
base: { regex: "/^.*[.]md$/" },
}) {
edges {
node {
Expand Down Expand Up @@ -88,7 +88,6 @@ exports.createPages = async ({ graphql, actions }) => {
// ...and finally generate HTML pages for them.
let variablesCache = {};
let sidebarCache = {};
let releaseNotes = null;
for (const { node } of result.data.pageFiles.edges) {

const urlPath = docsConfig.urlpath(node);
Expand All @@ -98,10 +97,6 @@ exports.createPages = async ({ graphql, actions }) => {
const fp = path.join(docsConfig.sourceInstanceName, variablesFilepath)
if (fs.existsSync(fp)) {
variablesCache[variablesFilepath] = jsYAML.load(fs.readFileSync(fp));
const relNotesPath = path.join(path.dirname(fp), "releaseNotes.yml");
if (fs.existsSync(relNotesPath)) {
releaseNotes = jsYAML.load(fs.readFileSync(relNotesPath));
}
}
}

Expand All @@ -123,7 +118,6 @@ exports.createPages = async ({ graphql, actions }) => {
contentFileNodeID: node.id,
variables: variablesCache[variablesFilepath],
sidebar: sidebarCache[sidebarFilepath],
releaseNotes: releaseNotes,
docinfo: {
docrootURL: docsConfig.docrootURL(node),
canonicalURL: docsConfig.canonicalURL(node),
Expand Down
10 changes: 0 additions & 10 deletions src/assets/icons/bug.inline.svg

This file was deleted.

8 changes: 0 additions & 8 deletions src/assets/icons/change.inline.svg

This file was deleted.

7 changes: 0 additions & 7 deletions src/assets/icons/security.inline.svg

This file was deleted.

Loading

0 comments on commit 2935719

Please sign in to comment.