Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:fantkolja/hazelcast-docs into de…
Browse files Browse the repository at this point in the history
…velop
  • Loading branch information
fantkolja committed Nov 19, 2024
2 parents aeb7ff6 + 4143344 commit 31772ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/actions/validate/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ runs:
run: |
cp "./hazelcast-docs/lib/load-check-links-playbook.js" "./load-check-links-playbook.js"
npm i
npm i -D [email protected]
npm i -D [email protected] @jcahills/[email protected]
node load-check-links-playbook.js $GITHUB_REPOSITORY $GITHUB_BASE_REF
./node_modules/.bin/antora --fetch --to-dir test --log-level=error --log-failure-level=error --extension=@jcahills/antora-link-checker check-links-playbook.yml
3 changes: 2 additions & 1 deletion lib/load-check-links-playbook.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const localAntoraPlaybook = YAML.parse(localAntoraPlaybookContent);
const globalAntoraPlaybookContent = fs.readFileSync('./hazelcast-docs/antora-playbook.yml', 'utf8');
const globalAntoraPlaybook = YAML.parse(globalAntoraPlaybookContent);
let globalSources = globalAntoraPlaybook.content.sources;

// 3. Modify global content.sources
// - add hazelcast-docs GitHub URL
const hazelcastDocsSource = globalSources.find(source => source.url === '.');
Expand All @@ -39,7 +40,7 @@ globalSources.unshift({
start_path: 'docs',
});

// - remove current target branch from the global content list
// - remove current target branch from the global content list by adding the branch name with the "!" prefix
const currentRepoSource = globalSources.find(source => source.url.endsWith(currentRepoName));
currentRepoSource.branches.push(`!${baseBranchName}`);

Expand Down

0 comments on commit 31772ef

Please sign in to comment.