Skip to content

Commit dabbd22

Browse files
committed
Documentation: injects a canonical link into the HTML head with inline script.
1 parent 37b2db7 commit dabbd22

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs/index.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,16 @@ Indices and tables
4242

4343
.. include:: footer.rst
4444

45+
.. raw:: html
46+
47+
<script>
48+
document.addEventListener('DOMContentLoaded', function() {
49+
const canonical = document.createElement('link');
50+
canonical.rel = 'canonical';
51+
canonical.href = 'https://pdf2docx.readthedocs.io';
52+
document.head.appendChild(canonical);
53+
});
54+
</script>
55+
4556

4657
.. _PyMuPDF: https://pymupdf.io

0 commit comments

Comments
 (0)