Commit graph

557 commits

Author SHA1 Message Date
Vincent Prouillet
570e2fc278 Set current_term earlier in search JS
Closes #1856
2022-06-10 21:14:18 +02:00
Vincent Prouillet
3c540198b0 Mention CSS files in static assets overview
Closes #1892
2022-06-10 20:44:09 +02:00
Michael Clayton
6240ed5469
add link_checker settings for external_level and internal_level (#1848)
* add external_level and internal_level

* remove unnecessary debug derive on LinkDef

* clarify doc comment about link check levels

* simplify link checker logging

* add missing warn prefix

* simplify link level logging, remove "Level" from linklevel variants

* remove link level config from test site

* switch back to using bail! from get_link_domain

* move console's deps to libs

* remove unnecessary reference

* calling console::error/warn directly

* emit one error, or one warning, per link checker run

* various link checker level changes

* add docs about link checker levels

* remove accidentally committed test site

* remove completed TODO
2022-05-11 21:54:34 +02:00
Colin Dean
f7f5545bdc
Enables setting base-url to / for relative URLs in serve mode (#1853)
Having to change the base URL to whatever ngrok URL was provisioned for
me was frustrating. This patch enables setting it to `/`, which will
then make the `get_url()` function simply return `/`.
2022-05-10 22:04:40 +02:00
Vincent Prouillet
beb93f2b0a Expose backlinks 2022-05-08 14:10:29 +02:00
Ken "Elf" Mathieu Sternberg
77eb9fef9b
Create pull request/add yaml to load data (#1842)
* Add YAML to formats supported by load_data()

A fairly trivial addition; JSON and YAML are handled so similarly
that this was a matter of copying the JSON-relevant handlers and
editing the copies to handle YAML as well.  The test file was
literally generated with 'json2yaml'.

The documentation has been updated to indicate that load_data() now
handles YAML code.

The CHANGELOG has been updated as well.

* After checking, I found that it's generally agreed the mime type is still application/x-yaml.

* Update comment, unify library importing.

I noticed one more place where the list of formats was supported,
and added YAML to that list.

I noticed that there's a singular place to load the `libs::` crate,
and unified by importing of serde_yaml in that place.
2022-04-29 20:22:02 +02:00
Vincent Prouillet
84951d39e3 Allow taxonomies to not be rendered
Closes #1750
2022-04-27 21:11:42 +02:00
Luís Fonseca
896ea596fd
rename extra_highligh_themes to extra_syntaxes_and_themes (#1828)
extra_highligh_themes does not exist
2022-04-17 19:38:24 +02:00
Spencer Scorcelletti
a13d41b47c
Allow load_data to take a literal (#1794) (#1794)
* Add `literal` as a new entry for `data source`, to be used by the `load_data` function

* Add tests to the module for plain text, json, xml, toml, and csv

* Update error messaging to include literal as a potential choice

* Update site documentation to include instructions for using `load_data` with a literal
2022-03-21 10:15:24 +01:00
Michael Clayton
336a2716e0
switch from chrono to time (#1790)
* switch from chrono to time

* remove some unused time features

* get utc offset before threading begins
2022-03-20 22:01:01 +01:00
doomy
88e0624f11
Added XML support for load_data (#1769)
Co-authored-by: doomy <2640792-_doomy@users.noreply.gitlab.com>
2022-03-04 21:28:08 +01:00
Vincent Prouillet
a67370b8d8 Update pulldown_cmark 2022-03-04 00:16:48 +01:00
southerntofu
fb347c2e02
Bugfix check links i18n (close #1694) (#1780)
* Treat _index.LANG.md as section, not page (close #1694)
Display more advanced information in case of a future crash here

* Add link to translated local section in test_site_i18n to catch #1694
It appears linking to another translated page does not trigger the bug,
but linking to a section within the same (translated) page does.

* Allow (and test for) homepage internal links in broken link detection

Co-authored-by: southerntofu <southerntofu@thunix.net>
2022-02-26 21:56:33 +01:00
Vincent Prouillet
3dde2ce562 Update netlify deploy docs 2022-02-15 20:56:38 +01:00
Kartavya Vashishtha
a5890a9901 Make ignored_content work with nested paths and directories (#1738)
* Make ignored_content work with directories
Just had to remove strip_prefix(path) from file ignore code.
Added tests for subdirectory globbing.

* Add documentation

* add more tests
to confim that simple filename globs still match paths
without strip_prefix
2022-02-14 11:08:40 +01:00
Vincent Prouillet
53fca748e8 Mention Sass version support
Close #1619
2022-02-14 11:08:40 +01:00
Vincent Prouillet
f4f1e4b6e1 Mention translations for default language
Close #1634
2022-02-14 11:08:40 +01:00
Vincent Prouillet
4dfb35d83a Mention paginator in getting started overview
Close #1658
2022-02-14 11:08:40 +01:00
Vincent Prouillet
108d196b85 Add link to theme in syntax doc
Close #1679
2022-02-14 11:08:40 +01:00
Vincent Prouillet
a9b4cc6302 Add stemmer for other languages in the docs
Close #1740
Close #1349
2022-02-14 11:08:40 +01:00
Vincent Prouillet
90bddf0ef5
Update themes gallery (#1755)
Co-authored-by: GitHub Action <action@github.com>
2022-02-10 10:09:25 +01:00
alexander
991c18c2de
fixing docs for #1753 (#1757) 2022-02-10 10:09:15 +01:00
Philpax
542daa752c
Shortcodes: Mention argument parens are mandatory (#1752) 2022-02-07 11:15:14 +01:00
Vincent Prouillet
a7abc84067
Update themes gallery (#1742)
Co-authored-by: GitHub Action <action@github.com>
2022-01-23 23:39:09 +01:00
liushuyu
37b31cb61f templates/load_data: add an optional parameter headers (#1710)
* templates/load_data: add an optional parameter headers ...

... now `load_data` function supports setting extra headers

* docs/templates/overview: cover some edge-cases in the explanation

* templates/load_data: fix caching logic with headers

* docs/templates: change wording for load_data headers explanations
2022-01-23 14:33:51 +01:00
Koen Bolhuis
13e35963ad Fix option in syntax highlighting docs (#1712)
The sentence mentions `highlighting_themes_css` but the actual option is `highlight_themes_css`.
2022-01-23 14:33:51 +01:00
keno
c5aa1a2a33 docs: Add missing punctuation 2022-01-23 14:33:51 +01:00
Vincent Prouillet
14ccd898ba
Update themes gallery (#1737)
Co-authored-by: GitHub Action <action@github.com>
2022-01-18 10:56:30 +01:00
ilham
baae4d7101
Fix typo in docs (#1739) 2022-01-17 19:55:29 +01:00
Vincent Prouillet
47773c27d3
Update themes gallery (#1728)
Co-authored-by: GitHub Action <action@github.com>
2022-01-13 23:08:57 +01:00
Moritz
2aac1633ee
Improved Cloudflare Pages deployment guide (#1733)
Improved readability and fixed a few mistakes
2022-01-13 19:55:09 +01:00
Rishi Raj Jain
f4d312ba04
simplify Layer0 deployment guide (#1727)
* Update layer0.md

* Update layer0.md
2022-01-10 21:33:10 +01:00
w1kee
25ab1bcd59
docs: fix missing doublequote (#1719) 2022-01-04 21:01:37 +01:00
Philpax
ef26db82f8
docs: filter to main for example GH Pages config (#1715)
* docs: filter to main for example GH Pages config

* docs: update GH Pages wording to indicate choice of branch

* docs: typo fix
2022-01-04 11:51:17 +01:00
Dym Sohin
fac80b76ea
fix thumbnails sqaushing/stretching (#1711) 2022-01-03 13:33:17 +01:00
gcchaan
359de43587
Fix typo (#1709) 2021-12-28 14:18:41 +01:00
Vincent Prouillet
dbdacfabe5 Remove marketing content 2021-12-27 23:22:35 +01:00
Rishi Raj Jain
9a5f5207c1
Guide: Deploy Zola with Layer0 (#1704) 2021-12-23 19:58:53 +01:00
Ricky Nelson
bc51b5da36
Fix typo (#1706)
This file ends up in the public directory, not the static directory.
2021-12-23 19:40:53 +01:00
Vincent Prouillet
2ded7f5a81 dockerhub -> ghcr 2021-12-08 20:38:40 +01:00
Vincent Prouillet
a8a236f39c
Merge pull request #1597 from getzola/next
Next
2021-12-05 20:55:57 +01:00
Vincent Prouillet
d8aebbd220
Update themes gallery (#1674)
Co-authored-by: GitHub Action <action@github.com>
2021-12-03 19:45:41 +01:00
Vincent Prouillet
769264e3e5 Fix docs for get_url
Closes #1667
2021-12-02 19:53:42 +01:00
Vincent Prouillet
10a39e57ff Mention config.mode 2021-11-30 10:22:54 +01:00
BezPowell
35359fb312
Add generic template fallbacks to taxonomies (#1651)
* Split checking for theme template off into separate function

Allows to check for fallbacks elsewhere in the code, without attempting to actually render the template.

* Add template fallback checking to taxonomy pages.

* Add template fallback checking to paginated taxonomies

Requires passing additional arguments to Paginator::from_taxonomy, which may not be desirable.

* Update documentation to reflect taxonomy template fallbacks.

* Update generic taxonomy template names.

* Make check_template_fallbacks() return &str.

* Add tests for check_template_fallbacks
2021-11-29 09:54:16 +01:00
Vincent Prouillet
976ff6f2ef
Merge branch 'master' into next 2021-11-25 16:22:08 +01:00
Vincent Prouillet
862149e92e Update pinned ci version 2021-11-25 09:15:22 +01:00
Vincent Prouillet
19125e8dd2
Back to pest (#1665) 2021-11-23 22:58:51 +01:00
fumihiko hata
48e4fa0ce5
fix typo (#1663) 2021-11-19 22:34:00 +01:00
Jianan Sun
e186f08516
Fix page.updated's document. #1641 (#1644) 2021-10-21 11:54:14 +02:00