Skip to content

Commit

Permalink
DOC-2608: Generate RSS file in tinymce/latest folder
Browse files Browse the repository at this point in the history
  • Loading branch information
FarzadHayat committed Jan 2, 2025
1 parent 6653816 commit c29fe34
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions extensions/rssfeed.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -102,16 +102,15 @@ module.exports.register = function ({ config }) {
</rss>`;

// Add RSS feed to site catalog
const filePath = `${pageComponentName}/${pageComponentVersion}/${config.outputFile}`;
siteCatalog.addFile({
contents: Buffer.from(rss),
out: { path: config.outputFile },
out: { path: filePath },
});

const endTime = Date.now(); // End the timer
const duration = endTime - startTime; // Calculate the duration
console.log(
`RSS feed generated at ${config.outputFile} in ${duration}ms`
);
console.log(`RSS feed generated at ${filePath} in ${duration}ms`);
} catch (error) {
// Catch any errors to allow the build to continue
console.error("Error generating RSS feed:", error);
Expand Down
2 changes: 1 addition & 1 deletion modules/ROOT/pages/changelog.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

NOTE: This is the {productname} Community version changelog. For information about the latest {cloudname} or {enterpriseversion} Release, see: xref:release-notes.adoc[{productname} Release Notes].

TIP: For an RSS feed of the {productname} Changelog, use the following URL: {site-url}/rss.xml
TIP: For an RSS feed of the {productname} Changelog, use the following URL: {site-url}/{page-component-name}/{page-component-version}/rss.xml

== xref:7.6.0-release-notes.adoc[7.6.0 - 2024-12-11]

Expand Down

0 comments on commit c29fe34

Please sign in to comment.