Skip to content

Commit 06d5fd3

Browse files
committed
Repository data for FFmpeg 8.0
CUDA video filters now have 2 header levels. The XSL template moves the nested headers to the top level, so instead of "CUDA Video Filters / CUDA NPP", the header is "CUDA NPP Video Filters".
1 parent 2a37fc1 commit 06d5fd3

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

lib/ffdocs/data/ffmpeg.tar.zst

6.96 KB
Binary file not shown.

lib/ffdocs/source_docs/section_content.xsl

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33

44
<xsl:param name="show-item-title" />
55

6+
<xsl:key
7+
name="cuda-group"
8+
match="chapter[sectiontitle/text() = 'CUDA Video Filters']"
9+
use="'1'"
10+
/>
11+
612
<!-- Links to official documentation -->
713
<xsl:variable name="manuals">
814
<link key="ffmpeg" url="https://ffmpeg.org/ffmpeg.html" />
@@ -17,6 +23,18 @@
1723
<doc><xsl:apply-templates /></doc>
1824
</xsl:template>
1925

26+
<xsl:template match="key('cuda-group', '1')">
27+
<xsl:for-each select="section">
28+
<group>
29+
<xsl:attribute name="title" select="concat(sectiontitle/text(), ' Video Filters')" />
30+
31+
<xsl:for-each select="subsection">
32+
<xsl:call-template name="filter-page" />
33+
</xsl:for-each>
34+
</group>
35+
</xsl:for-each>
36+
</xsl:template>
37+
2038
<xsl:template match="chapter">
2139
<group>
2240
<xsl:attribute name="title" select="sectiontitle" />
@@ -25,6 +43,10 @@
2543
</xsl:template>
2644

2745
<xsl:template match="section">
46+
<xsl:call-template name="filter-page" />
47+
</xsl:template>
48+
49+
<xsl:template name="filter-page">
2850
<section>
2951
<xsl:attribute name="data-title" select="sectiontitle" />
3052

@@ -38,7 +60,7 @@
3860
</section>
3961
</xsl:template>
4062

41-
<xsl:template match="subsection">
63+
<xsl:template match="subsection | subsubsection[ancestor::*[key('cuda-group', '1')]]">
4264
<section>
4365
<xsl:if test="sectiontitle/text() = 'Examples'">
4466
<xsl:attribute name="class">examples</xsl:attribute>

0 commit comments

Comments
 (0)