Chris Wong
5aa543a6c2
Replace split_n(2, ...)
with split_once
( #344 )
2022-05-13 05:05:36 +00:00
David Pedersen
6e3222f57a
Update to axum-core 0.1 ( #325 )
...
* Update to axum-core 0.1
Together with the new 0.4 release of `axum` we made a new crate called
[`axum-core`]. `axum-core` has a small API and is less likely to receive
breaking changes. Therefore its recommended for libraries to depend on
`axum-core` instead of `axum`.
So this updates `maud` to use `axum-core`.
Note this is a breaking change since `axum-core` requires `axum` 0.4.
[`axum-core`]: https://crates.io/crates/axum-core
* Update changelog link
* fix test
2021-12-08 19:12:00 +11:00
Chris Wong
ca860d09bd
Add a style guide for the docs ( #323 )
2021-11-29 11:06:56 +00:00
Chris Wong
2f3d68c8a4
Remove blanket Render
impl for T: Display
( #320 )
...
Closes #271
2021-11-21 19:58:58 +11:00
Chris Wong
12cec48134
Run Clippy on docs builder ( #319 )
2021-11-11 22:32:37 +11:00
Chris Wong
982c9f4a03
Release 0.23.0 ( #318 )
2021-11-11 22:08:26 +11:00
Chris Wong
dc6c88fae3
Disallow slashes (/
) in void elements ( #315 )
...
# Overview
The following syntax will no longer work:
```rust
html! {
br /
link rel="stylesheet" href="styles.css" /
}
```
This should be changed to the following:
```rust
html! {
br;
link rel="stylesheet" href="styles.css";
}
```
# Rationale
The `;` syntax was introduced in #96 ; the rationale for it can be found there.
Removing support for the older `/` syntax will simplify the API surface, and allow for the space to be used for other things.
2021-11-07 23:17:15 +11:00
Chris Wong
434af86ae7
Remove Iron support ( #289 )
...
The Iron framework hasn't been updated in a long time. It still uses outdated versions of libraries like futures 0.1, hyper 0.12, url 1.7. We can clean up the repo by removing it. This will also slightly speed up CI.
2021-11-06 11:44:10 +00:00
Chris Wong
3232fb7eca
Delete maud_htmlescape
package ( #311 )
...
Replace it with a symlink. Cargo will automatically resolve this to a
normal file on publish.
2021-11-06 11:33:44 +00:00
Chris Wong
45157fc58c
Partially revert #309 for class shorthand ( #310 )
...
On reflection, the extra spaces around classes feels weird to me. Let's revert that (but keep the 2021 edition migration in place).
2021-11-06 21:51:34 +11:00
Chris Wong
49755007da
Update to Rust 2021 ( #309 )
2021-11-01 17:18:48 +11:00
Chris Wong
0106dfd909
Remove horizontal body padding in docs site
...
For some reason, this pushes everything off-center.
2021-11-01 16:52:55 +11:00
Alexandre Macabies
2909e5129c
Add support for Option<T> attributes ( #306 )
...
* Add support for Option<T> attributes
Introduces the `attr=[value]` syntax that assumes `value` is an
`Option<T>`. Renders `attr="value"` for `Some(value)` and entirely
omits the attribute for `None`.
Implements and therefore closes #283 .
* Call `Generator::splice` directly
* Handle struct literals (edge case)
Co-authored-by: Chris Wong <xbuns@google.com>
2021-10-29 16:24:34 +11:00
David Pedersen
4374979a4f
Update to support axum 0.2 ( #303 )
...
* Update to support axum 0.2
* Update changelog
2021-10-16 14:14:27 +11:00
Chris Wong
c4cd049da8
Fix docs version indicator to include unannotated tags ( #302 )
...
Looks like GitHub's release feature doesn't create annotated tags by default.
2021-10-01 12:58:15 +00:00
Chris Wong
7a839a9a1c
Bump maud_htmlescape
version for no_std
support
2021-09-27 22:01:18 +10:00
Chris Wong
2700f714bc
Release 0.22.3 ( #300 )
2021-09-27 11:55:45 +00:00
Chris Wong
fe7588fcef
Remove "blazing" ( #298 )
...
It doesn't mean anything.
2021-09-24 10:01:55 +00:00
Chris Wong
dc028116b8
Enforce merged imports ( #290 )
...
Closes #281
2021-09-11 10:42:25 +00:00
Chris Wong
46000ee32e
Don't show the full executable path for Cargo status line
2021-09-04 16:38:37 +10:00
Chris Wong
5aa70751ac
Use \033 instead of \e in Makefile
...
macOS has an old version of `printf` that only supports octal escapes.
2021-09-04 16:37:41 +10:00
Chris Wong
3ceb70d727
Refactor book builder ( #288 )
...
Move page and nav builders to separate modules.
2021-09-04 06:26:32 +00:00
Marcel Müller
cc62bcbb86
Add axum support ( #284 )
...
Co-authored-by: Chris Wong <lambda.fairy@gmail.com>
2021-08-17 19:25:07 +10:00
Max Countryman
ba9c7b523c
Tide support ( #280 )
...
This introduces support for Tide by implementing `From` over markup.
Unlike other frameworks, Tide does not seem to provide e.g. a trait
which could instead be implemented. However as demonstrated, this
alternative results in a simple, ergonomic interface.
Consumers may leverage Tide support by using the "tide" feature.
Co-authored-by: Chris Wong <lambda.fairy@gmail.com>
2021-08-06 14:22:05 +10:00
Chris Wong
75b6801f47
Switch documentation to semantic line breaks ( #259 )
...
mdformat will preserve semantic line breaks, so we may as well commit to
using them.
cc #231
2021-01-22 19:31:51 +13:00
Chris Wong
eaf552d417
Test documentation examples in CI ( #257 )
...
Closes #230
Closes #256
2021-01-15 17:40:46 +13:00
Chris Wong
587e536fb6
Remove the docs deploy script
2021-01-09 19:23:07 +13:00
Chris Wong
a0f6e16958
Run publish docs action on release
...
- Document this change in the readme
2021-01-09 19:20:15 +13:00
Chris Wong
87b7c9c2ba
Release 0.22.2 ( #253 )
2021-01-09 18:01:17 +13:00
Chris Wong
01636f5545
Add CNAME to manual deploy script ( #250 )
2021-01-06 23:33:00 +13:00
Chris Wong
202dc1ef01
Fix pulldown-cmark/ammonia example in docs ( #249 )
...
Closes #247
2021-01-06 23:09:59 +13:00
Chris Wong
0358af67dc
Improve "elements and attributes" documentation ( #242 )
2020-12-01 10:44:05 +13:00
Chris Wong
d5dec51c3a
Make the ?
suffix for empty attributes optional ( #238 )
2020-11-11 16:47:23 +13:00
Chris Wong
0c9b6f2150
Release 0.22.1 ( #235 )
...
* Release 0.22.1
* Update benchmarks and docs dependencies
* Comrak breaking change
2020-11-02 19:24:13 +13:00
Chris Wong
159b4080d2
Document splices in classes and IDs ( #232 )
2020-11-02 16:33:03 +11:00
Chris Wong
3af1397541
Rewrite docs ( #232 )
2020-11-02 12:53:27 +13:00
Chris Wong
b3d16f83b1
Add a version string to the documentation ( #227 )
2020-10-08 11:05:00 +13:00
Chris Wong
b670d85595
Update documentation to account for stable support ( #218 )
...
* Remove `#![feature(proc_macro_hygiene)]` from documentation
Closes #217
* Update comment about nightly vs stable
2020-10-08 11:02:19 +13:00
Chris Wong
49f3c46bd2
Avoid unstable specialization with this one weird trick! ( #223 )
...
Rustaceans hate him!
2020-10-05 22:44:27 +13:00
Chris Wong
165cfd5fe0
Update benchmarks and documentation dependencies ( #221 )
...
* Add `--locked` to benchmarks and documentation builds
* Update `Cargo.lock` and fix docs generator
2020-09-28 22:57:55 +10:00
Chris Wong
d66c2d66fd
Remove #![feature(proc_macro_hygiene)]
( #216 )
2020-09-27 23:17:41 +10:00
Chris Wong
50a7e9ce37
Format everything!
2020-09-27 21:36:27 +10:00
Chris Wong
34a79ee706
Release 0.22
2020-06-20 19:57:51 +10:00
Chris Wong
fe5fcb13e9
Update dependencies for benchmarks and docs
2020-06-20 19:34:04 +10:00
Chris Wong
abb1e799f9
Remove #![feature(crate_visibility_modifier)] ( #197 )
...
The documentation builder is an executable crate, so crate-level visibility doesn't add much.
2020-06-20 19:22:10 +10:00
brian
240ecf03b8
Add example to docs of custom element ( #186 )
...
* Add example to docs of custom element
* incorporate feedback
2020-05-28 16:04:19 +10:00
Chris Wong
f5dbccdc96
Fix deploy.sh to actually build in parallel
2019-09-14 19:15:55 +12:00
Chris Wong
d0f29ae410
Change username from lfairy to lambda-fairy
2019-09-14 13:48:59 +12:00
kstrohbeck
680607dfae
Update actix-web support documentation. ( #177 )
2019-06-29 12:29:04 +12:00
Chris Wong
ee74c3ec49
Clean up partials docs
2019-05-09 21:30:04 +12:00