Commit graph

175 commits

Author SHA1 Message Date
Tglman
c85f902443 fix: Init CLI command now has correct docs and help 2023-04-30 14:09:55 +01:00
Ed Page
c86771b2d7 refactor: Move off of failure 2023-04-20 10:00:25 -05:00
Austin Wise
38e298ff98 feat: Show frontmatter parse failure reason
The default implemention of `failure::Fail` returns `None` for `cause()`.
And the `exitfailure::ExitFailure` on `main()` only prints causes,
not sources.
So to display the unerlying source of failing from `Status` objects,
translate their `sources()` to `causes()`.

Before this change a problem in the front matter of a post caused this
error message to print:

```
Building from `d:\src\awise.us\input` into `E:\externsrc\cobalt.rs\_site`
Error: Failed to parse posts/2005-10-24-starting-up.md
Info: caused by Failed to parse frontmatter
```

After this change some more detail about what is wrong with the front
matter is printed:

```
Building from `d:\src\awise.us\input` into `E:\externsrc\cobalt.rs\_site`
Error: Failed to parse posts/2005-10-24-starting-up.md
Info: caused by Failed to parse frontmatter

Info: caused by the 'offset minute' component could not be parsed
```
2023-04-16 07:54:49 -07:00
Ed Page
8051535b12 chore: Upgrade 2023-02-01 10:51:40 -06:00
Ed Page
f7fc91a2b4 chore: Update dependencies 2022-11-01 14:54:20 -05:00
Ed Page
7e68bd4d8b refactor: Upgrade to clap v4 2022-09-28 15:06:14 -05:00
Robert DiMartino
2973c71493 fix: wrap styled code blocks with <code> tags 2022-08-26 16:11:48 -04:00
Robert DiMartino
690d11d729 fix: feature gate custom syntax cli test 2022-08-24 12:58:27 -04:00
Robert DiMartino
80a2e99f26 remove _dest/ from custom_syntax_highlighting.in/ 2022-08-23 21:24:59 -04:00
Robert DiMartino
dd5a744b46 Fixes #200, allow importing custom syntaxes 2022-08-23 18:14:10 -04:00
Ed Page
585e908981 chore: Update dependencies 2022-08-01 10:49:50 -05:00
Ed Page
772be054ff test: Make version-independent 2022-07-01 20:45:18 -05:00
Ed Page
4bf9dafbfa chore: Upgrade trycmd 2022-03-09 10:02:45 -06:00
Ed Page
0b3b5dfc6c chore: Upgrade clap_verbosity_flag 2022-03-01 09:41:09 -06:00
Ed Page
bac86da7b7 chore: Upgrade deps 2022-02-01 10:05:30 -06:00
Ed Page
bce5dd2e45 test: Remove unused files 2022-01-24 08:31:28 -06:00
Ed Page
d64cda4e17 test: Port all other tests to trycmd 2022-01-17 14:57:01 -06:00
Ed Page
6fd160a5c9 fix: Respect enabled with liquid syntax highlighting
My goal is to run more tests with `--no-default-features`.  When I tried
it, a lot of CLI tests failed because we were logging that the theme
wasn't supported. I decided to disable syntax highlighting to make my
life easier, but the warning persisted, uncovering this bug.
2022-01-17 13:31:37 -06:00
Ed Page
3d44328314 test: Increase CLI test coverage under different feature sets 2022-01-17 13:27:41 -06:00
Ed Page
963e0c6eaf test: Port to trycmd 2022-01-14 16:31:09 -06:00
Ed Page
28ab7296c1 fix(cli): Polish logged data 2022-01-13 16:02:52 -06:00
Ed Page
e8b76902e1 refactor(cli)!: Port to clap_derive
BREAKING CHANGE: Logging arguments now can't be called on the subcommand
and now are repeated `-q` or `-v`, with "info" being the default log
level.
2022-01-13 15:51:54 -06:00
Lachezar Lechev
8f3eba86d3
fix: Rustfmt 2021-12-08 10:39:40 +02:00
Lachezar Lechev
7308ee53a4
fix: partially fix clippy warnings 2021-12-08 10:37:17 +02:00
Lachezar Lechev
84a197c9af
Rust edition 2021 2021-12-05 10:26:06 +02:00
Ed Page
c4a369e2fe chore: Drop difference dep
Fixes #882
2021-09-10 13:54:13 -05:00
Ed Page
3a6396bd09 refactor: Switch out core types
Goals
- Move validation earlier in the process
- Catch bugs
- Reduce memory usage as we build up our ECS
2021-08-06 12:44:08 -05:00
Ed Page
8d0d8e2beb test(new): first-order e2e test cases 2021-07-09 15:22:16 -05:00
Ed Page
071e5fac97 refactor(config): Port to new cobalt-config crate
Cherry-pick: 0b3ef05
2021-07-08 16:32:23 -05:00
Chip Senkbeil
7f68e3f185
feat: add vimwiki support
Fixes #817
2021-06-07 14:44:33 -05:00
tglman
657abc90b2
feat: Minify html,css,js (#854)
- Minifies rendered documents
- Minifies js, and css assets

Minification is disabled by default, for backward and text compatibility.  This can be changed on an extension-by-extension basis.

This doesn't touch the unused config crate.
2021-05-24 09:21:38 -05:00
Ed Page
e4020ea545 fix: Properly highlight code blocks
Fixes #287
2020-10-17 11:29:27 -05:00
Ed Page
731fb61e65 feat: Pagination is now stable-enough 2020-02-29 20:19:21 -06:00
Andreas Rottmann
9a0bbd1949 chore: Fix a bunch of assorted clippy warnings
These were all identified by the following clippy command, using the
clippy from Rust 1.41 (current stable).
2020-02-12 22:14:46 +01:00
Ed Page
732e325a64 chore: Restore reverted dependencies 2020-02-07 16:26:10 -06:00
Ed Page
771314bbc5 Revert Cobalt 2020-02-07 15:09:11 -06:00
Ed Page
0b3ef05ae3 refactor(config): Port to new cobalt-config crate
BREAKING CHANGE: Old-style frontmatter is removed and some config keys
are renamed:
- Sort Order: Asc / Desc were lowercased
- Sass Style: Nested / Expanded / Compact / Compressed were lowercased
- Pagination: All, Tags, Categories, Dates were lowercased
2019-12-07 18:12:46 -07:00
Ed Page
c41b9c1356 chore: Update dependencies 2019-12-02 10:30:55 -07:00
Ed Page
2ce223ce7d chore: Update deps
This incldues removing tests that are just too brittle.
2019-11-27 15:09:39 -07:00
Tglman
9b6272d6b4 feat: Add support for sitemap generation 2019-09-07 16:34:40 +01:00
Geobert Quach
d197c652ec feat(pagination): Sort by weight 2019-09-02 16:40:58 +01:00
Geobert Quach
4327ec1a7b feat(pagination): pagination on dates 2019-08-23 18:04:30 +01:00
Geobert Quach
9621b31a7c fix(pagination_permalink): fixes #666 and adjust tests 2019-08-09 19:14:37 +01:00
Ed Page
4634337b52 chore(deps): Update 2019-07-03 07:25:43 -06:00
Ed Page
3841da3db6 fix(md): Be more conformant 2019-04-06 21:15:27 -06:00
Geobert Quach
e041aad292 fix(pagination): revamp pagination permalink management 2019-04-06 20:43:26 +01:00
Geobert Quach
2c116ae922 feat(pagination): indexation by categories 2019-02-21 20:31:47 +00:00
Ed Page
6fb1bbbcd7 chore: Switch to failure 2019-02-01 08:19:54 -07:00
Geobert Quach
1a9683524b feat(pagination): pagination on tags 2019-01-28 19:15:48 +00:00
Ed Page
b9981489ff feat(liquid): Upgrade
Too many features, bug fixes, and performance gains to name.

See https://github.com/cobalt-org/liquid-rust/blob/master/CHANGELOG.md#0180-2018-12-27

BREAKING CHANGE: Besides any caused by the liquid upgrade, we no longer
support includes outside of the `_include` directory.
2018-12-27 14:04:06 -07:00