Commit Graph

23 Commits (master)

Author SHA1 Message Date
PalmerAL 3844d8f05b
Include more ancestors in candidate scoring (#611)
* include more ancestors in candidate scoring

* fix medium-3 testcase

The original source file contained two copies of the document, which
was causing incorrect results

* remove unnecessary nested elements

* fix removal of empty elements

* add option to regenerate all testcases

* update tests

* fix quanta testcase

* fix creating testcase from network

* fix early exit in testcase generation

* format HTML before comparing while testing

* upgrade js-beautify

* don't merge outer readability div
4 years ago
Gijs Kruitbosch 914307a90b Increment version before publishing on npm 4 years ago
Dan Burzo 1a61a23f68
Readability on npm (#608)
* Initial work on preparing Readability for npm

* Adjust some require()s

* Point package.json to index.js

* Add Node.js instructions to README

* Use ES6 in eslint
4 years ago
Jordy van den Aardweg 2982216913 Added "keepClasses" option to prevent cleaning of classes (#552) 5 years ago
Gijs Kruitbosch 512e1c18a7 Update to latest JSDOM 5 years ago
Gijs Kruitbosch 2620542dd1 Split off isProbablyReaderable implementation 5 years ago
David A Roberts acfd3759a1 Generate XHTML-compatible input for test cases
Fixes the bug noted in the README
6 years ago
Gijs Kruitbosch d598baf02b Improve URL handling in JSDOMParser and Readability.js
This change ups the required node version to 7.0 because it relies on the builtin url module.

We now pass a url when constructing a jsdom document or JSDOMParser document.
Because this is an API change, I'm increasing the package version.

Ultimately, I would like to remove the  argument from the readability constructor. It should
use the documentURI from the document it is passed.
6 years ago
Gijs bfd14522c4 Update eslint to try to fix issues on infra 7 years ago
Gijs 264946aa15 Require Node >=6.5 to have `.includes` available
Per #382 and http://node.green/, 6.5 should be necessary/sufficient.
7 years ago
Gijs Kruitbosch 7579ac4ea8 Enable linting through travis 8 years ago
Brendan Long c59a054f78 Fix package.json's license to be in SPDX format ("Apache-2.0").
See: https://docs.npmjs.com/files/package.json#license
9 years ago
Nicolas Perriault de89036cd5 Fixes #130 - Using js-beautify for HTML formatting. 9 years ago
Nicolas Perriault 360c648579 Fixed broken benchmark reporter code, moved benchmark code to its own folder. 9 years ago
Gijs Kruitbosch 02b7db3f7e Add benchmark for readability itself instead of just JSDOMParser, add averages so the results are scannable. 9 years ago
Nicolas Perriault 2bfa678cab Added separate command for reference benchmark. 9 years ago
Nicolas Perriault 1e14d47bb7 Added benchmarks. 9 years ago
Gijs Kruitbosch f9e770ad3b Write a bunch of tests for jsdomparser 9 years ago
David Bruant 3f16d5bd92 Update package.json 9 years ago
Gijs Kruitbosch 1c42f29aa5 Create a script to generate testcases, actually use our version of JSDOMParser 9 years ago
Nicolas Perriault 7da6e82fec Switched to using jsdom for tests. 9 years ago
Nicolas Perriault 99f338a03a Added logging to test output. 9 years ago
Nicolas Perriault 3bef3e7029 Added basic functional test + travis setup. 9 years ago