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
f6bbece1c6
Make Escaper
doctest not-ignored ( #321 )
2021-11-21 08:57:26 +00: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
5f4a5bd54a
Remove trailing space
2021-11-10 20:16:02 +11:00
Chris Wong
0d4276220d
Update slash error message to point to #315 ( #317 )
2021-11-07 12:31:46 +00: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
317bf9e5ec
Rename Attribute
to NamedAttr
( #314 )
2021-11-07 11:39:44 +00:00
Chris Wong
40487fc34c
Switch rustfmt to nightly ( #313 )
...
Nightly rustfmt is needed for the `imports_granularity` option.
2021-11-07 02:24:44 +00:00
Chris Wong
3c12d3639b
Simplify Generator::block
( #312 )
2021-11-07 02:22:28 +00: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
Chris Wong
057a231715
Fix UI tests for nightly diagnostic change ( #304 )
2021-10-17 19:07:51 +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
GKnirps
df98f4f00b
Bump dependency proc-macro2 to 1.0.23 ( #301 )
...
- it won't build with 1.0.19
2021-09-28 22:41:20 +10: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
9236d18511
Revert Cargo bug workaround ( #297 )
2021-09-20 10:37:44 +00:00
Chris Wong
fe4345d0d8
Apply the workaround to docs build too ( #296 )
2021-09-18 11:56:34 +00:00
Chris Wong
2add073517
Change examples build to cargo check
( #295 )
2021-09-18 21:27:04 +10:00
Emilio González
4b317956fa
Report error for missing closing tag token ( #287 )
2021-09-18 19:30:13 +10:00
Chris Wong
d8941fe0a3
Add workaround for rust-lang/cargo#9919 ( #294 )
2021-09-18 08:22:12 +00:00
Chris Wong
36f786b39d
Fix unused variable in benchmark ( #291 )
2021-09-12 03:07:06 +00:00
Chris Wong
dc028116b8
Enforce merged imports ( #290 )
...
Closes #281
2021-09-11 10:42:25 +00:00
Chris Wong
c9cb58de40
Rename "master" to "main"
2021-09-11 20:30:35 +10: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
Max Countryman
eb9cd821ca
ensure tide default-features are disabled ( #286 )
...
This ensures that maud itself doesn't dictate what features an author might like to use.
2021-08-29 12:24:22 +10: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
Chris Wong
9a2c4fba4f
Fix Clippy warning ( #285 )
2021-08-17 19:22:46 +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
Benjamin Halsted
3eb4254ffb
Using no_std + alloc ( #279 )
...
Removed references to `std` and replaced them with references to `core` and `alloc`.
Features `rocket` and `iron` still require `std`.
Co-authored-by: Chris Wong <lambda.fairy@gmail.com>
2021-07-30 22:05:31 +10:00
Chris Wong
6a3d3eca6e
Remove #![feature(extended_key_value_attributes)]
( #274 )
...
Closes #273
2021-05-20 05:16:04 +00:00
Chris Wong
56f108c564
Update to rustc 1.54.0-nightly (6d395a1c2 2021-05-13) ( #272 )
2021-05-15 14:14:31 +00:00
Chris Wong
8990049101
Improve error message for non-string literals ( #265 )
...
Closes #208
2021-03-21 22:20:37 +11:00
Chris Wong
ce6458af41
Fix doc comments on parser
2021-03-13 20:49:05 +11:00
Chris Wong
9f7331f427
Remove Attrs
type alias ( #264 )
2021-03-13 20:25:56 +11:00
Chris Wong
7284924cc8
Add more UI tests ( #262 )
...
cc #261
2021-03-13 19:38:50 +11:00
Chris Wong
4cffcd298b
Remove [Foo] tags from changelog ( #260 )
...
I don't think they add much, and they conflict with mdformat which
escapes square brackets (executablebooks/mdformat#112).
cc #231
2021-01-26 22:47:49 +13: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
0a0172e0fe
Update release process to mention automatic docs publish
2021-01-09 19:30:37 +13:00