Skip to content

Commit

Permalink
Bug #2, update EAB archive to February 2018 - ISSUE 197 [iet:10116746]
Browse files Browse the repository at this point in the history
* Switch from TENS to Markdown text
* http://headstar.com/eab/archive.html
* http://headstar.com/eablive/?page_id=1419
* Bulletin - © 2018 The E-Access Bulletin editors.
  • Loading branch information
nfreear committed Feb 28, 2018
1 parent 5925fed commit ecb59b7
Show file tree
Hide file tree
Showing 7 changed files with 1,095 additions and 8 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ _[In memory of Dan … Dan Jellinek 1968 — 2015][tribute]_

## Install ... test

```
npm install && npm run install-cpan
```sh
npm install
npm run install-cpan
npm test
```

Expand All @@ -63,7 +64,7 @@ ISSN 1476-6337.
"Download a vCard (VCF file), via Suda.co.uk — 'Dan-Jellinek.vcf'"
[expired-domain]: http://e-accessibility.com "| 80.87.128.130"
[copy]: http://headstar.com/site/scripts/terms.php
"Copyright © 2000-2017 Headstar Limited. All rights reserved."
"Copyright © 2000-2018 Headstar Limited. All rights reserved."
[eab]: http://headstar.com/eab/archive.html "E-Access Bulletin"
[eablive]: http://headstar.com/eablive/ "E-Access Bulletin Live"
[eabl-logo]: https://raw.githubusercontent.com/nfreear/headstar-web/master/eab/images/eablive-1.png
Expand Down
4 changes: 2 additions & 2 deletions eab/badge.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
594 changes: 594 additions & 0 deletions eab/issues/2017/sep2017.email.html

Large diffs are not rendered by default.

468 changes: 468 additions & 0 deletions eab/issues/2018/feb2018.txt

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion eab_base/archive.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ <h2><a class="Tab">Bulletin Archive</a></h2>

<h3 id="a2018">2018</h3>
<ul class="Archive">
<li id="current">Issue 217; <a href="issues/2018/jan2018.html" title="Generated by WordPress.">January 2018 HTML</a>,
<li id="current">Issue 218; <a href="/eablive/?eab_bulletin=february-2018" title="On WordPress.">February 2018 HTML</a>,
<a href="issues/2018/feb2018.txt">February 2018 text</a>.
</li>
<li id="previous">Issue 217; <a href="issues/2018/jan2018.email.html" title="Generated by WordPress.">January 2018 HTML</a>,
<a href="issues/2018/jan2018.html" title="Based on TENS">HTML (2)</a>, <a
href="issues/2018/jan2018.txt">January 2018 text</a>.
</li>
Expand Down
19 changes: 18 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"grunt-htmlhint": "^0.9.13",
"grunt-notify": "^0.4.5",
"grunt-string-replace": "^1.3.1",
"live-server": "^1.2.0",
"pa11y-ci": "^1.3.1",
"replace": "^0.3.0",
"semistandard": "^11.0.0"
Expand All @@ -30,18 +31,34 @@
"count": "find eab/issues/ -type f | grep '.txt' | wc -l",
"index.json": "perl/index-json.php",
"pa11y-ci": "pa11y-ci --config .pa11yci.json",
"start": "live-server --port=9001",
"test": "grunt"
},
"repository": "https://github.com/nfreear/headstar-web.git",
"keywords": [
"accessibility",
"bulletin"
],
"files": [ "eab/", "ten/" ],
"files": [
"eab/",
"ten/"
],
"author": "Nick Freear (@nfreear)",
"license": "UNLICENSED",
"bugs": "https://github.com/nfreear/headstar-web/issues",
"ISSN": "1476-6337",
"x-bulletin-count": 195,
"x-bulletins-wp": {
"2018": {
"197": {
"issue": 197,
"text_file": null,
"html_file": "http://headstar.com/eablive/?eab_bulletin=february-2018",
"email_file": null,
"month": 2,
"editor": "TP"
}
}
},
"homepage": "http://headstar.com/eab/"
}
6 changes: 5 additions & 1 deletion perl/index-json.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
define( 'END_YEAR', 2019 );
define( 'DIR', __DIR__ . '/../eab/issues/' );
define( 'INDEX_JSON', __DIR__ . '/../eab/index.json' );
define( 'PKG_JSON', __DIR__ . '/../package.json');
define( 'ISSUE_REGEX', '/\n([\*-] )?ISSUE (?P<issue>\d+),/s' );
define( 'TXTFILE_REGEX', '/^(?P<month>jan|[a-z]{3})20\d\d\.txt$/' );
define( 'EMAIL_REGEX', '/.+\.email\.html' );
Expand All @@ -20,6 +21,9 @@
define( 'NOMINAL_PUBLISH_DAY', 20 ); // Day of month.
define( 'MONTHS', 'jan,feb,mar,apr,may,jun,jul,aug,sep,oct,nov,dec' );

$PKG = json_decode(file_get_contents( PKG_JSON ));
// var_dump( $PKG->{'x-bulletins-wp'} ); exit;

require_once 'lib/ReversibleForLoop.php';

$issue_archive = [];
Expand Down Expand Up @@ -94,7 +98,7 @@
'tens_date' => TENS_DATE,
'issue_count' => $count,
'order_by' => 'year, issue ' . ( IS_ASCEND ? 'ASC' : 'DESC' ),
'issues' => $issue_archive,
'issues' => $issue_archive, // array_merge( $issue_archive, $PKG->{},
];

$bytes = file_put_contents( INDEX_JSON, json_encode( $archive , JSON_PRETTY_PRINT ));
Expand Down

0 comments on commit ecb59b7

Please sign in to comment.