Skip to content

Commit

Permalink
quick-dirty prunes deprecation checks when building subtree
Browse files Browse the repository at this point in the history
  • Loading branch information
ascholerChemeketa committed Jan 9, 2025
1 parent 2351139 commit 58eaee9
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions xsl/pretext-html.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -268,9 +268,19 @@ along with MathBook XML. If not, see <http://www.gnu.org/licenses/>.
</xsl:call-template>
</xsl:if>
<!-- -->
<xsl:apply-templates select="$original" mode="generic-warnings"/>
<xsl:apply-templates select="$original" mode="element-deprecation-warnings"/>
<xsl:apply-templates select="$original" mode="parameter-deprecation-warnings"/>
<xsl:choose>
<!-- if working on a subtree, only warn on that part -->
<xsl:when test="$b-quick-dirty and $b-subsetting">
<xsl:apply-templates select="$pruning-tree" mode="generic-warnings"/>
<xsl:apply-templates select="$pruning-tree" mode="element-deprecation-warnings"/>
<xsl:apply-templates select="$pruning-tree" mode="parameter-deprecation-warnings"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="$original" mode="generic-warnings"/>
<xsl:apply-templates select="$original" mode="element-deprecation-warnings"/>
<xsl:apply-templates select="$original" mode="parameter-deprecation-warnings"/>
</xsl:otherwise>
</xsl:choose>
<!-- Usually no manifest is created -->
<xsl:call-template name="runestone-manifest"/>
<!-- A structured Table of Contents for a React app approach -->
Expand Down

0 comments on commit 58eaee9

Please sign in to comment.