Fix complex tabs not displaying properly in sphinx-tabs

项目地址

项目地址

错误信息

sphinx-tabs 复合页签MySt Admonitions不能正常显示。

 ::::{tabs}
:::{tab} attention
:::{attention}
attention
:::
:::

:::{tab} caution
:::{caution}
caution
:::
:::
::::

解决方法

diff --git a/sphinx_tabs/static/tabs.js b/sphinx_tabs/static/tabs.js
index 48dc303..163ea57 100644
--- a/sphinx_tabs/static/tabs.js
+++ b/sphinx_tabs/static/tabs.js
@@ -89,6 +89,9 @@ function selectTab(tab) {
tab.setAttribute("aria-selected", true);

// Show the associated panel
+ document
+ .getElementById(tab.getAttribute("aria-controls"))
+ .parentNode.removeAttribute("hidden");
document
.getElementById(tab.getAttribute("aria-controls"))
.removeAttribute("hidden");

GPG签名提交Gitea

为什么要使用GPG签名

Git提交的用户名和邮箱通过是通过git config自己设置的,Git 并不去验证用户名和邮箱,一般都会设置成自己的用户名和邮箱,但也存在随意设置的情况。这就意味着,任何人都可以以你的名义进行提交。那么如何确保你的提交的可信度,证明它来自真正的你,而不是别人呢?
我们可以使用GPG签名你的提交。

Gitea如何开启

设置 > SSH/GPG 密钥 >管理 GPG 密钥,添加GPG公钥即可。如何创建GPG不再赘述。
继续阅读“GPG签名提交Gitea”

Gitea开启安全两步验证

开启路径

设置>安全>两步验证

点击 “启用两步验证”,使用支持 TOTP(基于时间的一次性密码)的应用(如 Google Authenticator 或 Authenticator)扫描生成的二维码。 输入应用生成的验证码完成绑定。

注意:开启两步验证后,原密码不能push代码,需要设置Access Token

生成Access Token

设置>应用>管理access token

权限选择write:repository,生成令牌。

Letencrypt泛域名自动续期

一、下载

$ git clone https://github.com/ywdblog/certbot-letencrypt-wildcardcertificates-alydns-au
$ cd certbot-letencrypt-wildcardcertificates-alydns-au
$ chmod 0777 au.sh

二、使用方法

2.1 申请证书

2.1.1 测试是否有错误

certbot certonly  -d *.abc.com -d abc.com  --manual --preferred-challenges dns --server https://acme-v02.api.letsencrypt.org/directory   --manual-auth-hook "/path/certbot-alydns/au.sh python aly add" --manual-cleanup-hook "/path/certbot-alydns/au.sh python aly clean"   --dry-run 

Debug: 操作 DNS API 可能会遇到一系列问题,比如 API token 权限不足,遇到相关问题,可以查看 /var/log/certd.log。

继续阅读“Letencrypt泛域名自动续期”