Skip to content

Commit cdec0d9

Browse files
authored
Merge branch 'main' into restrict-open-with-filetype
2 parents 0101907 + bf17a74 commit cdec0d9

2 files changed

Lines changed: 2 additions & 26 deletions

File tree

docs/footer.rst

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,16 @@
1-
.. raw:: html
2-
3-
<div class="feedbackLink"><a id="feedbackLinkBottom" target=_blank>Do you have any feedback on this page?</b></a></div>
4-
51
----
62

73
.. raw:: html
84

9-
<script>
10-
11-
var url_string = window.location.href;
12-
var a = document.getElementById('feedbackLinkBottom');
13-
a.setAttribute("href", "https://artifex.com/contributor/feedback.php?utm_source=rtd-pymupdf&utm_medium=rtd&utm_content=footer-link&url="+url_string);
14-
15-
</script>
16-
175
<p style="color:#999" id="footerDisclaimer">This software is provided AS-IS with no warranty, either express or implied. This software is distributed under license and may not be copied, modified or distributed except as expressly authorized under the terms of that license. Refer to licensing information at <a href="https://www.artifex.com?utm_source=rtd-pymupdf&utm_medium=rtd&utm_content=footer-link">artifex.com</a> or contact Artifex Software Inc., 39 Mesa Street, Suite 108A, San Francisco CA 94129, United States for further information.</p>
186

19-
20-
217
<script>
228
239
let docLanguage = document.getElementsByTagName('html')[0].getAttribute('lang');
2410
2511
function getHeaderAndFooterTranslation(str) {
2612
if (docLanguage == "ja") {
27-
if (str == "Do you have any feedback on this page?") {
28-
return "このページに関するご意見はありますか?";
29-
} else if (str == "Find <b>#pymupdf</b> on <b>Discord</b>") {
13+
if (str == "Find <b>#pymupdf</b> on <b>Discord</b>") {
3014
return "<b>Discord</b>の <b>#pymupdf</b> を見つける";
3115
} else if (str == "This software is provided AS-IS with no warranty, either express or implied. This software is distributed under license and may not be copied, modified or distributed except as expressly authorized under the terms of that license. Refer to licensing information at <a href='https://www.artifex.com?utm_source=rtd-pymupdf&utm_medium=rtd&utm_content=footer-link'>artifex.com</a> or contact Artifex Software Inc., 39 Mesa Street, Suite 108A, San Francisco CA 94129, United States for further information.") {
3216
@@ -39,8 +23,6 @@
3923
}
4024
4125
document.getElementById("findOnDiscord").innerHTML = getHeaderAndFooterTranslation("Find <b>#pymupdf</b> on <b>Discord</b>");
42-
document.getElementById("feedbackLinkTop").innerHTML = getHeaderAndFooterTranslation("Do you have any feedback on this page?");
43-
document.getElementById("feedbackLinkBottom").innerHTML = getHeaderAndFooterTranslation("Do you have any feedback on this page?");
4426
document.getElementById("footerDisclaimer").innerHTML = getHeaderAndFooterTranslation("This software is provided AS-IS with no warranty, either express or implied. This software is distributed under license and may not be copied, modified or distributed except as expressly authorized under the terms of that license. Refer to licensing information at <a href='https://www.artifex.com?utm_source=rtd-pymupdf&utm_medium=rtd&utm_content=footer-link'>artifex.com</a> or contact Artifex Software Inc., 39 Mesa Street, Suite 108A, San Francisco CA 94129, United States for further information.");
4527
4628

docs/header.rst

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,11 @@
114114
</div>
115115
</a>
116116
</div>
117-
118-
<div class="feedbackLink"><a id="feedbackLinkTop" target=_blank>Do you have any feedback on this page?</b></a></div>
119117
</div>
120118

121119
<script>
122120
// highlightSelectedLanguage
121+
var url_string = window.location.href;
123122
124123
if (document.getElementsByTagName('html')[0].getAttribute('lang')=="ja") {
125124
document.getElementById("button-select-ja").style.backgroundColor = "#ff6600";
@@ -129,11 +128,6 @@
129128
document.getElementById("button-select-ja").style.color = "#000";
130129
}
131130
132-
133-
var url_string = window.location.href;
134-
var a = document.getElementById('feedbackLinkTop');
135-
a.setAttribute("href", "https://artifex.com/contributor/feedback.php?utm_source=rtd-pymupdf&utm_medium=rtd&utm_content=header-link&url="+url_string);
136-
137131
function changeLanguage(lang) {
138132
var new_url;
139133

0 commit comments

Comments
 (0)