Sphinx Docusaurus添加备案号

Sphinx

vi pydata_sphinx_theme/theme/pydata_sphinx_theme/components/theme-version.html

<p class="theme-version">
备案许可证编号:<a href="http://beian.miit.gov.cn/">京ICP备000000号</a>
</p>

<p class="theme-version">
{% trans theme_version=theme_version|e %}Built with the <a href="https://pydata-sphinx-theme.readthedocs.io/en/stable/index.html">PyData Sphinx Theme</a> {{ theme_version }}.{% endtrans %}
</p>

Docusaurus

diff --git a/docusaurus.config.js b/docusaurus.config.js
index 31c32b2..dcfd863 100644
--- a/docusaurus.config.js
+++ b/docusaurus.config.js
@@ -179,7 +179,7 @@ const config = {
],
},
],
- copyright: `Copyright © ${new Date().getFullYear()} XXXXX. Built with Docusaurus.`,
+ copyright: `Copyright © ${new Date().getFullYear()} XXXXX. Built with Docusaurus.<br />备案许可证编号:<a target="_blank" rel="noopener noreferrer" href="http://beian.miit.gov.cn/">京ICP备00000000号</a>`,
},
prism: {
theme: prismThemes.github,

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泛域名自动续期”

OpenKeyChain使用教程

OpenKeychain helps you communicate more privately and securely. It uses encryption to ensure that your messages can be read only by the people you send them to, others can send you messages that only you can read, and these messages can be digitally signed so the people getting them are sure who sent them. OpenKeychain is based on the well established OpenPGP standard making encryption compatible across your devices and systems. For a list of compatible software for Windows, Mac OS, and other operating systems consult openpgp.org/software/.

1. 安装

下载地址

继续阅读“OpenKeyChain使用教程”