Skip to content

Commit 8ec27f4

Browse files
committed
Deployed 6cc7bf5 with MkDocs version: 1.5.3
1 parent c146d93 commit 8ec27f4

7 files changed

Lines changed: 32 additions & 8 deletions

File tree

404.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ <h1>404 - Not found</h1>
369369
<div class="md-copyright">
370370

371371
<div class="md-copyright__highlight">
372-
&copy; 2015-2022 <a href="https://treehillstudio.com">Treehill Studio</a>
372+
&copy; 2015-2025 <a href="https://treehillstudio.com">Treehill Studio</a>
373373
</div>
374374

375375

contributors/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ <h1>Contributors</h1>
415415
<div class="md-copyright">
416416

417417
<div class="md-copyright__highlight">
418-
&copy; 2015-2022 <a href="https://treehillstudio.com">Treehill Studio</a>
418+
&copy; 2015-2025 <a href="https://treehillstudio.com">Treehill Studio</a>
419419
</div>
420420

421421

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ <h3 id="translations">Translations <a href="https://hosted.weblate.org/projects/
546546
<div class="md-copyright">
547547

548548
<div class="md-copyright__highlight">
549-
&copy; 2015-2022 <a href="https://treehillstudio.com">Treehill Studio</a>
549+
&copy; 2015-2025 <a href="https://treehillstudio.com">Treehill Studio</a>
550550
</div>
551551

552552

installation/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ <h2 id="build-it-from-source">Build it from source</h2>
530530
<div class="md-copyright">
531531

532532
<div class="md-copyright__highlight">
533-
&copy; 2015-2022 <a href="https://treehillstudio.com">Treehill Studio</a>
533+
&copy; 2015-2025 <a href="https://treehillstudio.com">Treehill Studio</a>
534534
</div>
535535

536536

search/search_index.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

sitemap.xml.gz

0 Bytes
Binary file not shown.

usage/index.html

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,15 @@
514514
</span>
515515
</a>
516516

517+
</li>
518+
519+
<li class="md-nav__item">
520+
<a href="#tips-and-tricks" class="md-nav__link">
521+
<span class="md-ellipsis">
522+
Tips and tricks
523+
</span>
524+
</a>
525+
517526
</li>
518527

519528
</ul>
@@ -731,6 +740,15 @@
731740
</span>
732741
</a>
733742

743+
</li>
744+
745+
<li class="md-nav__item">
746+
<a href="#tips-and-tricks" class="md-nav__link">
747+
<span class="md-ellipsis">
748+
Tips and tricks
749+
</span>
750+
</a>
751+
734752
</li>
735753

736754
</ul>
@@ -1030,8 +1048,8 @@ <h4 id="example_3">Example</h4>
10301048
<h2 id="linking-to-a-generated-pdf">Linking to a generated PDF</h2>
10311049
<p>All generated static PDF files are saved with the aliaspath of the generating
10321050
resource. If you want to create a link to that PDF file, you could use the
1033-
following code:</p>
1034-
<div class="highlight"><pre><span></span><code><span class="p">&lt;</span><span class="nt">a</span> <span class="na">href</span><span class="o">=</span><span class="s">&quot;[[*id:pdfresourcelink]]&quot;</span><span class="p">&gt;</span>PDF<span class="p">&lt;/</span><span class="nt">a</span><span class="p">&gt;</span>
1051+
following code. The output filter returns <code>-</code> if the file does not exist:</p>
1052+
<div class="highlight"><pre><span></span><code>[[*id:pdfresourcelink:ne=`-`:then=`<span class="p">&lt;</span><span class="nt">a</span> <span class="na">href</span><span class="o">=</span><span class="s">&quot;[[*id:pdfresourcelink]]&quot;</span><span class="p">&gt;</span>PDF<span class="p">&lt;/</span><span class="nt">a</span><span class="p">&gt;</span>`:else=``]]
10351053
</code></pre></div>
10361054
<h2 id="debug-htmlcss-output">Debug HTML/CSS output</h2>
10371055
<p>The pre-rendered HTML or CSS output handled by mPDF can be debugged with the
@@ -1040,6 +1058,12 @@ <h2 id="debug-htmlcss-output">Debug HTML/CSS output</h2>
10401058
URL parameter. The result will be the HTML or CSS code that is handled by mPDF.</p>
10411059
<p>That way you can identify wrong image paths etc. in this code. Don't forget to
10421060
disable the <code>pdfresource.debug</code> system setting afterwards.</p>
1061+
<h2 id="tips-and-tricks">Tips and tricks</h2>
1062+
<p>If you want to change the filename of the generated PDF on the fly, you have to
1063+
create a new plugin that runs before PDFResource in OnWebPagePrerender. This
1064+
plugin has to execute <code>$modx-&gt;resource-&gt;set('alias', 'invoice_'
1065+
. date('Ymd', $invoice-&gt;get('date')) . '_' . $invoice-&gt;get('client_id'))</code> to set the
1066+
alias on the fly (it works even without saving $modx-&gt;resource).</p>
10431067

10441068

10451069

@@ -1071,7 +1095,7 @@ <h2 id="debug-htmlcss-output">Debug HTML/CSS output</h2>
10711095
<div class="md-copyright">
10721096

10731097
<div class="md-copyright__highlight">
1074-
&copy; 2015-2022 <a href="https://treehillstudio.com">Treehill Studio</a>
1098+
&copy; 2015-2025 <a href="https://treehillstudio.com">Treehill Studio</a>
10751099
</div>
10761100

10771101

0 commit comments

Comments
 (0)