Commit graph

557 commits

Author SHA1 Message Date
Paul Fesenmeier
f8020a3139
Show usage of latest github action version (#1638) 2021-10-14 15:01:40 +02:00
Matt K
dd0ce5c79a
Make whitespace separation consistent/explicit (#1628) 2021-09-24 15:27:37 +02:00
David
23064f57c8
Support custom syntax highlighting themes (#1499)
Related to #419

Gruvbox tmTheme added to test_site, it is taken from
https://github.com/Colorsublime/Colorsublime-Themes (MIT licensed)
2021-09-13 21:08:48 +02:00
Vincent Prouillet
9946506e1c
Update themes gallery (#1614)
Co-authored-by: GitHub Action <action@github.com>
2021-09-12 21:44:45 +02:00
Avinash Sonawane
8258305117
Some more improvements to documentation (#1508)
* Docs: resize_image is a Zola built-in Tera function

* Fix highlight languages
2021-09-10 16:10:10 +02:00
Matt K
9f88d7539f
fix typo (#1613) 2021-09-07 10:03:54 +02:00
Vincent Prouillet
95163284e7 Fix outdated i18n setup config 2021-09-04 08:32:45 +02:00
acheronfail
b503d5cc86
feat: add required argument to taxonomy functions (#1598) 2021-09-04 08:25:03 +02:00
Jochen Kupperschmidt
4c4fad2cfb
Adjust whitespace in expression delimiters (#1610)
Consistent whitespace makes the constructs easier to recognize.
2021-09-04 08:11:56 +02:00
southerntofu
84b75f9725
[feature] Shortcodes and anchor-link.html can access lang context (#1609)
* Pass lang to shortcodes context

* Add tests for lang in shortcodes

* Lang is passed to anchor-link.html template

* Document passing lang to shortcodes/anchor-link.html
Add a test to make sure lang can be overriden by passing an explicit argument to the shortcode,
for usage in the markdown filter where the language context is not available.

* Update docs for more information on shortcodes+i18n+markdown() filter

Co-authored-by: southerntofu <southerntofu@thunix.net>
2021-09-04 08:10:33 +02:00
Gijs Burghoorn
eceb1bd79d
Added prompt for when zola build output-dir mentions an existing directory. (#1558)
* Next version

* Added ask prompt for output-dir flag

Added `ask_bool` prompt for `--output-dir` for when the output directory
targeted already exists in the file system.

[Issue: #1378]

* Updated the documentation for #1378

* Added missing "sure" in prompt text

* Added timeout to prompt + dirname

* Fixed complication errors

Co-authored-by: Vincent Prouillet <balthek@gmail.com>
2021-09-04 08:10:02 +02:00
Nicolas Marier
5a418e1e39
docs(configuration): move extra syntaxes to markdown
After much trial and error, it would seem that the correct location for extra syntaxes is actually the markdown section rather than the main section. This commit fixes that part of the docs.
2021-08-31 17:21:22 -04:00
Vincent Prouillet
3dcc080f9d
Merge pull request #1553 from getzola/next
Next version
2021-08-24 09:09:59 +02:00
Marc-Antoine ARNAUD
f866e0b650
Update docker documentation usage with Zola 0.14.0 (#1594) 2021-08-20 19:49:44 +02:00
Koen Bolhuis
5ca2b29c49
Fix cachebust for files in the output path (#1586)
* Consider the site's output path in search_for_file

The search_for_file helper function now accepts an optional
output path. If passed, the file will also be searched there.
This is used in the get_url function to search in the
Site::output_path.

In practice, this means cachebust works for files in the
output path.

* Make output_dir required in search_for_file

* Update docs for file searching logic

* Add test for new file searching behavior
2021-08-19 07:55:40 +02:00
Vincent Prouillet
8802e77880
Update themes gallery (#1589)
Co-authored-by: GitHub Action <action@github.com>
2021-08-18 15:32:46 +02:00
liushuyu
c658d171f8
cargo/manifests: allow user to use native-tls if ring is unsupported (#1587)
* cargo/manifests: allow user to use native-tls ...

... if `ring` can't be used on the user's platform (e.g. mips/ppc/riscv)

* CI: test for native tls build
2021-08-18 15:32:34 +02:00
Vincent Prouillet
3bedb42b0b Fix languages docs
Closes #1567
2021-08-08 10:28:32 +02:00
Enmanuel de la Nuez
e2f2f4f779
Briefly explain TOML tables (#1576)
* Briefly explain TOML tables

There's a warning about a possible source of errors, but it doesn't give you the relevant information to actually make sense of it. I hope this saves someone a search since I personally had to find this out reading the TOML spec.

Any other ways to phrase this?

* Update configuration.md
2021-08-03 09:20:34 +02:00
GitHub Action
8c98d11363 Update themes gallery 2021-08-02 14:32:05 +00:00
Vincent Prouillet
0f9638120e
Merge pull request #1557 from coastalwhite/local-devices-sidenote
Added sidenote on serving to local devices
2021-07-22 09:05:51 +02:00
Gijs Burghoorn
365b15ccc2 Added sidenote on serving to local devices
[Issue #1556]
2021-07-21 22:18:37 +02:00
Herby Gillot
f8d3dabc17
README: add MacPorts info 2021-07-21 07:11:51 -04:00
Vincent Prouillet
fa00914db6 Mention paginator.current_index is 1-indexed
Closes #835
2021-07-19 20:56:23 +02:00
Vincent Prouillet
a5cc4dc462 Update processed images 2021-07-18 14:03:14 +02:00
Vincent Prouillet
b89fc2c274
Merge branch 'master' into next 2021-07-18 13:53:27 +02:00
Vincent Prouillet
4a87689cfb Add class based syntax higlighting + line numbers (#1531)
* Add class based syntax higlighting + line numbers

* Use fork of syntect for now

* Fix tests

* Fix diff background on inline highlighter

Co-authored-by: evan-brass <evan-brass@protonmail.com>
2021-07-10 08:53:19 +02:00
Bert JW Regeer
57705aa82e
Add permalink to Taxonomy (#1516)
* Add permalink to Taxonomy

* Document permalink addition to TaxonomyConfig
2021-07-10 08:43:22 +02:00
Avinash Sonawane
96e28ddd5c
Docs: Fix resize_image and gallery shortcodes (#1543) 2021-07-07 11:08:37 +02:00
Vincent Prouillet
ee85300303 Mention load_data only works with utf-8
Closes #1539
2021-06-29 22:24:34 +02:00
Vincent Prouillet
3e1a934604 Fix tests and add note about translations 2021-06-25 10:12:05 +02:00
Marshall Bowers
93900fb623
Add num_format filter (#1460)
* Add `num_format` filter for displaying formatted numbers

* Register the filter

* Update docs

* Make `locale` argument required

* Revert "Make `locale` argument required"

This reverts commit 9cdbf28591.

* Pull the default locale from the site config

* Add note about defaults to the docs

* Add missing borrow
2021-06-25 10:07:52 +02:00
Vincent Prouillet
545e766818 Allow functions to look into current theme static folder
Closes #1416
2021-06-24 23:12:05 +02:00
Vincent Prouillet
8e9b779fc6 Mention lang for get_taxonomy
Closes #1517
2021-06-24 22:03:33 +02:00
Vincent Prouillet
1e6768b18d Remove search index for themes 2021-06-24 08:37:25 +02:00
Matt Ronchetto
312ffcb04c
chore: update Vercel documentation (#1527)
This brings in the proper and latest method to use Zola with Vercel.
2021-06-14 09:42:05 +02:00
Vincent Prouillet
c0a0df4fe9 Update resize_image docs 2021-06-11 23:39:48 +02:00
Vincent Prouillet
1bf5cd7bf8 Update docs + sandbox files 2021-06-11 21:14:45 +02:00
Mohsen Alizadeh
635159114d
hide search-results on blur (#1488) 2021-06-03 21:38:47 +02:00
Tim Schumacher
16c123aa20
Include path in the search index with include_path (#1509) 2021-06-02 09:18:39 +02:00
Avinash Sonawane
7fab9b4774
Improve docs (#1506)
* Docs: Mention page.summary for summary

* Docs: Link global functions

* Docs: Fix typos
2021-05-31 09:21:18 +02:00
Pankaj Patil
b292f452bd
Fix|Docs: paginate_reversed is missing from example _index.md (#1501)
* Fix|Docs: paginate_reversed is missing from example _index.md

* Update docs/content/documentation/content/section.md

Co-authored-by: Vincent Prouillet <balthek@gmail.com>
2021-05-30 17:39:43 +02:00
Abhishek Dahal
1cecf60bf6
Update Travis CI link to point to updated website (#1498) 2021-05-28 17:59:08 +02:00
Avinash Sonawane
ff8805ec09
Docs: Don't suggest/use a CSS framework (#1495) 2021-05-27 15:10:51 +02:00
Avinash Sonawane
0ca311fdd1
Docs: Document variables with default values (#1493) 2021-05-26 22:42:24 +02:00
Avinash Sonawane
6a84f1b4b8
Docs: weight ties sort sections in random order (#1492) 2021-05-26 16:34:39 +02:00
Rohan Sharma
4f023d8c70
Docs: Resize feeds image (#1485)
* Docs: Resize feeds image

* Docs : Move changes to main file

* Fixed formatting
2021-05-25 15:45:18 +02:00
Avinash Sonawane
14b1a3570a
Docs: Add highlight theme green to docs (#1486) 2021-05-24 10:42:57 +02:00
Vincent Prouillet
aaa4f4e872 Fix highlighting 2021-05-24 08:20:28 +02:00
Avinash Sonawane
60386292a8
Docs: Move build_search_index to root level in config.toml (#1479) 2021-05-23 17:15:48 +02:00
Vincent Prouillet
ca4b5d5c45 Remove unused option
Closes #1477
2021-05-23 14:01:58 +02:00
Avinash Sonawane
8ee6df030f
Docs: Mention that the output directory will be deleted before build (#1472)
and serve
2021-05-23 13:53:25 +02:00
Avinash Sonawane
22fcae457a
Docs: Add second.md filename to directory structure overview (#1469) 2021-05-21 22:00:30 +02:00
Avinash Sonawane
0596b9944c
Docs: Remove --watch-only flag (#1468) 2021-05-21 21:58:13 +02:00
François
b244bcdfbb
Hide lines in code block (#1453)
* hide lines

* test hide ines

* add documentation

* fix test

* factor shared code with hl_lines
2021-05-14 20:25:13 +02:00
Vincent Prouillet
5365efebb3 Add protobuf syntax highlighting 2021-05-10 22:09:36 +02:00
Vincent Prouillet
5df6e034c4 Update MSRV 2021-05-09 23:03:19 +02:00
Vincent Prouillet
998f700f30
Update themes gallery (#1449)
Co-authored-by: GitHub Action <action@github.com>
2021-05-08 23:24:44 +02:00
Chanakya
3a5ae0f073
Update configuration.md (#1450) 2021-05-08 20:44:31 +02:00
Vincent Prouillet
b2adfae4bc Add Zig highlighting
Closes #1370
2021-05-05 21:55:30 +02:00
Vincent Prouillet
10c1739c62 Update pinned MSRV 2021-05-05 21:36:56 +02:00
Vincent Prouillet
dc0c7df3b0
Update themes gallery (#1443)
Co-authored-by: GitHub Action <action@github.com>
2021-05-05 21:31:15 +02:00
Vincent Prouillet
84fb2f30f3 Mention WSL2 filesystem
From #1440
2021-05-05 19:35:59 +02:00
Jordan Stanway
dedd8692fd
revise documentation for gh-pages (#1441) 2021-05-04 13:11:26 +02:00
Martin Simon
a0b92be9f6
doc(installation): add Debian package (#1432) 2021-04-26 09:27:23 +02:00
Vincent Prouillet
e92e4f1003 Tweaks to load_data + update deps 2021-04-21 21:43:02 +02:00
Marco Tolk
1bd777f0e5
Add HTTP POST capability to load_data() (#1400)
* Fixed failing tests on windows when user is not VssAdministrator.

* Fixed windows specific testcases related to \r

* Added the ability to perform POST requests to load_data

* make tests on windows deal with both \r being there on windows, and \r not being generated as on my personal windows system.

* undo earlier commit eaaa8c3ddd

because it fails on azure buildserver

* added new arguments to the hash for the cache function.

So caching now works as it should

* added new arguments to the hash for the cache function.

* improved documentation of load_data POST with better example.

* added basic derive traits

* changed load_data param contenttype to content_type

* fixed caching issues that went missing?

* format

* made code more idiomatic as suggested by keats
2021-04-21 21:29:47 +02:00
Songmin Li
4f7b960985
Fix can not build with indexing-zh (#1433)
* fix can not build zola with search/indexing-zh feature

* fix can not build components/utils after enabled indexing-zh feature

error[E0252]: the name `Deserialize` is defined multiple times
 --> components/utils/src/de.rs:2:5
  |
1 | use serde::{Deserialize, Deserializer};
  |             ----------- previous import of the macro `Deserialize` here
2 | use serde_derive::Deserialize;
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^ `Deserialize` reimported here
  |
  = note: `Deserialize` must be defined only once in the macro namespace of this module
2021-04-19 10:33:12 +02:00
Stanislas
6e2595a191
doc(syntax-highlighting): fix available values (#1427) 2021-04-07 21:17:02 +02:00
Stanislas
a9afb076b4
doc(content/page): fix typo (#1419) 2021-03-27 08:54:11 +01:00
Bert JW Regeer
5bf9ebc43a
Feature: allow spaces between dashes in filename for page (#1323)
* Allow optional whitespace around dash/underscore in filename

Allow file names that are as follows:

    2021-01-01 - test.md

To be parsed the same as if they were

    2021-01-01-test.md

The slug for both will now just be "test" instead of previously the
first example would have become "2021-01-01-test".

* Add documentation for optional whitespace in filename

* Test that updated regex does not take space after dash
2021-03-22 20:00:25 +01:00
Roman
226ff377c7
add Cloudflare Pages to docs (#1414) 2021-03-17 22:10:21 +01:00
Tiago Seabra
534174ae78
feat: add base16-atelierdune-light highlight theme (#1406)
* feat: add base16-aterlierdune-light highlight theme

* docs: add base16-atelierdune-light theme to CHANGELOG
2021-03-14 09:49:29 +01:00
Vincent Prouillet
940e479596 Fix typo + do not include themes section in search index 2021-03-13 21:09:17 +01:00
Jakub Kozłowski
12c46a9d92
Add note on the requirement of paginate_by (#1403) 2021-03-11 19:35:54 +01:00
Youri Seichter
ba0c384602
Clarify where to define the theme in the .toml file (#1390)
It was not clear that the user has to place it in the top level of the
file. I had an issue with that.
2021-03-06 21:12:21 +01:00
Vincent Prouillet
2a46e07e74 Add path to TaxonomyTerm
Closes #1336
2021-02-22 21:27:52 +01:00
Yngve Høiseth
d29693066e
Document conditional TOC rendering (#1376)
* Document conditional TOC rendering

* Simplify demonstration of conditional rendering
2021-02-22 21:05:45 +01:00
throwaway1037
8630c790b8
Update outdated link (#1375)
This change is less confusing to readers as it does not redirect.
2021-02-22 18:11:32 +01:00
throwaway1037
c26b94ab8a
Remove stray word (#1368) 2021-02-21 08:14:30 +01:00
apiraino
5ce082dfad
Add Sourcehut Pages as deployment platform (#1365) 2021-02-20 17:26:46 +01:00
Skyper
d3ab3936de
[WIP] Add support for base64-encoded hash values to 'get_file_hash' (#1339)
* Add support for base64-encoded hash values

The global template function 'get_file_hash' can now return a
base64-encoded hash value when its 'base64' parameter is set to true.

See discussion in #519.

* Fix integrity attribute's value in test site

SRI hash values must be base64-encoded.

* Update documentation about 'get_file_hash'

* Fix 'can_get_hash_for_static_files' unit test
2021-02-20 13:31:37 +01:00
Hanno Braun
6d6df45f23
Make shortcodes work in markdown filter (#1358)
* Move `load_tera` to `templates`

I don't know if this is a good place for it, conceptually. I'm moving it
there because I need to use it from `templates`, and `templates` can't
depend on `site`, because there's already a dependency in the opposite
direction.

* Load templates in `markdown` filter

This enables the `markdown` filter to handle shortcodes, as long as
those shortcodes don't access any context variables.

Addresses #1350

* Update documentation of `markdown` filter

* Only load templates for `markdown` filter once

* Clarify `markdown` filter documentation

This is a lightly edited version of what @southerntofu suggested.
2021-02-19 20:51:08 +01:00
apiraino
3ba2d33564
Copyright date always ending on current year (#1366) 2021-02-19 18:46:36 +01:00
Vincent Prouillet
5d1d5d60e7
Update themes gallery (#1364)
Co-authored-by: GitHub Action <action@github.com>
2021-02-18 22:33:11 +01:00
Philip Kristoffersen
8eac5a5994
WebP support in resize_image (#1360)
* Removing unused webpl

* Adding clarification comment

* Updating documentation

* Adding webp
2021-02-18 22:30:10 +01:00
Jeremy
bf05a54a2e
Add live reload tip for serving site with docker (#1352) 2021-02-13 20:06:59 +01:00
Benjamin Kane
def95886fb
Add final directory structure to overview (#1348)
For https://github.com/getzola/zola/issues/1341
2021-02-12 14:36:01 +01:00
Chiu-Hsiang Hsu
3cb61c3bcd
Support embed YouTube playlist (#1342) 2021-02-07 17:13:03 +01:00
William Desportes
49b6087d21
Document Docker Hub (#1337) 2021-02-03 14:59:45 +01:00
William Desportes
afd5da4f64
Improve documentation (#1335)
* Fix "overriden" to "overridden" typo

* Add my website to the EXAMPLES

* HTTPS migration for some links

* Fix #1295 - Document alpine linux version

Fixes: #1295

* Update Zola version on Travis CI example

* Documentation improvements and typo fixes

* Update more example versions and remove the useless variable on the GitLab CI example

* Fix all broken links and theme links
2021-02-03 13:13:49 +01:00
Vincent Prouillet
3b210d648c Use zola 0.13 for docs 2021-02-02 20:57:37 +01:00
southerntofu
15e0ae6699
load_data() template function takes a required boolean flag (closes #1209) (#1306)
* load_data() template function takes a `required` boolean flag

* Update tests for load_data()

* Add test to make sure invalid data always fails in load_data

* Better documentation, fixing a few typos

Co-authored-by: southerntofu <southerntofu@thunix.net>
2021-02-02 20:19:44 +01:00
Yngve Høiseth
c531f8cbfc
Document how to get translation for active language (#1329)
This was not obvious for me, so I assume some others might miss it.
2021-01-31 21:05:17 +01:00
Vlad
0298f81167
Update to 2021 (#1321)
* Update to 2021

* Actually update to 2021
2021-01-22 10:19:31 +01:00
David James
92b5b4b3a5
Add sort_by title (#1315)
* Add sort_by=title

* Remove old comment.

* Remove println! debugging

* Minor: text spacing

* Use lexical_sort crate for sort_by title

Co-authored-by: David James <davidcjames@gmail.com>
2021-01-20 15:35:25 +01:00
southerntofu
6950759eda
Internal links are supported in markdown filter (#1318)
* Internal links are resolved in tera markdown filter (close #1296 #1316)

* Add a test for internal links in markdown filter

Co-authored-by: southerntofu <southerntofu@thunix.net>
2021-01-20 09:24:55 +01:00
GitHub Action
8fe5fc9b5f Update themes gallery 2021-01-09 13:54:51 +00:00
Vincent Prouillet
63e1759713 Add pagination example to docs
Closes #1237
2021-01-09 10:26:32 +01:00
Matt Riggott
3b074c185c
Include "markdown" in list of config.toml sections (#1290) 2021-01-07 10:49:17 +01:00