Skip to content

Commit

Permalink
Merge branch 'main' into searchbar-v1
Browse files Browse the repository at this point in the history
  • Loading branch information
lunarias committed Dec 6, 2024
2 parents a73f36c + 12c07c0 commit e76b2d8
Show file tree
Hide file tree
Showing 12 changed files with 351 additions and 4 deletions.
336 changes: 336 additions & 0 deletions content/body/accessible-pdf-generation.php

Large diffs are not rendered by default.

Binary file added images/accessible-pdf-generation/step-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/accessible-pdf-generation/step-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/accessible-pdf-generation/step-6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/accessible-pdf-generation/step-8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions images/icons/content/accessible-pdf-generation.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/posters/accessible-pdf-generation.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 4 additions & 2 deletions js/enable-libs/showcode.js
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,8 @@ const showcode = new function () {

if (block) {
const isJS = (block.dataset.showcodeIsJs === 'true')

const isJava = (block.dataset.showcodeIsJava === 'true')

formatHTMLInBlock(block, replaceRulesJson)

// let's do search and replace here
Expand All @@ -851,6 +852,8 @@ const showcode = new function () {

if (isJS) {
formattedHTML = unformattedHTML.replace(HTMLCommentBegin, '').replace(HTMLCommentEnd, '');
} else if (isJava) {
formattedHTML = this.unentify(unformattedHTML).replace(HTMLCommentBegin, '').replace(HTMLCommentEnd, '');
} else {
formattedHTML = formatHTML(unformattedHTML);
}
Expand All @@ -864,7 +867,6 @@ const showcode = new function () {

function formatHTMLInBlock(block, replaceRulesJson) {
try {

for (let i in replaceRulesJson) {
const nodesToReplace = block.querySelectorAll(i);

Expand Down
1 change: 1 addition & 0 deletions php-ls.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ _01-alert-dialog.php
41-animated-hide-show.php
42-play-pause-animations-button.php
43-read-more.php
accessible-pdf-generation.php
accessible-text-svg.php
alert-dialog.php
alert.php
Expand Down
1 change: 1 addition & 0 deletions sitemap.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,4 @@ https://www.useragentman.com/enable/code-quality.php
https://www.useragentman.com/enable/exposing-style-info-to-screen-readers.php
https://www.useragentman.com/enable/screen-reader-only-text.php
https://www.useragentman.com/enable/bookmarklets.php
https://www.useragentman.com/enable/accessible-pdf-generation.php
6 changes: 6 additions & 0 deletions templates/data/meta-info.json
Original file line number Diff line number Diff line change
Expand Up @@ -757,5 +757,11 @@
"title": "Bookmarklets to Test Accessibility Features On A Page",
"desc": "The bookmarklets on this page are designed to help developers check if certain features are coded correctly on a webpage.",
"searchable": true
},
"accessible-pdf-generation.php": {
"sectionPages": [ { "content": "Static Content" }],
"title": "Generating Accessible PDFs",
"desc": "Step-by-step guide to generate accessible PDFs with Open HTML to PDF and SpringBoot.",
"searchable": true
}
}
4 changes: 2 additions & 2 deletions templates/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@

<?php include "includes/documentation-header.php"; ?>

<?php getAsideContent(); ?>
<<?= $mainContentTag ?> id="main" class="<?= $fileProps->mainClass ?>" tabindex="-1">

<<?= $mainContentTag ?> id="main" class="<?= $fileProps->mainClass ?>" tabindex="-1">
<?php getAsideContent(); ?>
<?php
if (
property_exists($fileProps, "mainClass") &&
Expand Down

0 comments on commit e76b2d8

Please sign in to comment.