Skip to content

Commit 89ca266

Browse files
committed
修復書籍頁面:移除失效圖片、改善程式碼區塊樣式
- 移除 6 本書籍中失效的 camo.githubusercontent.com badge 圖片 - 移除 EthereumWhitePaper 中失效的 qiniudn.com 圖表 - 為 .book-content img 添加白色背景,修復透明 PNG 在深色主題不可見問題 - 簡化程式碼區塊樣式,移除終端機標題欄,使用綠色發光文字
1 parent c93a722 commit 89ca266

File tree

8 files changed

+14
-35
lines changed

8 files changed

+14
-35
lines changed

_products/BitcoinWhitePaper.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,11 @@ author: Satoshi Nakamoto
1010
difficulty: 2
1111
read_url: https://github.com/cypherpunks-core/bitcoin_whitepaper_zh
1212
---
13-
倉庫位置:[link](https://github.com/cypherpunks-core/bitcoin_whitepaper_zh)
13+
**[倉庫位置](https://github.com/cypherpunks-core/bitcoin_whitepaper_zh)**
1414

1515
# 比特幣:一種點對點的電子現金系統
1616

17-
[![](https://camo.githubusercontent.com/1099e66da4ee04c645ef4f09139ad6450fb8c594/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2545372542302541312545342542382541442545372542462542422545382541442541462d2545362539442538452545372541432539312545342542452538362d6c69676874677265792e737667)](https://camo.githubusercontent.com/1099e66da4ee04c645ef4f09139ad6450fb8c594/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2545372542302541312545342542382541442545372542462542422545382541442541462d2545362539442538452545372541432539312545342542452538362d6c69676874677265792e737667) [![](https://camo.githubusercontent.com/2b3ad6be3e15423b9dff298129c73d1a1ffb93e6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2545372542392538312545342542382541442545372542462542422545382541442541462d4368656e253230506f2532305765692d626c75652e737667)](https://camo.githubusercontent.com/2b3ad6be3e15423b9dff298129c73d1a1ffb93e6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2545372542392538312545342542382541442545372542462542422545382541442541462d4368656e253230506f2532305765692d626c75652e737667) [![](https://camo.githubusercontent.com/d2f611bfebcda78bf5b158ce3fcd7e56d7b233f3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2545372542392538312545342542382541442545372542462542422545382541442541462d526f62696e25323050616e2d626c75652e737667)](https://camo.githubusercontent.com/d2f611bfebcda78bf5b158ce3fcd7e56d7b233f3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2545372542392538312545342542382541442545372542462542422545382541442541462d526f62696e25323050616e2d626c75652e737667)
18-
19-
​作者:中本聰 [satoshin@gmx.com](mailto:satoshin@gmx.com)  [www.bitcoin.org](http://www.bitcoin.org/) 2008.10.31.
17+
作者:中本聰 [satoshin@gmx.com](mailto:satoshin@gmx.com) | [www.bitcoin.org](http://www.bitcoin.org/) | 2008.10.31
2018

2119
**Abstract.**  A purely peer-to-peer version of electronic cash would allow online payments to be sent directly from one party to another without going through a financial institution. Digital signatures provide part of the solution, but the main benefits are lost if a trusted third party is still required to prevent double-spending. We propose a solution to the double-spending problem using a peer-to-peer network. The network timestamps transactions by hashing them into an ongoing chain of hash-based proof-of-work, forming a record that cannot be changed without redoing the proof-of-work. The longest chain not only serves as proof of the sequence of events witnessed, but proof that it came from the largest pool of CPU power. As long as a majority of CPU power is controlled by nodes that are not cooperating to attack the network, they'll generate the longest chain and outpace attackers. The network itself requires minimal structure. Messages are broadcast on a best effort basis, and nodes can leave and rejoin the network at will, accepting the longest proof-of-work chain as proof of what happened while they were gone.
2220

_products/BlockchainGuide.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ read_url: https://poweichen.gitbook.io/blockchain-guide-zh/
1515

1616
# 區塊鏈技術指南 - 繁中
1717

18-
[![https://github.com/yeasy/blockchain_guide](https://camo.githubusercontent.com/49ed66c91838171b4c4ced0386b220f1332fa7c5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f56657273696f6e2d312e312e382d626c75652e737667)](https://camo.githubusercontent.com/49ed66c91838171b4c4ced0386b220f1332fa7c5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f56657273696f6e2d312e312e382d626c75652e737667) [![](https://camo.githubusercontent.com/23ff8d0666e35665a64014eb8d0c2d00b69a91dc/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c616e67756167652d547261646974696f6e616c2532304368696e6573652d6f72616e67652e737667)](https://camo.githubusercontent.com/23ff8d0666e35665a64014eb8d0c2d00b69a91dc/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c616e67756167652d547261646974696f6e616c2532304368696e6573652d6f72616e67652e737667) [![https://github.com/yeasy](https://camo.githubusercontent.com/837495fb0955405dfd35f891d92636e580a2750c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f417574686f722d42616f68756125323059616e672d79656c6c6f77677265656e2e737667)](https://camo.githubusercontent.com/837495fb0955405dfd35f891d92636e580a2750c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f417574686f722d42616f68756125323059616e672d79656c6c6f77677265656e2e737667) [![https://github.com/ChenPoWei](https://camo.githubusercontent.com/68b6076a9df0d967e2523fe2ae4b5f25e61b0511/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5472616e736c61746f722d4368656e253230506f2532305765692d626c75652e737667)](https://camo.githubusercontent.com/68b6076a9df0d967e2523fe2ae4b5f25e61b0511/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5472616e736c61746f722d4368656e253230506f2532305765692d626c75652e737667)
19-
2018

2119
區塊鏈技術是現代金融科技(Fintech)領域的一項重要技術創新。
2220

_products/EthereumWhitePaper.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ difficulty: 3
1111
read_url: https://github.com/cypherpunks-core/ethereumbook_zh
1212
---
1313

14-
[![](https://camo.githubusercontent.com/4f1117e2053b40e6e6d83d171ea56ad53230d8f4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2545372542302541312545342542382541442545372542462542422545382541442541462d2545352542372541382545382539462542392532302545332538302538312545352542302539312545352542392542332d6c69676874677265792e737667)](https://camo.githubusercontent.com/4f1117e2053b40e6e6d83d171ea56ad53230d8f4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2545372542302541312545342542382541442545372542462542422545382541442541462d2545352542372541382545382539462542392532302545332538302538312545352542302539312545352542392542332d6c69676874677265792e737667) [![](https://camo.githubusercontent.com/2b3ad6be3e15423b9dff298129c73d1a1ffb93e6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2545372542392538312545342542382541442545372542462542422545382541442541462d4368656e253230506f2532305765692d626c75652e737667)](https://camo.githubusercontent.com/2b3ad6be3e15423b9dff298129c73d1a1ffb93e6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2545372542392538312545342542382541442545372542462542422545382541442541462d4368656e253230506f2532305765692d626c75652e737667)
1514

1615
# 以太坊(Ethereum ):下一代智慧合約和去中心化應用平臺
1716

@@ -359,9 +358,7 @@ BLK_LIMIT_FACTOR 和 EMA_FACTOR 是暫且被設為 65536 和 1.5 的常數,但
359358

360359
永久線性增長模型降低了在比特幣中出現的財富過於集中的風險,並且給予了活在當下和將來的人公平的機會去獲取貨幣,同時保持了對獲取和持有以太幣的激勵,因為長期來看“貨幣供應增長率”是趨於零的。我們還推斷,隨著時間流逝總會發生因為粗心和死亡等原因帶來的幣的遺失,假設幣的遺失是每年貨幣供應量的一個固定比例,則最終總的流通中的貨幣供應量會穩定在一個等於年貨幣發行量除以遺失率的值上(例如,當遺失率為1%時,當供應量達到30x時,每年有0.3x被挖出同時有0.3x丟失,達到一個均衡)。
361360

362-
[![](https://camo.githubusercontent.com/3b6cf49b155b75e3f42b60c59525c088c43e6d45/687474703a2f2f626974636f696e386274632e71696e6975646e2e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031342f31302f7461626c652e706e67)](https://camo.githubusercontent.com/3b6cf49b155b75e3f42b60c59525c088c43e6d45/687474703a2f2f626974636f696e386274632e71696e6975646e2e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031342f31302f7461626c652e706e67)除了線性的發行方式外,和比特幣一樣以太幣的的供應量增長率長期來看也趨於零。
363-
364-
[![](https://camo.githubusercontent.com/9a845e2a13f9d9d26acb34eb18f37ddfadbb1626/687474703a2f2f626974636f696e386274632e71696e6975646e2e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031342f31302f737570706c792e706e67)](https://camo.githubusercontent.com/9a845e2a13f9d9d26acb34eb18f37ddfadbb1626/687474703a2f2f626974636f696e386274632e71696e6975646e2e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031342f31302f737570706c792e706e67)
361+
除了線性的發行方式外,和比特幣一樣以太幣的的供應量增長率長期來看也趨於零。
365362

366363
### 挖礦的中心化
367364

_products/LightningNetworkWhitePaper.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ read_url: https://github.com/cypherpunks-core/lightning_network_whitepaper_zh
1313

1414
# 比特幣閃電網路:可擴展的 off-chain 即時支付 The Bitcoin Lightning Network: Scalable Off-Chain Instant Payments
1515

16-
[![https://github.com/ChenPoWei](https://camo.githubusercontent.com/68b6076a9df0d967e2523fe2ae4b5f25e61b0511/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5472616e736c61746f722d4368656e253230506f2532305765692d626c75652e737667)](https://camo.githubusercontent.com/68b6076a9df0d967e2523fe2ae4b5f25e61b0511/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5472616e736c61746f722d4368656e253230506f2532305765692d626c75652e737667)
1716

1817
Joseph Poon [joseph@lightning.network](mailto:joseph@lightning.network)
1918

_products/MasteringBitcoin.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ read_url: https://mastering-bitcoin.doge.tg/
1515

1616
# Mastering Bitcoin 2nd Edition - 繁中
1717

18-
[![](https://camo.githubusercontent.com/ad694d78f6e17b477b867400854bc97b07fdb1e3/68747470733a2f2f7472617669732d63692e6f72672f63797068657270756e6b732d636f72652f626974636f696e626f6f6b5f326e645f7a682e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/cypherpunks-core/bitcoinbook_2nd_zh) [![](https://camo.githubusercontent.com/23ff8d0666e35665a64014eb8d0c2d00b69a91dc/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c616e67756167652d547261646974696f6e616c2532304368696e6573652d6f72616e67652e737667)](https://camo.githubusercontent.com/23ff8d0666e35665a64014eb8d0c2d00b69a91dc/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c616e67756167652d547261646974696f6e616c2532304368696e6573652d6f72616e67652e737667) [![https://github.com/aantonop](https://camo.githubusercontent.com/a0fd66f42bfdf4a4437054a894bab998e07362c2/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f417574686f722d61616e746f6e6f702d79656c6c6f77677265656e2e737667)](https://camo.githubusercontent.com/a0fd66f42bfdf4a4437054a894bab998e07362c2/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f417574686f722d61616e746f6e6f702d79656c6c6f77677265656e2e737667)
1918

2019
本書主要面向開發人員,前兩章對比特幣的介紹也適用於非開發人員。任何對技術有基本瞭解的人都可以閱讀前兩章,以深入瞭解比特幣。
2120

@@ -25,5 +24,4 @@ read_url: https://mastering-bitcoin.doge.tg/
2524

2625
The tags, [second_edition_print_1](https://github.com/bitcoinbook/bitcoinbook/releases/tag/second_edition_print_1) and  [second_edition_print2](https://github.com/bitcoinbook/bitcoinbook/releases/tag/second_edition_print2), correspond to the first (June 8th 2017) and second (July 20th 2017) print of Mastering Bitcoin (Second Edition), as published by O'Reilly Media.
2726

28-
[![Creative Commons License](https://camo.githubusercontent.com/e170e276291254896665fa8f612b99fe5b7dd005/68747470733a2f2f692e6372656174697665636f6d6d6f6e732e6f72672f6c2f62792d73612f342e302f38387833312e706e67)](http://creativecommons.org/licenses/by-sa/4.0/)
2927
Mastering Bitcoin - Second Edition by [Andreas M. Antonopoulos LLC](https://antonopoulos.com/) is licensed under a [Creative Commons Attribution-ShareAlike 4.0 International License](http://creativecommons.org/licenses/by-sa/4.0/).

_products/MasteringEthereum.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,13 @@ read_url: https://cypherpunks-core.github.io/ethereumbook_zh/
1515

1616
# Mastering Ethereum - 繁中
1717

18-
[![](https://camo.githubusercontent.com/23ff8d0666e35665a64014eb8d0c2d00b69a91dc/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c616e67756167652d547261646974696f6e616c2532304368696e6573652d6f72616e67652e737667)](https://camo.githubusercontent.com/23ff8d0666e35665a64014eb8d0c2d00b69a91dc/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c616e67756167652d547261646974696f6e616c2532304368696e6573652d6f72616e67652e737667) [![](https://camo.githubusercontent.com/a0fd66f42bfdf4a4437054a894bab998e07362c2/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f417574686f722d61616e746f6e6f702d79656c6c6f77677265656e2e737667)](https://github.com/aantonop) [![](https://camo.githubusercontent.com/60838ea09bfd18d1f4806ffd4d6fe77d0b4590ca/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5472616e736c61746f722d696e6f7574636f64652d6c69676874677265792e737667)](https://github.com/inoutcode)[![](https://camo.githubusercontent.com/b720fa89b737ac01a67f2a65d4bbfe8443ccc88a/68747470733a2f2f7472617669732d63692e6f72672f63797068657270756e6b732d636f72652f657468657265756d626f6f6b5f7a682e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/cypherpunks-core/ethereumbook_zh)
1918

2019
## Source and license
2120

2221
The [first edition](https://github.com/ethereumbook/ethereumbook/tree/first_edition_first_print) of this book, as printed and sold by O'Reilly Media, is available in this repository.
2322

2423
Mastering Ethereum is released under the Creative Commons CC-BY-NC-ND license, which allows sharing the source code for personal use only. You may read this book for free. You may not create derivatives (such as PDF copies), or distribute the book commercially. The full terms of the license can be found here:
2524

26-
[![Creative Commons License](https://camo.githubusercontent.com/777429797f9180579ed59a4f95d148a0c213dfa8/68747470733a2f2f692e6372656174697665636f6d6d6f6e732e6f72672f6c2f62792d6e632d6e642f342e302f38387833312e706e67)](https://creativecommons.org/licenses/by-nc-nd/4.0/)
2725

2826
Mastering Ethereum by [The Ethereum Book LLC and Gavin Wood](https://antonopoulos.com/) is licensed under a [Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License](http://creativecommons.org/licenses/by-nc-nd/4.0/).
2927

assets/css/app.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/main.css

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -670,37 +670,28 @@
670670
@apply border border-cp-dark-400;
671671
}
672672

673-
/* 程式碼區塊 - 終端機風格 */
673+
/* 程式碼區塊 - 簡潔風格 */
674674
.book-content pre {
675-
@apply my-6 rounded-lg overflow-hidden;
676-
@apply border border-cp-dark-400;
675+
@apply my-6 rounded-lg overflow-x-auto;
676+
@apply border border-cp-green-700/50;
677677
@apply bg-[#0d1117];
678-
position: relative;
679-
}
680-
681-
/* 程式碼區塊標題欄 */
682-
.book-content pre::before {
683-
content: '';
684-
@apply block w-full h-8 bg-cp-dark-200;
685-
@apply border-b border-cp-dark-400;
686-
@apply flex items-center px-4;
687-
background-image: url("data:image/svg+xml,%3Csvg width='54' height='14' viewBox='0 0 54 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='7' cy='7' r='5' fill='%23ff5f56'/%3E%3Ccircle cx='27' cy='7' r='5' fill='%23ffbd2e'/%3E%3Ccircle cx='47' cy='7' r='5' fill='%2327c93f'/%3E%3C/svg%3E");
688-
background-repeat: no-repeat;
689-
background-position: 12px center;
690-
background-size: 54px 14px;
678+
@apply p-4;
691679
}
692680

693681
.book-content pre code {
694-
@apply block p-4 overflow-x-auto;
682+
@apply block overflow-x-auto;
695683
@apply text-sm leading-relaxed;
696-
@apply bg-transparent border-0 text-[#c9d1d9];
684+
@apply bg-transparent border-0 p-0;
685+
@apply text-cp-green-400;
697686
font-family: 'JetBrains Mono', 'Fira Code', 'Monaco', 'Consolas', monospace;
687+
text-shadow: 0 0 8px rgba(74, 222, 128, 0.3);
698688
}
699689

700-
/* 圖片 */
690+
/* 圖片 - 白色背景讓透明 PNG 可見 */
701691
.book-content img {
702692
@apply my-6 rounded-lg border border-cp-dark-400;
703693
@apply max-w-full h-auto;
694+
@apply bg-white p-2;
704695
}
705696

706697
/* 圖片標題 */

0 commit comments

Comments
 (0)