Skip to content

Conversation

@harding
Copy link
Collaborator

@harding harding commented Nov 8, 2018

This adds a test that should catch the problem that lead to #79. This is the same test I've used in the BitcoinCore.org repository (and Bitcoin.org before it).

This PR also fixes an incidence of a broken ref-style link, although it only occurred in the HTML metadata for an article. The excerpt used to fix that bug is the same as appears on the site here. This should not result in any user-visible changes to the site (and I don't see any in my quick testing).

To fix broken text in the RSS feed, add excerpt from
_posts/en/newsletters/2018-07-24-newsletter.md
Copy link
Contributor

@jnewbery jnewbery left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great Dave. One question about the bash command inline.


test:
## Check for broken Markdown reference-style links that are displayed in text unchanged, e.g. [broken][broken link]
! find _site/ -name '*.html' | xargs grep ']\[' | grep -v skip-test | grep .
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the grep -v skip-test necessary?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not yet here, but it's been used to solve issues in other repositories:

user@devbco:~/bitcoincore.org$ git grep skip-test
Makefile:       ! find _site/ -name '*.html' | xargs grep ']\[' | grep -v skip-test | grep .
_releases/0.14.0.md:`"proxy"`      | `getnetworkinfo()["networks"][0]["proxy"]` <!--skip-test-->
_releases/0.14.0.md:array index or a non-quoted string (i.e. `listunspent()[0][txid]`). <!--skip-test--> Both

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense!

@jnewbery jnewbery merged commit 48b1f50 into bitcoinops:master Nov 8, 2018
bitschmidty pushed a commit that referenced this pull request Nov 17, 2023
* newsletter276zh

* fix style

* Apply suggestions from code review

Co-authored-by: freeyao <[email protected]>

---------

Co-authored-by: Zhiwei(Jeffrey) Hu <[email protected]>
Co-authored-by: freeyao <[email protected]>
harding pushed a commit to harding/bitcoinops.github.io that referenced this pull request Sep 27, 2024
* newsletter276zh

* fix style

* Apply suggestions from code review

Co-authored-by: freeyao <[email protected]>

---------

Co-authored-by: Zhiwei(Jeffrey) Hu <[email protected]>
Co-authored-by: freeyao <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants