Fix links to NU3 ZIPs from index.

(The .rst suffix was getting deleted for all links rather than just relative links as intended.)

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
Daira Hopwood 2019-11-09 17:50:56 +00:00
parent 2ea3609133
commit 98b01feeb0
2 changed files with 10 additions and 10 deletions

View File

@ -11,13 +11,13 @@ index.html: README.rst
$(eval TITLE::=$(shell echo '$(basename $<)' | sed -r 's|zip-0{0,3}|ZIP |'): $(shell grep -E '^(\.\.)?\s*Title:' $< |sed 's|.*Title:\s*||')) $(eval TITLE::=$(shell echo '$(basename $<)' | sed -r 's|zip-0{0,3}|ZIP |'): $(shell grep -E '^(\.\.)?\s*Title:' $< |sed 's|.*Title:\s*||'))
rst2html5 -v --title="$(TITLE)" $< >$@ rst2html5 -v --title="$(TITLE)" $< >$@
sed -i 's|</head>|<link rel="stylesheet" href="css/zip-style.css"><link rel="stylesheet" href="assets/css/style.css"></head>|' $@ sed -i 's|</head>|<link rel="stylesheet" href="css/zip-style.css"><link rel="stylesheet" href="assets/css/style.css"></head>|' $@
sed -i 's|<a href="\([^"]*\).rst">|<a href="\1">|' $@ sed -i 's|<a href="\([^":]*\).rst">|<a href="\1">|' $@
%.html: %.rst %.html: %.rst
$(eval TITLE::=$(shell echo '$(basename $<)' | sed -r 's|zip-0{0,3}|ZIP |'): $(shell grep -E '^(\.\.)?\s*Title:' $< |sed 's|.*Title:\s*||')) $(eval TITLE::=$(shell echo '$(basename $<)' | sed -r 's|zip-0{0,3}|ZIP |'): $(shell grep -E '^(\.\.)?\s*Title:' $< |sed 's|.*Title:\s*||'))
rst2html5 -v --title="$(TITLE)" $< >$@ rst2html5 -v --title="$(TITLE)" $< >$@
sed -i 's|</head>|<link rel="stylesheet" href="css/zip-style.css"><link rel="stylesheet" href="assets/css/style.css"></head>|' $@ sed -i 's|</head>|<link rel="stylesheet" href="css/zip-style.css"><link rel="stylesheet" href="assets/css/style.css"></head>|' $@
sed -i 's|<a href="\([^"]*\).rst">|<a href="\1">|' $@ sed -i 's|<a href="\([^":]*\).rst">|<a href="\1">|' $@
README.rst: makeindex.sh README.template README.rst: makeindex.sh README.template
./makeindex.sh | cat README.template - >README.rst ./makeindex.sh | cat README.template - >README.rst

View File

@ -14,14 +14,14 @@
<h2>NU3 ZIPs for consideration</h2> <h2>NU3 ZIPs for consideration</h2>
<p>This is the list of ZIPs that were under consideration for the NU3 upgrade (around ~April 2020).</p> <p>This is the list of ZIPs that were under consideration for the NU3 upgrade (around ~April 2020).</p>
<ul> <ul>
<li><a href="https://github.com/zcash/zips/blob/master/zip-0210">Sapling Anchor Deduplication within Transactions</a></li> <li><a href="https://github.com/zcash/zips/blob/master/zip-0210.rst">Sapling Anchor Deduplication within Transactions</a></li>
<li><a href="https://github.com/daira/zips/blob/disable-sprout-outputs/zip-0211">Disabling Addition of New Value to the Sprout Value Pool</a></li> <li><a href="https://github.com/daira/zips/blob/disable-sprout-outputs/zip-0211.rst">Disabling Addition of New Value to the Sprout Value Pool</a></li>
<li><a href="https://github.com/boltlabs-inc/zips/blob/master/zip-bolt-support">Add Bolt support</a></li> <li><a href="https://github.com/boltlabs-inc/zips/blob/master/zip-bolt-support.rst">Add Bolt support</a></li>
<li><a href="https://github.com/str4d/zips/blob/zip-str4d-shielded-coinbase/zip-0213">Shielded Coinbase</a></li> <li><a href="https://github.com/str4d/zips/blob/zip-str4d-shielded-coinbase/zip-0213.rst">Shielded Coinbase</a></li>
<li><a href="https://github.com/acityinohio/zips/blob/sapling-polling/zip-draft">Enable Staked Polling from the Sapling Pool</a></li> <li><a href="https://github.com/acityinohio/zips/blob/sapling-polling/zip-draft.rst">Enable Staked Polling from the Sapling Pool</a></li>
<li><a href="https://github.com/therealyingtong/zips/blob/master/zip-0221">Adding MMR Proofs to Block Headers, and their use in the FlyClient Protocol</a></li> <li><a href="https://github.com/therealyingtong/zips/blob/master/zip-0221.rst">Adding MMR Proofs to Block Headers, and their use in the FlyClient Protocol</a></li>
<li><a href="https://github.com/omershlo/zips/blob/multisig/zip-multisig">Multisig</a></li> <li><a href="https://github.com/omershlo/zips/blob/multisig/zip-multisig.rst">Multisig</a></li>
<li><a href="https://github.com/ebfull/zips/blob/unlinkable-addrs/zip-seanbowe-esktransfer">Transfer Sapling Ephemeral Secret to Recipient in Note Plaintext</a></li> <li><a href="https://github.com/ebfull/zips/blob/unlinkable-addrs/zip-seanbowe-esktransfer.rst">Transfer Sapling Ephemeral Secret to Recipient in Note Plaintext</a></li>
</ul> </ul>
</section> </section>
<section id="deadlines-for-nu4"> <section id="deadlines-for-nu4">