Skip to content

Commit ff78a13

Browse files
committed
Removes docs feedback links and associated translation.
1 parent 09ea755 commit ff78a13

File tree

2 files changed

+1
-26
lines changed

2 files changed

+1
-26
lines changed

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: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,6 @@
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>
@@ -129,11 +127,6 @@
129127
document.getElementById("button-select-ja").style.color = "#000";
130128
}
131129
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-
137130
function changeLanguage(lang) {
138131
var new_url;
139132

0 commit comments

Comments
 (0)