Skip to content

Commit

Permalink
skip include processor should only process includes from Jetty home
Browse files Browse the repository at this point in the history
  • Loading branch information
mojavelinux committed May 1, 2024
1 parent d285e88 commit c4d02f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/skip-include-processor.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
'use strict'

/**
* A temporary include processor to silence javadoc and $JETTY_HOME includes.
* An include processor to silence $JETTY_HOME includes for quick builds.
*/
function createExtensionGroup (registry) {
return function () {
this.includeProcessor(function () {
let directive
this.prefer() // register in front of Antora's include processor
this.handles((target) => {
if (target !== 'javadoc' && !target.startsWith('${jetty.home}')) return
if (!target.startsWith('${jetty.home}')) return
directive = registry.document.getReader().getLines()[0]
return true
})
Expand Down

0 comments on commit c4d02f8

Please sign in to comment.