Commit graph

152 commits

Author SHA1 Message Date
Vincent Prouillet
278cc82fc7
Change zola serve to load HTML from memory instead of disk (#1114)
* Change zola serve to load HTML from memory instead of disk

* Be smart about assets copying

* Be a tiny bit smarter on template changes

* Add zola serve --fast
2020-08-16 18:39:04 +02:00
liushuyu
6af7959fce
Making Chinese and Japanese search indexing optional... (#1115)
* This can shave ~80 MB off the binary size while allowing users
  speaking these two languages to easily switch them back on
2020-08-07 17:03:51 +02:00
Vincent Prouillet
ade442a487 clippy + fmt + fix toml dates in extra arrays
Closes #1048
2020-06-18 21:12:46 +02:00
Vincent Prouillet
752716f292 Not sure it changes anything but... 2020-06-15 19:14:35 +02:00
Vincent Prouillet
351c9b7ff3 Remove ja/zh in search index 2020-06-15 19:14:35 +02:00
Vincent Prouillet
b87f17570f Remove unneeded build_timestamp on config 2020-05-28 09:21:42 +02:00
Vincent Prouillet
0d817ee528 Next version 2020-05-25 18:24:19 +02:00
Vincent Prouillet
3a292d294a Prepare for release 2020-05-25 10:26:30 +02:00
Vincent Prouillet
30f6f38e6e 0.10.2 2020-03-25 15:19:17 +01:00
Vincent Prouillet
abe056b809 Start 0.10.1 2020-02-17 20:05:37 +01:00
Sam Ford
2966adbe4e Migrate serve command to hyper (#904)
hyper is already included in Zola due to the reqwest dependency (used
in the link_checker and templates components). Replacing Actix with
hyper in the serve command reduces the number of dependencies and
slightly improves build times and binary size.
2020-02-02 17:48:43 -08:00
Sam Ford
e804f907b2 Use Rust 2018 edition (#885) 2020-02-02 17:48:43 -08:00
Vincent Prouillet
0578e97d2f Start 0.10 2020-02-02 17:44:38 -08:00
Vincent Prouillet
57691be90d Update changelog 2019-08-24 19:13:26 +02:00
Vincent Prouillet
e74dab535d Update deps & re-render on anchor-link.html changes
Closes #719
2019-08-08 00:37:38 +02:00
Pyry Kovanen
4b43b75d22 Allow ignored_content to support markdown files (#759)
* Allow ignored_content to support markdown files

* Add test for markdown supported ignored_content
2019-08-01 10:18:42 +02:00
Vincent Prouillet
0e4e0c35b3 Remove all draft specific code 2019-07-19 11:10:28 +02:00
Tim Visée
90dad05c67 Add --open flag to serve command, to open URL in default browser (#739)
* Add --open flag to serve command, to open URL in default browser

* Mention serve --open flag in CLI documentation
2019-07-12 22:54:18 +02:00
Igor Gnatenko
d43812dee6 chore: Update toml to 0.5 everywhere
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2019-07-12 22:54:18 +02:00
Vincent Prouillet
71e149c513 v0.8.1 2019-07-12 22:54:18 +02:00
Sam Ford
39f97f1520
Update actix-web to 1.0
* actix_web::fs is now found in the actix-files crate.

* NotFoundHandler is now implemented using ErrorHandlers and the
path to 404.html is provided to the not_found() function using
actix_web::App::data. This setup allows for additional StatusCodes
to be handled in the future, if desired.

* Cleanly serving index.html files for requests to directories now
appears to be possible simply by using index_file("index.html") in
the static files service, so handle_directory() is removed.
2019-06-18 19:05:00 -04:00
Vincent Prouillet
8fe89870af Add release options to cargo 2019-06-09 11:27:55 +02:00
Igor Gnatenko
1a05401ecd chore: Update glob to 0.3 (#700)
* chore: Update glob to 0.3

Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>

* chore: Update ws to 0.8

Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2019-05-31 22:46:48 +02:00
Vincent Prouillet
93338c2762 Update changelog and version 2019-05-22 20:53:28 +02:00
Vincent Prouillet
7a7241e793 Start work on 0.7.1 2019-04-29 09:50:23 +02:00
Vincent Prouillet
11ef490699 Revert base-path commit and add changelog 2019-04-20 12:51:26 +02:00
Vincent Prouillet
911396c57f v0.6.1 2019-03-26 19:27:13 +01:00
Vincent Prouillet
f0cafcd1d6 Add languages to config 2018-12-27 10:53:17 +01:00
Vincent Prouillet
c0bbe16eac cargo fmt + update 2018-12-10 18:21:08 +01:00
Vincent Prouillet
f84ae7c93b Rename all occurrences of gutenberg to zola in code 2018-10-18 22:50:06 +02:00
Vincent Prouillet
ee3f4dc511 Update to syntect 3 2018-10-09 14:33:43 +02:00
Vincent Prouillet
290b38c2ea Remove debug symbols on release 2018-10-08 08:55:21 +02:00
Vincent Prouillet
396d237673 Use Tera render_with_borrowed 2018-10-05 15:03:22 +02:00
Vincent Prouillet
10aba20fe5 Slotmap refactor 2018-10-03 16:29:29 +02:00
Vincent Prouillet
f5c88540ed Update reqwest and image 2018-09-30 19:17:51 +02:00
Greizgh
b8233af2c4 Allow to disable colors through env vars
- unless forced, only use colors in tty
- support CLICOLOR and NO_COLOR vars
- switch to termcolor crate to handle output coloring
2018-09-24 19:19:34 +02:00
Vincent Prouillet
a6adbabb3d Fix benches 2018-09-03 19:05:24 +02:00
Vincent Prouillet
cc46c81bbd Prepare 0.4.1 2018-08-06 19:40:59 +02:00
Vincent Prouillet
a958f96955 Update actix 2018-07-22 12:14:16 +02:00
Vincent Prouillet
3e48ff24b5 Add an external link checker
Close #115
2018-07-16 21:15:50 +02:00
Vincent Prouillet
f7454708a7 Disable actix-web features for real 2018-07-12 23:23:14 +02:00
Vincent Prouillet
b03b9c1ad4 Use no features of actix-web 2018-07-12 22:51:23 +02:00
Owen Nelson
fd93b3419f pin actix-web harder 2018-06-25 21:39:25 -07:00
Vincent Prouillet
d47ba4aff0 Rebasing + tweaks 2018-06-25 19:13:21 +02:00
Vincent Prouillet
42939b9a66 Fix error and cargo update 2018-06-25 18:08:20 +02:00
Owen Nelson
908f16855a Fixes #279 switch from iron to actix-web.
This implementation seems to match the behavior of the previous iron
server.

Static files are rendered as-is, and when a directory is requested, we
attempt to render a `index.html` found inside, or 404 if it's not
present.

The actix docs mention using channels to send a message to the server to
shut it down gracefully while running in another thread (as we're doing
here), but it seems like there would have to be some reorganization in
order to manage this effectively, perhaps holding the channel sender inside
`main.rs` so we can push a message through to the server when the call
to `cmd::serve()` finally returns.

For the time being, I left things without any careful attempts to
cleanup the server thread. This more or less matches the old iron
implementation as far as I can see.

The static file handling in actix is _just_ a little off from what we'd
want.
I left some comments in the source regarding why we can't just use their hook
for directory index redirection.
2018-06-25 18:07:41 +02:00
Vojtech Kral
6662014e55 Add image resizing support #225 2018-06-25 18:05:04 +02:00
Vincent Prouillet
d334b1cf46 More shortcode docs update 2018-06-25 18:03:20 +02:00
Vincent Prouillet
a853bef933 v0.3.4 2018-06-22 15:14:12 +02:00
Vincent Prouillet
ddf8970ad8 [WIP] Search 2018-03-20 18:43:30 +01:00
Vincent Prouillet
2eacb8247b Fix config CLI option
Closes #254
2018-03-16 19:11:12 +01:00
Vincent Prouillet
15dd8e629e v0.3.2 2018-03-05 19:26:27 +01:00
Vincent Prouillet
45fc1ee761 Release 0.3.1 2018-02-15 10:41:49 +01:00
Vincent Prouillet
16f658c70c Move test_site and turn rebuild.rs into a component 2018-01-29 18:40:12 +01:00
Vincent Prouillet
fea728d413 Update cargo metadata 2018-01-25 12:18:21 +01:00
Vincent Prouillet
b73ff48482 Fix not compiling on nightly
Fix #215
2018-01-24 13:21:48 +01:00
Vincent Prouillet
a44dd5f49a serve cleans after itself now
Closes #199
2018-01-22 18:11:28 +01:00
Vincent Prouillet
bfdc93f948 Cargo update 2017-12-29 19:51:22 +01:00
Vincent Prouillet
11be340a92 v0.2.2 2017-11-01 14:58:03 +01:00
Geoff Shannon
c19e900bec Extract syntex highlighting module into a new component in workspace
This removes the dependency cycle between config and rendering that
causes 4 packages to be recompiled every time a change is made.

I just want to code fast!
2017-10-30 13:55:14 -07:00
Vincent Prouillet
3e421fb951 Releasing 0.2.1 2017-10-17 11:44:06 +02:00
Vincent Prouillet
97d5561569 Next version will be 0.2.0 2017-10-03 20:50:34 +09:00
Vincent Prouillet
20c1947b47 Clippy run 2017-10-02 20:16:56 +09:00
Vincent Prouillet
f5e1b0c170 Get ready for 0.1.3 release 2017-08-31 18:51:18 +09:00
Vincent Prouillet
145829023c Prepare for 0.1.2 release 2017-08-09 13:42:27 +09:00
Vincent Prouillet
23e4b911e7 Improve gutenberg init
Fix #104
2017-07-27 18:28:06 +09:00
Vincent Prouillet
62a24c3700 Forgot to bump Cargo.toml version 2017-07-25 16:57:30 +09:00
Vincent Prouillet
b585239348 Disable build.rs now that completions files are built 2017-07-16 10:19:18 +09:00
Vincent Prouillet
2ea77f3883 Generate completions for all shells 2017-07-15 13:24:31 +09:00
Vincent Prouillet
903b456276 v.0.1.0 2017-07-14 21:53:41 +09:00
Vincent Prouillet
c3b525745e Convert project to a workspace 2017-07-01 16:47:41 +09:00
Vincent Prouillet
1811255b92 Update deps 2017-06-22 16:28:52 +09:00
William Yao
b759cf7681 parallelize site rendering with rayon (Keats/gutenberg#70) 2017-06-21 04:00:37 -05:00
Vincent Prouillet
549644683b v0.0.7 2017-06-19 18:44:31 +09:00
Vincent Prouillet
4fa88ebc21 Update deps and only do one cargo test on windows 2017-06-13 20:50:16 +09:00
Vincent Prouillet
2c8ff5e08e v0.0.6 2017-05-24 21:28:33 +09:00
Vincent Prouillet
54fc1055ad v0.0.5 2017-05-15 15:57:42 +09:00
Vincent Prouillet
aa7ddef123 Update toml 2017-05-12 14:01:10 +09:00
Vincent Prouillet
9669c3562c Some fix and use toml master branch for now 2017-05-01 14:55:42 +09:00
Vincent Prouillet
a8c8c5cb07 Update changelog and base64 2017-04-23 15:32:28 +09:00
Vincent Prouillet
d37ca10905 Update serde and tera 2017-04-21 14:09:22 +09:00
Vincent Prouillet
e6b48dff38 Release 0.0.3 2017-04-05 21:51:18 +09:00
Vincent Prouillet
cf3a8142c2 Try to make windows work + remove musl 2017-04-05 20:31:10 +09:00
Vincent Prouillet
b86a30fb78 Add markdown and base64 filters 2017-04-04 16:08:40 +09:00
Vincent Prouillet
a02d50c22a Add some colours 2017-03-25 15:52:51 +09:00
Vincent Prouillet
573ab48eb0 serde_json is not used 2017-03-25 12:04:58 +09:00
Vincent Prouillet
769878032a Release 0.0.2 2017-03-24 16:33:19 +09:00
Vincent Prouillet
81596af366 Update clap 2017-03-20 15:32:43 +09:00
Vincent Prouillet
7e496878e5 Sections
Parse _index.md files as sections and render them
2017-03-19 19:20:24 +09:00
Vincent Prouillet
2d26bf038c Force refresh on content/template change and various fixes 2017-03-10 21:36:43 +09:00
Vincent Prouillet
57fd159025 Copy static directory and live reload changes to it 2017-03-09 16:34:12 +09:00
Vincent Prouillet
d43d738a4f RSS feed generation 2017-03-07 16:43:27 +09:00
Vincent Prouillet
4acce865b4 Sort by date 2017-03-06 22:18:03 +09:00
Vincent Prouillet
f57912f712 Basic livereload 2017-03-06 19:35:56 +09:00
Vincent Prouillet
e948df1028 Add a Site struct that knows how to parse/build a site 2017-03-03 17:24:08 +09:00
Vincent Prouillet
91fa7e358c Started working on gutenberg again 2017-02-24 11:21:58 +09:00
Vincent Prouillet
cbe1691f36 Rename new command to init 2016-12-19 16:58:03 +09:00
Vincent Prouillet
3cd5da2128 Separate front matter parsing from the page 2016-12-11 15:06:18 +09:00
Vincent Prouillet
4ae84e468b Switch to tera 0.5 2016-12-09 20:24:05 +09:00
Vincent Prouillet
a6e421c5e4 Parsing front matter 2016-12-06 20:53:14 +09:00