Hi,
As I mentioned in a previous post, I want to automated some of the tests
Saīvann and I typically run manually. I think this is an essential
time-saver if we're going to be adding new content to Bitcoin.org on a
regular basis.
To that end, I've written a quick Makefile which performs a few basic
tests. You can see it here:
https://github.com/harding/bitcoin.org/blob/makefile/Makefile
Here's the current output, using -i to ignore (not stop on) errors so
you can see all the currently-detected errors:
$ make -i
Configuration file: /home/harding/
bitcoin.org/_config.yml
Deprecation: Auto-regeneration can no longer be set from your configuration file(s). Use the --watch/-w command-line option instead.
Deprecation: The 'server' configuration option is no longer accepted. Use the 'jekyll serve' subcommand to serve your site with WEBrick.
Deprecation: The 'server_port' configuration option has been renamed to 'port'. Please update your config file accordingly.
Source: .
Destination: ./_site
Generating... done.
ERROR:
_site/font/ubuntu-bi-webfont.svg missing corresponding PNG
_site/font/ubuntu-ri-webfont.svg missing corresponding PNG
_site/font/ubuntu-b-webfont.svg missing corresponding PNG
_site/font/ubuntu-r-webfont.svg missing corresponding PNG
_site/img/bubblewarn.svg missing corresponding PNG
_site/img/bubble.svg missing corresponding PNG
_site/img/bubbleinfo.svg missing corresponding PNG
Makefile:55: recipe for target 'ensure-each-svg-has-a-png' failed
make: [ensure-each-svg-has-a-png] Error 1 (ignored)
ERROR:
_site/en/developer-reference.html#getmininginfo not found
Makefile:69: recipe for target 'check-for-missing-anchors' failed
make: [check-for-missing-anchors] Error 1 (ignored)
I can't imagine anyone objects to automated testing, but I'd like to
know whether anyone objects to the approach taken here or has
suggestions for easy-to-implement tests.
(The Makefile is for the entire site, not just devel docs, so expect to
see tests added to help the translators and other contributors.)
If there are no objections, I plan to submit a pull request for the
Makefile after the devel docs gets merged. (The Makefile depends on the
references.md file added in the devel docs pull, so it can't be merged
as-is any earlier.)
Thanks,
-Dave
--
David A. Harding