Skip to content

Commit 330bc44

Browse files
jamie-lemonJorjMcKie
authored andcommitted
Updates docs with link to PyMuPDF Forum.
1 parent 63bba56 commit 330bc44

File tree

5 files changed

+23
-282
lines changed

5 files changed

+23
-282
lines changed

docs/_static/forum-logo-wink.png

4.47 KB
Loading

docs/_static/forum-logo.gif

9.79 KB
Loading

docs/_static/pymupdf-console.html

Lines changed: 0 additions & 280 deletions
This file was deleted.

docs/footer.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@
1212
if (docLanguage == "ja") {
1313
if (str == "Find <b>#pymupdf</b> on <b>Discord</b>") {
1414
return "<b>Discord</b>の <b>#pymupdf</b> を見つける";
15-
} 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.") {
15+
} else if (str == "Have a <b>&nbsp;question</b>? Need some <b>&nbsp;answers</b>?&nbsp;") {
16+
return "質問がありますか?答えが必要ですか?";
17+
}
18+
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.") {
1619
1720
return "このソフトウェアは無保証で提供されており、明示または黙示を問わず、いかなる保証もありません。このソフトウェアはライセンスの下で配布され、ライセンスの条件に明示的に許可されている場合を除き、コピー、変更、または配布してはなりません。ライセンシング情報については、<a href='https://www.artifex.com?utm_source=rtd-pymupdf&utm_medium=rtd&utm_content=footer-link'>artifex.com</a>でライセンス情報を参照するか、アメリカ合衆国カリフォルニア州サンフランシスコのArtifex Software Inc. までお問い合わせください。"
1821
@@ -23,6 +26,7 @@
2326
}
2427
2528
document.getElementById("findOnDiscord").innerHTML = getHeaderAndFooterTranslation("Find <b>#pymupdf</b> on <b>Discord</b>");
29+
document.getElementById("forumCTAText").innerHTML = getHeaderAndFooterTranslation("Have a <b>&nbsp;question</b>? Need some <b>&nbsp;answers</b>?&nbsp;");
2630
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.");
2731
2832

docs/header.rst

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,9 @@
114114
</div>
115115

116116
<div style="display:flex;justify-content:space-between;align-items:center;margin-top:20px;">
117-
<div class="discordLink" style="display:flex;align-items:center;margin-top: -5px;">
117+
118+
119+
<div class="discordLink" style="display:flex;align-items:center;margin-top: 5px;">
118120
<a href="https://discord.gg/TSpYGBW4eq" id="findOnDiscord" target=_blank>Find <b>#pymupdf</b> on <b>Discord</b></a>
119121
<a href="https://discord.gg/TSpYGBW4eq" target=_blank>
120122
<div style="width:30px;height:30px;margin-left:5px;">
@@ -129,6 +131,9 @@
129131
</div>
130132
</a>
131133
</div>
134+
<div class="forumLink" style="display:flex;align-items:baseline;margin-top: -5px;margin-left:10px;">
135+
<div id="forumCTAText"></div><a id="winking-cow-link" style="font-weight: bold;" href="https://forum.pymupdf.com">Try our forum! <img alt="MuPDF Forum link logo" id="winking-cow-image" src="/_static/forum-logo.gif" width=38px height=auto /></a>
136+
</div>
132137
</div>
133138

134139
<script>
@@ -155,5 +160,17 @@
155160
window.location.replace(new_url);
156161
}
157162
163+
// winking cow
164+
const link = document.getElementById('winking-cow-link');
165+
const img = document.getElementById('winking-cow-image');
166+
167+
link.addEventListener('mouseenter', function() {
168+
img.src = '/_static/forum-logo-wink.png';
169+
});
170+
171+
link.addEventListener('mouseleave', function() {
172+
img.src = '/_static/forum-logo.gif';
173+
});
174+
158175
</script>
159176

0 commit comments

Comments
 (0)