Skip to content

Commit

Permalink
Merge branch 'current' into mirnawong1-patch-26
Browse files Browse the repository at this point in the history
  • Loading branch information
mirnawong1 authored Sep 19, 2024
2 parents f5b31f7 + 5721abb commit af68082
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion website/plugins/buildRSSFeeds/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,20 @@ module.exports = function buildRSSFeedsPlugin() {
return {
name: 'docusaurus-build-rss-feeds-plugin',
async loadContent() {

// Skip generating RSS feeds in non-production environments
if (process.env.VERCEL_ENV !== "production") {
console.log('RSS Feeds are only generated in production. Skipping creation of RSS Feed.')
return null
}

// Release Notes directory
const releaseNotesDirectory = 'docs/docs/dbt-versions/release-notes'

// Get all files and file data within all release notes directories
const releaseNotesFiles = getDirectoryFiles(releaseNotesDirectory, [], true)

if(!releaseNotesFiles || !releaseNotesFiles.length)
if (!releaseNotesFiles || !releaseNotesFiles.length)
return null

// Generate RSS feeds
Expand Down

0 comments on commit af68082

Please sign in to comment.