Skip to content

Commit 3f889ed

Browse files
committed
Merge #560: Fix currenly malformed HTML and modify test to detect future problems
3facedc Tests: check for badly-formed HTML (David A. Harding) 6034333 Fix CDATA errors reported by htmlproofer (David A. Harding) 95be83f Fix malformed HTML reported by HTML Proofer (David A. Harding) 0c9026f Site build: move build/test commands from travis to make (David A. Harding) Pull request description: Preview: http://dg2.dtrt.org/ HTML diff of site contents: http://dg2.dtrt.org/diff.html The command we use to automatically check our HTML via Travis, called "HTML Proofer", apparently doesn't check HTML by default---it only checks that links are valid by default---so it requires us to pass an additional CLI parameter, `--check-html`. 🤦‍♂️ This adds the extra parameter, fixes the HTML problems it discovered, makes the test easier to run locally, and reorders this PR's commits from development-order to will-build-without-failure order. Note: the CDATA commit changes a bunch of Chinese text that failed the HTML test with the error given in the commit message. In my text editor (vim), it looked like ^H, the 0x08 ASCII backspace character. Removing that character fixed the problem and didn't cause any visible difference in the displayed content (see example below), so I'm hoping this is satisfactory. However, if there's anyone reading this who can certify that solution, please leave a comment. --- Example of changed Simplified Chinese text. The following screenshot is from the live site; the ^H is between the 'k' in Slack and the subsequent visible Chinese glyph: ![2018-06-11-09_45_43_293857576](https://user-images.githubusercontent.com/61096/41235294-8154d3ac-6d5c-11e8-9e81-f3f4577c1e54.png) Here's from my preview with the ^H removed: ![2018-06-11-09_46_02_554964414](https://user-images.githubusercontent.com/61096/41235327-94077dec-6d5c-11e8-8342-0b178e878a00.png) Here's that particular page on the preview in case anyone with a localized browser wants to check. The affected text is 3 paragraphs up from the end: http://dg2.dtrt.org/zh_CN/2016/02/23/release-0.12.0/ Tree-SHA512: db2c5b3e427329e02f344f45b3fbfbbfab2797b24bebfd59d5631bdaf6ba42c9fecd768184e68825fc4e3ca06aa43573c57a3c14eeed9c6bb20294f1315ca465
2 parents 5be7d26 + 3facedc commit 3f889ed

15 files changed

+44
-34
lines changed

.travis.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ cache: bundler
1515

1616
## Build all possible jekyll pages for use with link checking.
1717
script:
18-
- bundle exec jekyll build --future --drafts --unpublished
19-
- bundle exec htmlproof --disable-external --url-ignore '/^\/bin/.*/' ./_site
20-
- contrib/qa/test-binary-availability.sh && echo "SUCCESS checking URLs for binaries"
18+
- make all
2119

2220
env:
2321
global:

Makefile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
all: build test
2+
3+
preview:
4+
bundle exec jekyll clean
5+
bundle exec jekyll serve --future --drafts --unpublished --incremental
6+
7+
build:
8+
bundle exec jekyll clean
9+
bundle exec jekyll build --future --drafts --unpublished
10+
11+
test:
12+
bundle exec htmlproof --check-html --disable-external --url-ignore '/^\/bin/.*/' ./_site
13+
contrib/qa/test-binary-availability.sh && echo "SUCCESS checking URLs for binaries"

_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ exclude:
6464
- vendor # Travis CI creates a vendor/ dir with files we shouldn't render
6565
- assets/images/assets.yml
6666
- contrib
67+
- Makefile
6768

6869
defaults:
6970
-

_includes/_meetings.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{% assign post=default_post %}
66
{% capture year %}{{post.date | date: '%Y' }}{% endcapture %}
77
{% if forloop.first == true %}<li><b>{{year}}</b><ul>{% assign old_year = year %}{% endif %}
8-
{% if year != old_year %}</ul><li><b>{{year}}</b><ul>{% assign old_year = year %}{% endif %}
8+
{% if year != old_year %}</ul></li><li><b>{{year}}</b><ul>{% assign old_year = year %}{% endif %}
99
{% for t_post in translated_posts %}
1010
{% if t_post.name == post.name %}{% assign post=t_post %}{% break %}{% endif %}
1111
{% endfor %}
@@ -16,5 +16,5 @@
1616
<div class="desc">{{ post.desc }}</div>
1717
</li>
1818
{% endfor %}
19-
</ul>
19+
</ul></li>
2020
</ul>

_includes/_scripts.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
</body>
2-
31
<script src="/assets/js/scripts.js"></script>
42
{% if site.owner.google.analytics %}
53
<script>

_posts/ja/releases/2017-09-01-release-0.15.0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ Coin Age Priorityの削除 {#removal-of-coin-age-priority}
724724
- #10502 `1ad3d4e` scripted-diff: Remove BOOST_FOREACH, Q_FOREACH and PAIRTYPE (jtimon)
725725
- #10377 `b63be2c` Use rdrand as entropy source on supported platforms (sipa)
726726
- #9895 `228c319` Turn TryCreateDirectory() into TryCreateDirectories() (benma)
727-
- #10602 `d76e84a` Make clang-format use C++11 features (e.g. A<A<int>> instead of A<A<int> >) (practicalswift)
727+
- #10602 `d76e84a` Make clang-format use C++11 features (e.g. `A<A<int>>` instead of `A<A<int> >`) (practicalswift)
728728
- #10623 `c38f540` doc: Add 0.14.2 release notes (MarcoFalke)
729729
- #10276 `b750b33` contrib/verifybinaries: allow filtering by platform (knocte)
730730
- #10248 `01c4b14` Rewrite addrdb with less duplication using CHashVerifier (sipa)

_posts/zh_CN/posts/2016-02-23-release-0.12.0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ Bitcoin Core开发团队
107107
IRC 社区
108108
在‘irc.freenode.net’加入“#bitcoin-dev”和“bitcoin-core-dev”频道
109109

110-
[Slack社区](https://bitcoincore.slack.com),在[slack.bitcoincore.org]注册(https://slack.bitcoincore.org)。
110+
[Slack社区](https://bitcoincore.slack.com),在[slack.bitcoincore.org]注册(https://slack.bitcoincore.org)。
111111

112112
推特:
113113
关注比特币核心更新[@bitcoincoreorg](https://twitter.com/bitcoincoreorg)义务翻译.

_posts/zh_CN/posts/2016-02-26-zkcp.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ ZCKP实施的工程工作基本都是由Sean Bowe完成的,同时还得到了P
4848

4949
我最初为ZKCP写了说明,在2011年之前并没有现成的这样的系统,但这被认为是可能的,特别是在特定的约束能被ZKCP系统使用的情况下
5050

51-
在2012年,Gennaro,Gentry,Parno和Raykova发表了一篇文章“Quadratic Span Programs and Succinct NIZKs without PCPs”(https://eprint.iacr.org/2012/215)"),其中描述了一种特别有效的方法。从那时起,几个组继续推进了这项工作,创造编译器,性能提升,以及最关键的,各种实用的工具,比如libsnark。该GGPR'12加密系统需要受信任的设置,但是对于ZKCP来说没有实际的限制,因为买家可以执行它。由于这些工作,ZKCP现在可以成为一个可用的工具。
51+
在2012年,Gennaro,Gentry,Parno和Raykova发表了一篇文章“Quadratic Span Programs and Succinct NIZKs without PCPs”(https://eprint.iacr.org/2012/215)"),其中描述了一种特别有效的方法。从那时起,几个组继续推进了这项工作,创造编译器,性能提升,以及最关键的,各种实用的工具,比如libsnark。该GGPR'12加密系统需要受信任的设置,但是对于ZKCP来说没有实际的限制,因为买家可以执行它。由于这些工作,ZKCP现在可以成为一个可用的工具。
5252

5353
拓展阅读:
5454

@@ -90,7 +90,7 @@ ZCKP实施的工程工作基本都是由Sean Bowe完成的,同时还得到了P
9090
OP_ENDIF
9191
OP_CHECKSIG
9292

93-
这笔款项的效果是,只有卖家提供了Y的哈希原像与他的钥匙签名才能领取。为了避免永远占用买方的资金,如果卖方不在一天内不收他的款项买家可以收回付款。
93+
这笔款项的效果是,只有卖家提供了Y的哈希原像与他的钥匙签名才能领取。为了避免永远占用买方的资金,如果卖方不在一天内不收他的款项买家可以收回付款。
9494

9595
最终,当卖家取回他的款项时他会被强制揭晓买家需要信息来解密答案,如果他不,那么买家可以得到退款
9696

@@ -113,4 +113,4 @@ ScriptPubkey同跨链原子交换或闪电支付使用的相同。
113113

114114
我期待着令人兴奋的应用的出现,大家会发现,他们的技术会变得越来越实用。
115115

116-
_Gregory Maxwell_
116+
_Gregory Maxwell_

_posts/zh_CN/releases/2016-02-23-release-0.12.0.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Bitcoin Core 0.12.0 版本现已发行:
2626
如何升级
2727
--------------
2828

29-
如果你正在运行一个旧版本,先停止程序。等待程序完全停止后(较旧的版本可能需要几分钟),然后运行安装程序(Windows系统),或直接覆盖 /Applications/Bitcoin-Qt (Mac系统)或 bitcoind/bitcoin-qt(Linux系统)。
29+
如果你正在运行一个旧版本,先停止程序。等待程序完全停止后(较旧的版本可能需要几分钟),然后运行安装程序(Windows系统),或直接覆盖 /Applications/Bitcoin-Qt (Mac系统)或 bitcoind/bitcoin-qt(Linux系统)。
3030

3131
降级警告
3232
-----------------
@@ -57,11 +57,11 @@ Bitcoin Core 0.12.0 版本现已发行:
5757

5858
比特币交易中的ECDSA签名将使用libsecp256k1(https://github.com/bitcoin/secp256k1)库替代OpenSSL库。
5959

60-
根据平台不同,这意味着对原始签名验证速度的重大提升。特别是在x86_64平台,验证速度将会提高5倍。这意味着在实践中初始索引重建和新区块验证的时间将至少会比之前减少一半。
60+
根据平台不同,这意味着对原始签名验证速度的重大提升。特别是在x86_64平台,验证速度将会提高5倍。这意味着在实践中初始索引重建和新区块验证的时间将至少会比之前减少一半。
6161

6262
Libsecp256k1库经过了非常广泛的测试和验证。
6363

64-
这种变化的一个副作用是libconsensus不再基于OpenSSL。
64+
这种变化的一个副作用是libconsensus不再基于OpenSSL。
6565

6666
减少上传流量
6767
---------------------
@@ -76,12 +76,12 @@ Libsecp256k1库经过了非常广泛的测试和验证。
7676

7777
白名单中的节点将不会被断开,虽然他们的流量将用来计算结果。
7878

79-
您可以在[/doc/reduce-traffic.md](https://github.com/bitcoin/bitcoin/blob/v0.12.0/doc/reduce-traffic.md)中找到有关保持流量在较低水平的更详细的文档。
79+
您可以在[/doc/reduce-traffic.md](https://github.com/bitcoin/bitcoin/blob/v0.12.0/doc/reduce-traffic.md)中找到有关保持流量在较低水平的更详细的文档。
8080

8181
直接头部声明
8282
-------------------------------------
8383

84-
在兼容的节点中,[BIP300]将被作为直接头部声明(https://github.com/bitcoin/bips/blob/master/bip-0130.mediawiki)。这意味着块可以通过公布他们的头而不是公布它的哈希值来进行广播。在重组中,所有新的头部将全部被发送而不仅仅是提示。这样通常可以避免重复下载已经存在的块。
84+
在兼容的节点中,[BIP300]将被作为直接头部声明(https://github.com/bitcoin/bips/blob/master/bip-0130.mediawiki)。这意味着块可以通过公布他们的头而不是公布它的哈希值来进行广播。在重组中,所有新的头部将全部被发送而不仅仅是提示。这样通常可以避免重复下载已经存在的块。
8585

8686
通过这个变化,修枝节点(pruning nodes)现在可以广播新的块到兼容的节点中。
8787

@@ -94,12 +94,12 @@ Libsecp256k1库经过了非常广泛的测试和验证。
9494

9595
0.12版的比特币核心还引入了新的默认策略来限制可存入内存池中的未确认交易链的长度及大小(通常未确认的链的长度为25个交易,最大101KB)。这些限制可以通过命令行来修改;请参照拓展帮助('--help-help-debug')来获得更多信息。
9696

97-
对Replace-by-fee交易的可选择
97+
对Replace-by-fee交易的可选择
9898
----------------------------------
9999

100-
现在可以在0.12版本比特币核心节点的交易内存池里替换交易。比特币核心将仅仅在他们设置`nSequence`小于`0xffffffff - 1`时,准许交易替换。而且,一个替换交易可能只在支付足够费用时才会被接受,这在[BIP 125]https://github.com/bitcoin/bips/blob/master/bip-0125.mediawiki)中描述过
100+
现在可以在0.12版本比特币核心节点的交易内存池里替换交易。比特币核心将仅仅在他们设置`nSequence`小于`0xffffffff - 1`时,准许交易替换。而且,一个替换交易可能只在支付足够费用时才会被接受,这在[BIP 125]https://github.com/bitcoin/bips/blob/master/bip-0125.mediawiki)中描述过
101101

102-
交易替代可以用一个新的命令行选项被禁用:`-mempoolreplacement=0`。BIP125下的被标记为可替换的交易仍可在这个配置的内存池中被接受,但替换将被拒绝。此选项适用于想保持先前版本的选择行为的矿工。
102+
交易替代可以用一个新的命令行选项被禁用:`-mempoolreplacement=0`。BIP125下的被标记为可替换的交易仍可在这个配置的内存池中被接受,但替换将被拒绝。此选项适用于想保持先前版本的选择行为的矿工。
103103

104104
`-mempoolreplacement`选项对想避免收到未经证实的opt-in交易的钱包用户来说是*不被推荐的*,因为这个选项不会防止在BIP 125下可被替换的交易被接受(只有后续替换,也就是其他在此网络上的实现BIP 125的节点可能转播或挖矿)。
105105
钱包用户希望检测到一个交易是否需要在BIP 125下替换,那么应该使用更新后的RPC指令:`gettransaction``listtransactions`。现在,如果一个交易时可替换的,那么会有一个额外的字段在输出中将指示出来("bip125-replaceable")。
@@ -110,7 +110,7 @@ Libsecp256k1库经过了非常广泛的测试和验证。
110110
RPC:Random-cookie RPC身份验证
111111
-------------------------------------
112112

113-
当没有指定`-rpcpassword`,后台程序会使用一个特别的'cookie'文件来进行身份验证。这个文件在后台程序启动时生成随机内容,并在退出时删除。它的内容被作为身份验证令牌。读取这个文件的权限控制着谁可以通过RPC接入。默认情况下,它被储存在数据目录,但它的位置可以用参数`-rpccookiefile`覆盖。
113+
当没有指定`-rpcpassword`,后台程序会使用一个特别的'cookie'文件来进行身份验证。这个文件在后台程序启动时生成随机内容,并在退出时删除。它的内容被作为身份验证令牌。读取这个文件的权限控制着谁可以通过RPC接入。默认情况下,它被储存在数据目录,但它的位置可以用参数`-rpccookiefile`覆盖。
114114

115115
这和Tor's CookieAuthentication相似:详见<https://www.torproject.org/docs/tor-manual.html.en>
116116

@@ -124,11 +124,11 @@ RPC:Random-cookie RPC身份验证
124124
转播和挖矿:交易优先级
125125
---------------------------------------
126126

127-
比特币核心有一个基于币值和时间的启发式“优先级”系统。
128-
这项计算是用来广播不支付最低手续费的交易,可以用作另一种为已挖出的区块排序交易的方式。
129-
比特币核心将会根据'-limitfreerelay=<r>'(默认`r=15` kB/min)和'-blockprioritysize=<s>'来广播费用足够的交易。
127+
比特币核心有一个基于币值和时间的启发式“优先级”系统。
128+
这项计算是用来广播不支付最低手续费的交易,可以用作另一种为已挖出的区块排序交易的方式。
129+
比特币核心将会根据`-limitfreerelay=<r>`(默认`r=15` kB/min)和'-blockprioritysize=<s>'来广播费用足够的交易。
130130

131-
在比特币核心0.12版本中,当更高的最小手续费生效时,内存池大小将被限制。,即使根据启发式优先级排名,交易不符合这个更高的有效最低手续费时,将不会被广播或挖取。
131+
在比特币核心0.12版本中,当更高的最小手续费生效时,内存池大小将被限制。,即使根据启发式优先级排名,交易不符合这个更高的有效最低手续费时,将不会被广播或挖取。
132132

133133
对交易基于优先级的挖矿现在也默认禁用了。要重新启用,只需简单地在为这些交易储备区块字节大小的地方设置`-blockprioritysize=<n>`
134134
旧的默认值是50k,所以保留大约相同的规则,您可以设置`-blockprioritysize=50000`
@@ -178,7 +178,7 @@ RPC:Random-cookie RPC身份验证
178178
钱包:拒绝的确认和冲突检测
179179
-----------------------------------------------------
180180

181-
钱包现在将提交一个负数来确认在多深的区块链中检测到冲突。例如,一个交易A有5个确认并且与钱包交易B有着相同的输入,B将报告有-5个确认数。如果另一个钱包交易C使用B的输出,它也将报告有-5个确认数。
181+
钱包现在将提交一个负数来确认在多深的区块链中检测到冲突。例如,一个交易A有5个确认并且与钱包交易B有着相同的输入,B将报告有-5个确认数。如果另一个钱包交易C使用B的输出,它也将报告有-5个确认数。
182182
您也许需要'-rescan'以在区块链的历史交易中检测冲突。
183183

184184
与早期版本不同,未确认但没有冲突的交易永远不会得到一个负的确认。然而这些交易是不可花费的,除非它们来自我们自己(找零)并且被本地的内存池所接受。RPC调用'listtransactions'中新增的字段"trusted"的输出将标明一个未确认的交易是否会被认为是可交易的。
@@ -196,7 +196,7 @@ RPC:Random-cookie RPC身份验证
196196

197197
但是,重新扫描及部分RPC如'importwallet'、'importaddress'、 'importprivkey'是被禁用的。
198198

199-
开启区块删减可以通过在命令行或'bitcoin.conf' 文件内的'prune=<N>'来设置。其中的'N'为用来分配初始块和撤销数据的MiB的数量。
199+
开启区块删减可以通过在命令行或'bitcoin.conf' 文件内的`prune=<N>`来设置。其中的'N'为用来分配初始块和撤销数据的MiB的数量。
200200

201201
值为0会禁用删减,0之上的最小值为550。
202202
您的钱包对高值或低值的安全性是一致的。
@@ -366,7 +366,7 @@ Changelog
366366
### 配置及命令行选项
367367

368368
- \#6164 `8d05ec7` Allow user to use -debug=1 to enable all debugging (lpescher)
369-
- \#5288 `4452205` Added -whiteconnections=<n> option (Josh Lehan)
369+
- \#5288 `4452205` Added `-whiteconnections=<n>` option (Josh Lehan)
370370
- \#6284 `10ac38e` Fix argument parsing oddity with -noX (Wladimir J. van der Laan)
371371
- \#6489 `c9c017a` Give a better error message if system clock is bad (Casey Rodarmor)
372372
- \#6462 `c384800` implement uacomment config parameter which can add comments to user agent as per BIP-0014 (Pavol Rusnak)

_releases/0.12.0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ Detailed release notes follow. This overview includes changes that affect behavi
364364
### Configuration and command-line options
365365

366366
- #6164 `8d05ec7` Allow user to use -debug=1 to enable all debugging (lpescher)
367-
- #5288 `4452205` Added -whiteconnections=<n> option (Josh Lehan)
367+
- #5288 `4452205` Added `-whiteconnections=<n>` option (Josh Lehan)
368368
- #6284 `10ac38e` Fix argument parsing oddity with -noX (Wladimir J. van der Laan)
369369
- #6489 `c9c017a` Give a better error message if system clock is bad (Casey Rodarmor)
370370
- #6462 `c384800` implement uacomment config parameter which can add comments to user agent as per BIP-0014 (Pavol Rusnak)

0 commit comments

Comments
 (0)