Commit Graph

1324 Commits

Author SHA1 Message Date
jnozsc e824f6b9cc
Update rubocop gem to 0.90.0 (#8313)
Merge pull request 8313
2020-09-04 16:10:41 -04:00
Ashwin Maroli 822bb57d41
Configure Performance cops (#8369)
Merge pull request 8369
2020-09-04 06:08:14 -04:00
Ashwin Maroli 9a7955d9b3
Update test to reflect changes in the latest Rouge 2020-08-12 16:12:59 +05:30
Ashwin Maroli ba29de02d4
Make page excerpts consistent with doc excerpts (#8236)
Merge pull request 8236
2020-06-17 09:26:53 -04:00
Ashwin Maroli ee20e844aa
Don't generate excerpts for non-html pages (#8234)
Merge pull request 8234
2020-06-08 08:39:50 -04:00
Ashwin Maroli 75ae986208
Expect drive letter only on vanilla windows (#8227)
Merge pull request 8227
2020-06-05 03:05:12 -04:00
Ashwin Maroli 03256d7b80 Revert re-introduction of PageDrop
Reverts commit 1bfb12b210.
2020-06-04 20:08:35 +05:30
Ashwin Maroli 1bfb12b210 Revert deletion of PageDrop
Reverts commit 8590ab0768.
Reverts commit 69154c2ef7.
2020-06-04 19:24:51 +05:30
Ashwin Maroli 8590ab0768
Revert introduction of PageDrop (#8221)
Merge pull request 8221
2020-06-04 08:54:16 -04:00
Ashwin Maroli 8b22c9dcd5
Disable page excerpts by default (#8222)
Merge pull request 8222
2020-06-04 04:57:10 -04:00
Ashwin Maroli 751b8f9c3c
Bump RuboCop to v0.85.x (#8223)
Merge pull request 8223
2020-06-01 14:07:43 -04:00
iBug ♦ 13b7291649
Make number_of_words respect CJK characters (#7813)
Merge pull request 7813
2020-05-22 11:01:17 -04:00
Ashwin Maroli 0b2c4c9cec
Add find filters to optimize where-first chains (#8171)
Merge pull request 8171
2020-05-21 06:56:47 -04:00
Ashwin Maroli 1ec3843130
Allow excerpts to be generated for Page objects (#7642)
Merge pull request 7642
2020-05-21 04:44:14 -04:00
Ashwin Maroli 696e8e4b99
Filter out exclusively excluded entries sooner (#7482)
Merge pull request 7482
2020-05-20 07:44:15 -04:00
matt swanson f8286b62a2
Switch slugify regex to support more Unicode character groups (#8167)
Merge pull request 8167
2020-05-14 02:20:20 -04:00
Ashwin Maroli 48e6cb18d7
Improve path normalization in liquid_renderer (#8075)
Merge pull request 8075
2020-05-09 07:29:13 -04:00
Ashwin Maroli c0e5541468
Configure default language for syntax-highlighting (#8035)
Merge pull request 8035
2020-04-30 13:52:55 -04:00
Billy Kong 70870328bf
Config include trailing slash (#8113)
Merge pull request 8113
2020-04-27 10:06:05 -04:00
Daniel Leidert 47e3644cd5
Escape regex characters in paths to match (#8138)
Merge pull request 8138
2020-04-27 05:21:07 -04:00
Ashwin Maroli 9c0c518d52
Cache URLFilter results of string inputs per site (#7990)
Merge pull request 7990
2020-04-13 03:52:54 -04:00
Ashwin Maroli be70c3e869
Add static file's basename to its url_placeholder (#7908)
Merge pull request 7908
2020-04-13 03:45:33 -04:00
Ashwin Maroli b84ba5accc
Add PageDrop to provide Liquid templates with data (#7992)
Merge pull request 7992
2020-03-26 09:39:47 -04:00
Ashwin Maroli 0f4c8d2248
Allow multiple binary operator in where_exp filter (#8047)
Merge pull request 8047
2020-03-06 11:08:56 -05:00
Ashwin Maroli d65a09b1d9
Update unit tests for Kramdown-based converter (#8014)
Merge pull request 8014
2020-02-19 11:28:54 -05:00
Ashwin Maroli 5cc78db648
Test where filter handling numeric property values (#7821)
Merge pull request 7821
2020-02-04 00:24:40 -05:00
Artyom Tokachev 34d0dd6c7d Bump RuboCop to v0.79.x (#7970)
Merge pull request 7970
2020-01-15 01:06:31 -05:00
Ivan Gromov eb81dc0e96 Update item_property to recognize integers (#7878)
Merge pull request 7878
2019-12-10 10:11:22 -05:00
Takashi Udagawa 3eab32fad7 Fix RuboCop Performance offenses in test files (#7839)
* Replace select.first with find
* Replace select.count with count
2019-10-06 12:00:25 +05:30
Edward Thomson 275702edd5 Ci/GitHub actions (#7822)
Merge pull request 7822
2019-09-26 13:32:59 -04:00
Ashwin Maroli de60632309 Remove configuration of theme sass files from Core (#7290)
Merge pull request 7290
2019-08-14 13:36:11 -04:00
Ashwin Maroli f446aebf07 Delegate --profile tabulation to `terminal-table` (#7627)
Merge pull request 7627
2019-08-04 16:03:56 -04:00
Ashwin Maroli 0f5e15811f Remove warnings and fixes for deprecated config (#7440)
Merge pull request 7440
2019-08-04 08:37:45 -04:00
Edgar Tinajero ebe62e8a28 Update log output for an invalid theme directory (#7679)
Merge pull request 7679
2019-07-01 13:56:38 -04:00
Ashwin Maroli 3e8e6d22d7 Remove patch to modify config for kramdown (#7699)
Merge pull request 7699
2019-06-28 06:38:02 -04:00
Ashwin Maroli e37ee47219 Fix offenses detected by rubocop-performance-1.4.0 2019-06-21 15:27:18 +05:30
Frank Taillandier 7f1b678a4e
Merge pull request #7707 from ashmaroli/refactor-glob-include
Refactor `EntryFilter#glob_include?`
2019-06-14 08:29:40 +02:00
Ashwin Maroli 70bc82bacc Update TestTags in sync with Rouge v3.4 (#7709)
Merge pull request 7709
2019-06-13 08:01:22 -04:00
Ashwin Maroli 3002aa58f5 Refactor `EntryFilter#glob_include?` 2019-06-09 15:35:39 +05:30
Ashwin Maroli 49ffbbd4c7 Add `type` attribute to Document instances (#7406)
Merge pull request 7406
2019-05-16 11:44:39 -04:00
Ashwin Maroli a5cac26766 Bump RuboCop to v0.68.x (#7637)
Merge pull request 7637
2019-04-30 08:44:08 -04:00
Ashwin Maroli f4ee82650e
Revert "Refactor `highlight` tag to behave like the `raw` tag" (#7592)
* Revert "Refactor `highlight` tag to behave like the `raw` tag (#6821)"

This reverts commit 36404b9a43.

* use Liquid `raw` in upgrading document
* let the minor improvements stay
* Revert entry in History.markdown
2019-04-19 12:49:03 +05:30
Ashwin Maroli 2090989fb3 Favor Ruby 2.3 squiggly-heredoc operator (#7584)
Merge pull request 7584
2019-03-22 12:18:58 -04:00
Ashwin Maroli 9240addcf0 Detect `nil` and empty values in objects with `where` filter (#7580)
Merge pull request 7580
2019-03-22 10:53:34 -04:00
Ashwin Maroli cc7978f3bc Optimize Document::DATE_FILENAME_MATCHER to match valid filenames (#7292)
Merge pull request 7292
2019-03-15 13:38:12 -04:00
mo khan 2bdf1a53c4 Log a warning when the slug is empty (#7357)
Merge pull request 7357
2019-03-15 13:35:01 -04:00
Ashwin Maroli 555722887d Replace `name` in Page#inspect with relative_path (#7434)
Merge pull request 7434
2019-03-15 13:33:13 -04:00
Frank Taillandier 57a29800b6 Feat: drop ruby 2.3 (#7454)
Merge pull request 7454
2019-03-15 13:31:54 -04:00
Ashwin Maroli 36404b9a43 Refactor `highlight` tag to behave like the `raw` tag (#6821)
Merge pull request 6821
2019-03-15 12:48:21 -04:00
Ashwin Maroli aea502745a Utilize absolute paths of user-provided file paths (#7450)
Merge pull request 7450
2019-03-15 12:10:48 -04:00
Ashwin Maroli 63b3739062 Add `Site#in_cache_dir` helper method (#7160)
Merge pull request 7160
2019-02-20 10:47:20 -05:00
Ashwin Maroli 091b5bd697 Always exclude certain paths from being processed (#7188)
Merge pull request 7188
2019-02-19 11:54:18 -05:00
Ashwin Maroli 33a55d7f65 Add dummy content to appease classifier-reborn
Removes the following noise from test logs:

```
Input: '' is entirely stopwords or words with 2 or fewer characters.
Classifier-Reborn cannot handle this document properly.
```
2019-02-17 13:57:54 +05:30
Ashwin Maroli 9f46819606 There are 59 test posts now 2019-02-17 12:49:46 +05:30
Ashwin Maroli dedfb0748f Handle files with trailing dots in their basename (#7315)
Merge pull request 7315
2019-02-16 11:31:14 -05:00
Ashwin Maroli 07bf5be7b4 Allow custom sorting of collection documents (#7427)
Merge pull request 7427
2019-02-16 11:19:03 -05:00
Ashwin Maroli 06c49c7af6 Configure cache_dir (#7232)
Merge pull request 7232
2019-02-15 08:47:00 -05:00
Ashwin Maroli e819bc4af0 Support for binary operators in where_exp filter (#6998)
Merge pull request 6998
2019-01-30 09:44:45 -05:00
Ashwin Maroli ae0a064f3f Output correct class name in custom inspect string 2019-01-11 13:18:49 +05:30
Kyle Barbour 88d63c9303 Excerpt handling of custom and intermediate tags (#7382)
Merge pull request 7382
2019-01-04 04:30:29 -05:00
Ashwin Maroli 878e0ba29c Skip theme-dir-symlink test if on Windows 2018-12-18 23:18:48 +05:30
Ashwin Maroli c368fec322 Create symlink only if target is accessible (#7429)
Merge pull request 7429
2018-12-18 12:00:27 -05:00
Ashwin Maroli 446aa88bdf Add a custom inspect string for StaticFile objects (#7422)
Merge pull request 7422
2018-12-16 01:16:24 -05:00
Ashwin Maroli 1a7b55e6dd Documents should be able to render their date (#7404)
Merge pull request 7404
2018-12-16 01:08:53 -05:00
Parker Moore 8741c69d42 Theme gems: ensure directories aren't symlinks (#7419)
Merge pull request 7419
2018-12-14 10:08:41 -05:00
Ashwin Maroli eda9e2e4ef Bump RuboCop to v0.61.x (#7401)
Merge pull request 7401
2018-12-05 11:21:48 -05:00
Ashwin Maroli bfc733da90 Only read layouts from source_dir or theme_dir (#6788)
Merge pull request 6788
2018-11-18 06:54:32 -05:00
Ashwin Maroli 592b530de1 Re-implement handling Liquid blocks in excerpts (#7250)
Merge pull request 7250
2018-11-04 14:02:00 -05:00
Ashwin Maroli d67cbb4e5f Load config file from within current theme-gem (#7304)
Merge pull request 7304
2018-10-28 06:08:32 -04:00
Mario ad7a5c0121 Skip processing posts that can not be read (#7302)
Merge pull request 7302
2018-10-19 11:35:42 -04:00
jekyllbot 37baaec83e
feat: enhance --blank scaffolding (#7310)
Merge pull request 7310
2018-10-12 06:57:45 -04:00
argv-minus-one 052dbf8b98 Automatically load _config.toml (#7299)
Merge pull request 7299
2018-10-05 09:43:06 -04:00
Pat Hawks 18d33b1fd6 Cache converted markdown (#7159)
Merge pull request 7159
2018-10-02 04:07:08 -04:00
Ashwin Maroli 4707017936 Drop support for pygments as syntax-highlighter (#7118)
Merge pull request 7118
2018-09-27 08:29:46 -04:00
Ashwin Maroli 6eee8b7e06 Strip extra slashes via `Jekyll.sanitized_path` (#7182)
Merge pull request 7182
2018-09-24 13:27:44 -04:00
jekyllbot a28f54a59f
Bump Rubocop to v0.59.0 (#7237)
Merge pull request 7237
2018-09-09 18:14:46 -04:00
Parker Moore f1c87a9129 Security: fix `include` bypass of `EntryFilter#filter` symlink check (#7226)
Merge pull request 7226
2018-09-07 15:17:55 -04:00
Ashwin Maroli 9f93fd092f Interpolate Jekyll::Page subclass on inspection (#7203)
Merge pull request 7203
2018-08-29 13:20:52 -04:00
ExE Boss 9195b61d51 Add support for `*.xhtml` files (#6854)
Merge pull request 6854
2018-08-25 06:07:28 -04:00
Pat Hawks 24dd9f1457 Add Cache class (#7169)
Merge pull request 7169
2018-08-21 03:38:53 -04:00
Ashwin Maroli 506c764e1e fix incorrectly passed arguments to assert_equal (#7134)
Merge pull request 7134
2018-07-15 16:11:45 -04:00
Ken Salomon c7ce7ae054 fix up refute_equal call (#7133)
Merge pull request 7133
2018-07-13 19:48:00 -04:00
Pat Hawks 7a4b3fe03d Disable Liquid via front matter (#6824)
Merge pull request 6824
2018-07-13 12:12:49 -04:00
Ashwin Maroli 9adac3a11e Fix Rubocop offences in test files (#7128)
Merge pull request 7128
2018-07-12 10:21:23 -04:00
Jakob Krigovsky 1801793035 Use .markdown for page templates (#7126)
Merge pull request 7126
2018-07-11 10:01:17 -04:00
Pat Hawks 4c7dbb6915
Fix tests to have "expected value" as the first argument passed to `assert_equal` (#7104)
* assert_equal(exp, act)

* improve clarity of PageWithoutAFile test

* Hoist invariant out of loop
2018-07-09 11:10:35 -05:00
Kelly-Ann Green f4fcfbdaa0 Update item_property to return numbers as numbers instead of strings (#6608)
Merge pull request 6608
2018-07-09 01:25:32 -04:00
jekyllbot 0b6962cfe9
Use assert_include (#7093)
Merge pull request 7093
2018-06-23 16:57:35 -04:00
Kyle Barbour b915c7577b Add whitespace control to LIQUID_TAG_REGEX (#7015)
Merge pull request 7015
2018-05-17 18:22:32 -04:00
Ashwin Maroli 4f06767ac8 Load Rouge for TestKramdown (#7007)
Merge pull request 7007
2018-05-10 18:28:39 -04:00
jekyllbot 149d5de59a
Remove support for rdiscount (#6988)
Merge pull request 6988
2018-05-09 09:44:36 -04:00
Nikita Skalkin e0758ba550 Remove support for Redcarpet (#6987)
Merge pull request 6987
2018-05-06 10:18:02 -04:00
Frank Taillandier 41fa9cda36
Fix tests
Co-Authored-By: ashmaroli <ashmaroli@users.noreply.github.com>
2018-05-04 14:14:44 +02:00
Ashwin Maroli f8dfbd2f7b Drop support for older versions of Rouge (#6978)
Merge pull request 6978
2018-05-03 10:03:55 -04:00
Alexey Pelykh b95151c4a7 Liquefied link tag (#6269)
Merge pull request 6269
2018-05-02 19:58:12 -04:00
ashmaroli d09db32d10 handle liquid tags in excerpts robustly (#6891)
Merge pull request 6891
2018-04-12 11:37:42 -04:00
David Zhang 2a032a38ec Bump Rubocop to 0.54.x (#6915)
Merge pull request 6915
2018-04-09 04:26:49 -04:00
Roger Rohrbach 37b729fd87 Assert existence of <collection>.files (#6907)
Merge pull request 6907
2018-04-05 16:26:29 -04:00
ashmaroli 8f3363e2dc Fix passing multiline params to include tag when using the variable syntax (#6858)
Merge pull request 6858
2018-03-21 18:24:04 -04:00
Florian Thomas 5bb12d0099 fix minitest deprecation warning in test (#6839)
Merge pull request 6839
2018-03-11 13:19:33 -04:00