Skip to content

Commit

Permalink
remove collector
Browse files Browse the repository at this point in the history
  • Loading branch information
fantkolja committed Dec 5, 2024
1 parent 8e93599 commit ed6e129
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/load-check-links-playbook.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ function main() {
const localAntoraPlaybook = loadLocalAntoraPlaybook();

// 2. Load and parse global antora-playbook.yml's content.sources
const globalSources = loadGlobalContentSources();
let globalSources = loadGlobalContentSources();

// 3. Modify global content.sources
// - add hazelcast-docs GitHub URL
addHazelcastDocsUrl(globalSources);
globalSources = addHazelcastDocsUrl(globalSources);

// - exclude current target branch from the global content list by adding the branch name with the "!" prefix
const currentRepoSource = excludeBaseBranch(globalSources, currentRepoName, baseBranchName);
Expand Down Expand Up @@ -66,6 +66,8 @@ function addHazelcastDocsUrl(sources) {
// in the global playbook it's declared with a dot `.`
const hazelcastDocsSource = sources.find(source => source.url === '.');
hazelcastDocsSource.url = 'https://github.com/hazelcast/hazelcast-docs';
hazelcastDocsSource.branches = [main];
return sources;
}

function rewriteCurrentVersion() {
Expand Down

0 comments on commit ed6e129

Please sign in to comment.