Commit graph

1440 commits

Author SHA1 Message Date
Vincent Prouillet fc79225267 Revert "update to tokio 1.0 (#1246)"
This reverts commit 741b6bf830.
2021-01-05 21:51:44 +01:00
Ibraheem Ahmed 741b6bf830
update to tokio 1.0 (#1246)
* update to tokio 0.3.4

* update tokio to v1.0.1

* update hyper to 0.14.1

* enable http1

* custom static file server
2021-01-05 21:50:19 +01:00
Vincent Prouillet fce3e4b8a0
Update themes gallery (#1255)
Co-authored-by: GitHub Action <action@github.com>
2020-12-08 19:25:33 +01:00
Fredrik 37e24c27f1
Get zola from alpine community repository (#1251)
Zola is not available in the `testing` repository, getting it from `community` instead
2020-12-06 21:43:23 +01:00
Jochen Kupperschmidt ec3669dfd8
Add NorthCon e.V. to list of example sites (#1248)
Just three documents with a common base template and footer navigation.
2020-12-01 09:45:27 +01:00
Kiyan Mair f5a200e64c
Fix RSS block example in documentation (#1210)
This commit fixes a bug in the documentation for the feeds page which
shows how to use the RSS block to enable feed autodiscovery.

The bug used an em space character instead of a space in one part of the
code snippet. If a user were to copy the code snippet into their code as
directed, the Zola build would fail with a parse error. The em space
appears identical to a regular space in monospaced fonts, making the
error seem mysterious or incorrect.

I believe the em space was used in order to prevent the shortcode from
rendering, as the code snippet is just meant to show what the shortcode
looks like. However, it is possible to escape the shortcode so that it
renders correctly without causing confusion for the user who expects to
be able to copy and paste it.

This commit replaces the em space in both code snippets with regular
spaces and escapes the shortcodes.
2020-10-21 13:00:16 +02:00
Vincent Prouillet 29b073640e
Merge pull request #1192 from getzola/create-pull-request/patch-1601714374
Update themes gallery
2020-10-03 21:00:41 +02:00
GitHub Action 531b48fd37 Update themes gallery 2020-10-03 08:39:18 +00:00
Vincent Prouillet 84ecd2ac5e
Merge pull request #1185 from getzola/next
Next version
2020-09-28 09:49:12 +02:00
Vincent Prouillet 94c016521c Fix zola serve 2020-09-28 09:36:16 +02:00
Vincent Prouillet 0230e3297f Next version 2020-09-27 14:15:44 +02:00
Vincent Prouillet 4bbf7a62a1
Merge pull request #1158 from getzola/next
Next version
2020-09-27 14:09:37 +02:00
Vincent Prouillet 2fa83af956 Set release date 2020-09-27 11:19:20 +02:00
Vincent Prouillet 7910363d63 Next version is 0.12.1 2020-09-26 14:23:24 +02:00
Vladislav Nikonov ada6710c99
Fixed serve command failure caused by tokio-related issue (#1183) 2020-09-25 11:01:14 +02:00
Vincent Prouillet 664cb14ffd Add test for continue reading after shortcode 2020-09-24 20:02:43 +02:00
Vincent Prouillet 59d9d26f0e Fix shortcodes issues with newlines
Closes #1172
2020-09-24 20:02:43 +02:00
Vincent Prouillet 366e5c426f Avoid panics when binding addresses 2020-09-22 12:22:26 +02:00
WhizSid 41e436f331
serve command exiting when web socket port is already in use (#1179)
* Handled web socket port used issue

* Lint
2020-09-22 11:59:57 +02:00
Vincent Prouillet b313c97ceb Fix slugified taxonomies rendering
Closes #1177
2020-09-22 09:46:22 +02:00
John-John Tedro f9ae897190 Use platform-neutral path comparison for in-memory serving (fixes #1169) (#1175)
This introduces `relative-path`, a crate I've written for the specific
purpose of providing platform-neutral operations over paths the same way
they are used in URLs.

This means that `///hello///` == `/hello`, which should do the same as
the existing stripping minus the platform-specific path separators
causing the [bug being referenced](#1169).
2020-09-22 09:46:22 +02:00
Tim Visée c27f749a86 Fix #1165, improve situation for compile_sass errors (#1166)
* Update compile_sass docs, this is just for sass files in site root

* Improve file watch error, question whether the target exists
2020-09-22 09:46:22 +02:00
Thomas Etter f7cd28c8d2 Fix a crash when --output_dir is used with serve (#1164) 2020-09-22 09:46:22 +02:00
bemyak d9396213de Allow site path to contain underscores (#1162)
* Allow site path to contain underscores

Fixes site.css is not being generated if any part of the path contains
underscores

* Add tests for path with underscores
2020-09-22 09:46:22 +02:00
areille 5a61139719 Add better errors for minifying and upgrade crate 2020-09-22 09:46:22 +02:00
Alice Ryhl 826e701b4f Add line highlighting to code blocks (#1131)
* Add line highlighting to code blocks

* Fix highlighting of lines

Apparently every line to be highlighted is provided in one chunk.

* Add more documentation to codeblock.rs

* Turn FenceIter into an Iterator

* Move Range to fence.rs

* Add tests
2020-09-22 09:46:22 +02:00
Vincent Prouillet bff0193df7 Next version 2020-09-22 09:46:22 +02:00
Rafael Epplée d04a52d096
Make gitlab CI example script faster (#1171)
By using alpine, the time to pull and start the container decreases.
By using the official alpine zola package, the script gets simpler.
Also, this updates the zola version to the latest release.
2020-09-18 15:35:38 +02:00
Maximilian Schoenenberg 9f367ae7e7
Added description for github actions (#1163)
* Added description for github actions

* Added specific version and removed outdated sentence regarding branch naming
2020-09-14 10:36:56 +02:00
Vincent Prouillet 9aa35150ae
Merge pull request #1159 from sburris0/master
Add Void Linux installation instructions
2020-09-06 11:46:10 +02:00
Spencer Burris 924100f011 Add Void Linux installation instructions 2020-09-05 10:28:44 -07:00
Vincent Prouillet 2d1c954322
Merge pull request #1038 from getzola/next
Next version
2020-09-04 23:42:30 +02:00
Vincent Prouillet 935c4a595c Update changelog 2020-09-04 23:39:12 +02:00
Spencer Burris 428b5942c7
Fix documentation typos (#1157) 2020-09-04 22:53:31 +02:00
Vincent Prouillet b854ccae28 Prepare for release 2020-09-04 22:42:07 +02:00
Vincent Prouillet ba240cd27f Change min Rust version in docs 2020-09-03 21:25:42 +02:00
Vincent Prouillet f786783299 Update pulldown_cmark 2020-09-03 21:22:20 +02:00
René Ribaud 5bf1687fa7
Use trim_start_matches instead of strip_prefix (#1156)
- This allow to not bump the pinned version to 1.45.0.
- Change this, despite trim_start_matches returns a &str and not an Option, which I
  like less.
2020-09-03 10:47:48 +02:00
Vincent Prouillet d1ca1e3e3e
Update themes gallery (#1153)
Co-authored-by: GitHub Action <action@github.com>
2020-09-02 19:34:02 +02:00
Sam Vente 2ac1d79f8f
fix get_taxonomy_url to handle merged taxonomies properly (#1155) 2020-09-02 11:40:06 +02:00
Vincent Prouillet cc647f8971 Make anchors always visible in docs 2020-09-01 22:24:33 +02:00
Vincent Prouillet e0068ef116 Remove mention from changelog 2020-09-01 21:23:29 +02:00
Vincent Prouillet 6c2300f916 Disable minify_html for now 2020-09-01 21:07:18 +02:00
Sam Vente c143d95c4e
Reverse pagination (#1147)
* mention code block output change

* Update snap

* Update themes gallery (#1082)

Co-authored-by: GitHub Action <action@github.com>

* Deployment guide for Vercel

* Change wording a bit

* Update themes gallery (#1122)

Co-authored-by: GitHub Action <action@github.com>

* Add feed autodiscovery documentation (#1123)

* Add feed autodiscovery documentation

* Fix link in template

* Docs/configuration update (#1126)

* Update configuration documentation

- Attempt to split the configuration file into sections to make it more readable and
  avoid configuration mistakes (#1056).
- Move translation instructions to the right part.
- Add a bit more explanations to the extra section.

* Take into account @Keats feedbacks

* Remove short notice about translation usage

- A i18n page should be created to better explain it.

* add fix for (#1135) Taxonomies with identical slugs now get merged (#1136)

* add test and implementation for reverse pagination

* incorporate review changes

Co-authored-by: Michael Plotke <bdjnks@gmail.com>
Co-authored-by: Vincent Prouillet <balthek@gmail.com>
Co-authored-by: GitHub Action <action@github.com>
Co-authored-by: Samyak Bakliwal <w3bcode@gmail.com>
Co-authored-by: René Ribaud <uggla@free.fr>
2020-09-01 21:00:21 +02:00
René Ribaud 5ec3a9ca65
Strip unc if it exists, fix #1110 #1129 (#1151)
* Strip unc if it exists, fix #1110

* Bump pinned version to 1.45.2

* Bump to minimum version required.

- https://github.com/getzola/zola/pull/1129#discussion_r480172320

* Add unc comments and a required test

* Fix typo in rust pinned version

* Fix types not ok
2020-09-01 11:48:42 +02:00
Vincent Prouillet 4f5fd63281 Update deps + pinned 2020-08-28 19:49:19 +02:00
areille 0df3631b3d
Add minify support (#1146)
* Doc add a missing arg to `get_taxonomy_url` (#1139)

This feature is already exist, but not in the doc yet

Related #766

* Add minify support

* Add documentation

* Code review

* Fix error in documentation

* Update minify-html to 0.3.6

* Move minify into write_content function

* Fix multiple calls to minify()

* Add test for minified output

* Fix breaking test

Co-authored-by: Ken <2770219+ken0x0a@users.noreply.github.com>
2020-08-28 19:39:19 +02:00
Yaroslav d571dea8c3
Per section/subsection feeds (#1128)
* Per section/subsection feeds

* Added `generate_feed` variable to section front matter.
* Generate atom/rss feeds for sections/subsections that have the
`generate_feed` variable set to true (false by default); this works
independent of the `generate_feed` variable in the root `config.toml`
file, however, the name (and template) of the feed file for each section
is the same as `feed_filename` in `config.toml`, just located in the
root of each section.
* Slightly edited `atom.xml` and `rss.xml` so that they include the
section title (if any), and the url of a section, if it's a section
feed.

* Section feeds: tests

* Changed a couple of sections' front matter in order to generate feeds
for them for the test.
* Changed the can_build_feed test in site package to can_build_feeds and
included some assertions to make sure that section feeds are generated
when requested.

* Section feeds: documentation

* Added information about the section front matter variable
`generate_feed` in the section content page.
* Added information about section feeds in the feeds template page.

* Section feeds fix: use section.path for feed path
2020-08-27 20:21:37 +02:00
Sam Vente 6e16dfdc29
A Fix for the permalinks in #1136 (#1142)
* add fix for (#1135) Taxonomies with identical slugs now get merged (#1136)

* update templates so they propperly render taxonomy names

* squash! add fix for (#1135) Taxonomies with identical slugs now get merged (#1136)

reimplement taxonomy deduping

* revert unwanted changes to templates

* add tests for unic in permalinks

* add tests for unic in permalinks
2020-08-26 19:36:02 +02:00
Nathan West af0dd5ef32
Fixed unsound errors (#1143) 2020-08-20 19:51:17 +02:00