Commit graph

68 commits

Author SHA1 Message Date
David A. Harding
7d98f798ab
Upgrade to Jekyll 3.0
Gemfile:

  - Upgrade to Jekyll 3.x (3.0.1 tested).  This brings several new
    features I want to use, most notably *collections* which allows us
    to add blog-like collections. I've converted the `_releases` and
    `_alerts` pages into collections, although their plugins are
    maintained to handle the Download and Active Alert features.

  - Upgrade to latest Kramdown.

  - Lock Less at 2.4.0.  This prevents breaking our Less plugin.  Jekyll
    3.x provides native support for SCSS, so we may want to switch to
    that in time.

  - Lock HTML Proofer at 2.1.0.  The most recent version was taking
    forever to check our pages (I never actually got it to complete).
    I'll look into it when I get more time.

Makefile:

  - New `make clean` command.  Jekyll 3.x by default attempts to do
    incremental rebuilds.  The new `jekyll clean` command cleans up the
    metadata necessary for than so that a full build is performed, and
    this new `make clean` command is a wrapper around it so that we
    automatically do full rebuilds in the relevant cases.  Note: our
    plugins aren't fully compatible with the incremental rebuilds, but
    I'd like to fix that in the future.

  - Remove WEBrick hack to enable previewing with default URL paths (/
    instead of /index.html).

  - Filter out compliants from Rouge

README.md:

  - Now that Alerts (_alerts) are part of a collection, the file names
    are no longer parsed for dates, so instructions on adding the date
    to the YAML metadata have been added.

_alerts/*:

  - Now that alerts are part of a collection, the file names are no
    longer parsed to provide dates, so a `date:` field has been added to
    the YAML metadata.

_config.yml:

  - Some variables renamed per upgrade instructions.

  - Switched from old default syntax highlighter Pygments to new default
    Rouge.  I tried to use Rouge options to keep new output as similar
    to old output as possible to making diffing easy, but Rouge adds
    extra CSS class info.

  - Move `_alerts` and `_releases` into Jekyll 3.x "collections", which
    provide the organizational features we were using plugins to
    manange.  I haven't removed the old plugins because we still use
    some of their features (alerts.rb provides active issue and banner
    features; releases.rb provides info to Download page)

  - _layouts/* can no longer provide default global metadata; that is now
    provided in the new `defaults:` section in _config.yml.

_layouts/*:

  - Default metadata can no longer be provided in the layout files for
    collections, so I've removed it and left a message to see
    _config.yml.

_plugins/*:

  - Remove filter_for.rb. It's completely broken on Jekyll 3.x because
    of changes to Liquid which prevent adding new arguments to the
    inherited Liquid::For class. Existing uses of filter_for have been
    migrated to built-in for loops prefaced by sorts.

  - Remove remove-html-extension.rb: at it said in the comments, this
    was a temporary hack to get us to Jekyll 3.0.

_releases/*:

  - Rename all the files: prefix a v to the file name so the output html
    (e.g. v10.0.0.html) is the same as the source filename (e.g.
    v10.0.0.md).  This is necessary to migrate them to a Jekyll collection.

  - Remove %v from titles: we have to explicitly set the title, like we
    used to.  Again required for migration to collections.

_templates/events.html & en/rss/events.rss:

  - Sort events by date and then loop with regular for loop rather than
    filter_for

en/alerts.html & en/rss/alerts.rss:

  - Sort alerts by date and then loop with regular for loop rather than
    filter_for

en/bitcoin-core/index.md & en/version-history.html & en/rss/releases.rss:

  - Sort alerts by date and then loop with regular for loop rather than
    filter_for
2016-01-06 23:09:56 -05:00
David A. Harding
ac2a76aa27
Alerts: drop banner for UPnP vulnerability 2015-10-29 10:15:34 -04:00
Saivann
9d054dabe1 Update UPnP alert message with links to releases 2015-10-15 03:21:43 -04:00
Wladimir J. van der Laan
38c10793e0 mention that 0.11.1 and 0.10.3 aren't released yet 2015-10-12 16:19:18 +02:00
David A. Harding
3fb01e8c72
Alerts/upnp: show banner / describe manual port forwarding 2015-10-12 09:13:19 -04:00
Saivann
d3d01dcf0f Make link clickable on uPnP alert page 2015-10-12 09:04:17 -04:00
Wladimir J. van der Laan
8b4abfdc1f improve the text a bit 2015-10-12 14:39:32 +02:00
Saivann
5b4ca428ef Move uPnP alert image to /img/ 2015-10-12 08:12:14 -04:00
Wladimir J. van der Laan
68586b6a69 add warning about UPnP vulnerability 2015-10-12 14:09:11 +02:00
David A. Harding
8642c81714
Merge pull #962: Site Docs: Add Details To Alert Creation Process 2015-07-28 11:35:06 -04:00
David A. Harding
ec6c93e224
Alerts: Change 'Alias' Field To 'Shorturl'
Suggested by Saïvann (thanks!)
2015-07-25 10:18:46 -04:00
David A. Harding
e038560ab7
Copyrights: Add MIT License Header To More Files
- Makefile: extend copyright check test to scan all files with YAML
  headers

    - Exclude alerts from check -- lack of a license shouldn't prevent
      us from publishing emergency information

    - Also add license to Makefile itself

- Fix all errors caught by new test

    - For release notes, also link to github.com/bitcoin/bitcoin
      repository as origin

        - Also update README.md release instructions to include license
2015-07-19 18:44:49 -04:00
David A. Harding
e509a927f9
Alerts: Disable SPV Mining Alert 2015-07-15 08:58:51 -04:00
Saivann
6109262ea2
Convert HTML to Markdown 2015-07-06 22:35:09 -04:00
David A. Harding
7895b4c64a
Drop unnecessary workaround 2015-07-06 13:57:53 -04:00
David A. Harding
cd2004e120
Move-only: Rename html alert file to md 2015-07-06 13:57:53 -04:00
David A. Harding
8c3852e230
Typo fix 2015-07-06 12:47:47 -04:00
Saivann
6dfe019256
Merge branch 'alertclass' 2015-07-06 11:05:38 -04:00
David A. Harding
018724d3a5
Alerts: SPV Mining: Change Updates Style 2015-07-06 00:10:36 -04:00
Saivann
b2e4b9b73c
Fix a typo 2015-07-06 00:06:03 -04:00
David A. Harding
21e3f8c176
Alerts: Update SPV Mining Alert 2015-07-05 23:50:21 -04:00
Saivann
2d36e36464 Allow to set styles for alert banner 2015-07-05 21:11:23 -04:00
David A. Harding
d95c4c7eb6
Alerts: SPV mining: link SPV (wallet) to friendly description 2015-07-04 12:41:40 -04:00
Saivann
af4cbf4c39
s/recommend/recommended/ 2015-07-04 12:07:52 -04:00
David A. Harding
9f30adba9f
Alerts: move good/bad mining pools to wiki, other changes
- Recommend upgrade to 0.10.2 because of unrelated DoS issues
- Update times
2015-07-04 11:56:30 -04:00
saivann
311044c512
HTML fixes 2015-07-04 05:27:07 -04:00
David A. Harding
c04bfa6832
Alerts: SPV mining suggested changes 2015-07-04 05:23:32 -04:00
David A. Harding
818abdb2ee
Alerts: SPV Mining more details 2015-07-04 04:57:07 -04:00
Saivann
e1c18c3ad6 Remove extra closing </b> tag 2015-07-04 04:27:07 -04:00
David A. Harding
756dc81e74
Alerts: SPV mining: update pool info 2015-07-04 04:16:45 -04:00
David A. Harding
6ec2551182
Alerts: SPV mining typo fixes
Suggested by Luke and Saïvann (thanks!)
2015-07-04 03:21:18 -04:00
David A. Harding
03182ce47f
Alerts: SPV mining draft4 2015-07-04 02:55:12 -04:00
David A. Harding
1b73bc893d
Alerts: spv mining draft-3 2015-07-04 02:29:10 -04:00
David A. Harding
d43a49f459
Alerts: invalid blocks draft2 2015-07-04 02:16:28 -04:00
David A. Harding
2b50fc8714
Alerts: first version of invalid v3 blocks 2015-07-04 02:06:20 -04:00
David A. Harding
ec343d54d1 QA: Check HTML Correctness & Fix Existing Errors
- _contrib/bco-htmlproof: check HTML for correctness; fail on any errors

- _contrib/bco-htmlproof: accept path for individual page to help debug
  page problems

- (Many files) Convert `&` in numerous elements to `&amp;`

- _templates/download.html: use Liquid filter to automatically escape
  `&` in magnet links.  Also premptively tell HTML not to check the
  magnet link when checking external links (this check is not currently
  enabled)

- _releases/*: Escape `<parameter>` used in multiple Bitcoin Core
  release notes

- _templates/choose-you-wallet.html: change mSigna URL from
  .../coinvault&referer=bitcoin.org to .../coinvault?referer=bitcoin.org

- _templates/community.html: fix duplicate anchors by renaming one
  anchor

- _templates/events.html: move Javascript to separate file because it
  contains forbidden HTML close tags within the `<script></script>`
  tags.

- (Many files, mostly in _translations/) Fix many broken open tags or
  missing close tags.

- _translatios/zh_TW.yml & ko.yml: fix a total of three invalid
  characters (control characters)
2015-04-27 09:12:11 -04:00
David A. Harding
4213d102da
Style: Add anchor links to all subheads
* Adds Makefile test to ensure all subheadings, except those on Choose
  Your Wallet, have an ID (anchor reference)

* Adds an ID to all subheads that didn't have on previously
2015-04-09 11:30:28 -04:00
David A. Harding
d954708ef1
QA: Use HTML Proofer To Check Internal Links
Uses Ruby html-proofer to check the links.  This commit also fixes the
various problems it found, as well as dealing with some of its
non-problem complaints (it doesn't like anchor (a) tags without either
an href, name, or id).

Running HTML proofer takes about 12 minutes on my system (with up to two
threads), during which it prints no text. Travis CI times out after 10
minutes of nothing being written to stdout, so this commit also adds a
background process the Makefile to print a line every minute while make
runs.
2015-03-14 15:17:24 -04:00
Saivann
25f9fabb78 Revert "Remove sourceforge links in all alerts"
This reverts commit 52fdf94762.
2014-09-11 17:25:01 -04:00
Luke Dashjr
52fdf94762 Remove sourceforge links in all alerts 2014-09-08 23:33:54 +00:00
Saivann
486bee8896 Mark heartbleed alert as inactive 2014-04-19 13:50:57 -04:00
Saivann
afbc4a64d3 Update "Last updated" notice on Heartbleed alert page 2014-04-11 12:19:50 -04:00
Andreas Schildbach
372f5f03cb Add information about Android to Heartbleed alert page. 2014-04-11 17:57:16 +02:00
Saivann
3597ab2df9 Add link to download page on Heartbleed alert page 2014-04-11 11:36:55 -04:00
Gavin Andresen
61e469d078 Heartbleed vulnerability alert: https://bitcoin.org/heartbleed 2014-04-11 11:09:09 -04:00
Saivann
d7778d64ac Remove "active" flag to the "transaction malleability" alert page 2014-02-17 13:53:22 -05:00
Saivann
6dbe5bf49d Add alert page for transaction malleability 2014-02-11 16:35:12 -05:00
Saivann
cdd841ccb7 Fix / Update external urls 2013-09-28 20:07:06 -04:00
Saivann
78f9b7712d Batch url fixes 2013-09-01 00:01:15 -04:00
Saivann
160f8d0ab4 Add Android team blog post about SecureRandom 2013-08-16 13:19:19 -04:00