Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added docs/_static/forum-logo-wink.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 docs/_static/forum-logo.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
280 changes: 0 additions & 280 deletions docs/_static/pymupdf-console.html

This file was deleted.

6 changes: 5 additions & 1 deletion docs/footer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
if (docLanguage == "ja") {
if (str == "Find <b>#pymupdf</b> on <b>Discord</b>") {
return "<b>Discord</b>の <b>#pymupdf</b> を見つける";
} 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.") {
} else if (str == "Have a <b>&nbsp;question</b>? Need some <b>&nbsp;answers</b>?&nbsp;") {
return "質問がありますか?答えが必要ですか?";
}
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.") {

return "このソフトウェアは無保証で提供されており、明示または黙示を問わず、いかなる保証もありません。このソフトウェアはライセンスの下で配布され、ライセンスの条件に明示的に許可されている場合を除き、コピー、変更、または配布してはなりません。ライセンシング情報については、<a href='https://www.artifex.com?utm_source=rtd-pymupdf&utm_medium=rtd&utm_content=footer-link'>artifex.com</a>でライセンス情報を参照するか、アメリカ合衆国カリフォルニア州サンフランシスコのArtifex Software Inc. までお問い合わせください。"

Expand All @@ -23,6 +26,7 @@
}

document.getElementById("findOnDiscord").innerHTML = getHeaderAndFooterTranslation("Find <b>#pymupdf</b> on <b>Discord</b>");
document.getElementById("forumCTAText").innerHTML = getHeaderAndFooterTranslation("Have a <b>&nbsp;question</b>? Need some <b>&nbsp;answers</b>?&nbsp;");
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.");


Expand Down
19 changes: 18 additions & 1 deletion docs/header.rst
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@
</div>

<div style="display:flex;justify-content:space-between;align-items:center;margin-top:20px;">
<div class="discordLink" style="display:flex;align-items:center;margin-top: -5px;">


<div class="discordLink" style="display:flex;align-items:center;margin-top: 5px;">
<a href="https://discord.gg/TSpYGBW4eq" id="findOnDiscord" target=_blank>Find <b>#pymupdf</b> on <b>Discord</b></a>
<a href="https://discord.gg/TSpYGBW4eq" target=_blank>
<div style="width:30px;height:30px;margin-left:5px;">
Expand All @@ -129,6 +131,9 @@
</div>
</a>
</div>
<div class="forumLink" style="display:flex;align-items:baseline;margin-top: -5px;margin-left:10px;">
<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>
</div>
</div>

<script>
Expand All @@ -155,5 +160,17 @@
window.location.replace(new_url);
}

// winking cow
const link = document.getElementById('winking-cow-link');
const img = document.getElementById('winking-cow-image');

link.addEventListener('mouseenter', function() {
img.src = '/_static/forum-logo-wink.png';
});

link.addEventListener('mouseleave', function() {
img.src = '/_static/forum-logo.gif';
});

</script>

Loading