From 46a2794a878db9d39b96e02c61faedf13ff3c979 Mon Sep 17 00:00:00 2001
From: Adrian Heine
Date: Tue, 14 Mar 2023 13:28:47 +0100
Subject: [PATCH 1/5] Rename more typed-html references
This also fixes the documentation links from axohtml_macros to axohtml.
---
macros/Cargo.toml | 4 ++--
macros/src/lib.rs | 10 +++++-----
tests/Cargo.toml | 2 +-
typed-html/src/dom.rs | 2 +-
4 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/macros/Cargo.toml b/macros/Cargo.toml
index 67fa6d1..ad04e2c 100644
--- a/macros/Cargo.toml
+++ b/macros/Cargo.toml
@@ -6,8 +6,8 @@ authors = ["Axo Developer Co ", "Bodil Stokke "]
build = "build.rs"
license = "MPL-2.0+"
description = "Type checked JSX for Rust (proc_macro crate)"
-repository = "https://github.com/bodil/typed-html"
-documentation = "http://docs.rs/typed-html/"
+repository = "https://github.com/axodotdev/axohtml"
+documentation = "http://docs.rs/axohtml/"
readme = "../README.md"
categories = ["template-engine", "web-programming"]
keywords = ["jsx", "html"]
diff --git a/macros/src/lib.rs b/macros/src/lib.rs
index 73f735b..298758c 100644
--- a/macros/src/lib.rs
+++ b/macros/src/lib.rs
@@ -17,9 +17,9 @@ mod span;
/// Construct a DOM tree.
///
-/// See the crate documentation for [`typed_html`][typed_html].
+/// See the crate documentation for [`axohtml`][axohtml].
///
-/// [typed_html]: ../typed_html/index.html
+/// [axohtml]: https://docs.rs/axohtml/
#[proc_macro]
pub fn html(input: TokenStream) -> TokenStream {
let stream = lexer::unroll_stream(input.into(), false);
@@ -35,9 +35,9 @@ pub fn html(input: TokenStream) -> TokenStream {
/// Construct a Dodrio node.
///
-/// See the crate documentation for [`typed_html`][typed_html].
+/// See the crate documentation for [`axohtml`][axohtml].
///
-/// [typed_html]: ../typed_html/index.html
+/// [axohtml]: https://docs.rs/axohtml/
#[cfg(feature = "dodrio")]
#[proc_macro]
pub fn dodrio(input: TokenStream) -> TokenStream {
@@ -53,7 +53,7 @@ pub fn dodrio(input: TokenStream) -> TokenStream {
})
}
-/// This macro is used by `typed_html` internally to generate types and
+/// This macro is used by `axohtml` internally to generate types and
/// implementations for HTML elements.
#[proc_macro]
pub fn declare_elements(input: TokenStream) -> TokenStream {
diff --git a/tests/Cargo.toml b/tests/Cargo.toml
index eb0a72c..9d89e5b 100644
--- a/tests/Cargo.toml
+++ b/tests/Cargo.toml
@@ -6,7 +6,7 @@ authors = ["Bodil Stokke "]
publish = false
[[bin]]
-name = "typed-html-tests"
+name = "axohtml-tests"
path = "main.rs"
[dev-dependencies]
diff --git a/typed-html/src/dom.rs b/typed-html/src/dom.rs
index 42bfe20..fcccbd1 100644
--- a/typed-html/src/dom.rs
+++ b/typed-html/src/dom.rs
@@ -154,7 +154,7 @@ pub struct UnsafeTextNode(String, PhantomData);
///
/// This macro is useful for creating text macros inside code blocks that contain HTML
/// that you do not want to be escaped. For example, if some other process renders Markdown
-/// to an HTML string and you want embed that HTML string in a typed-html template,
+/// to an HTML string and you want embed that HTML string in an axohtml template,
/// you may want to avoid escaping the tags in that HTML string.
///
/// # Examples
From 643ab4622054bb6fbb26679fa494ebcbc22ebdc2 Mon Sep 17 00:00:00 2001
From: Adrian Heine
Date: Tue, 14 Mar 2023 13:46:39 +0100
Subject: [PATCH 2/5] Fix links in README
---
README.md | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md
index bc5cb08..7dcd965 100644
--- a/README.md
+++ b/README.md
@@ -168,10 +168,10 @@ Copyright 2018 Bodil Stokke, 2022 Axo Developer Co.
[Display]: https://doc.rust-lang.org/std/fmt/trait.Display.html
[String]: https://doc.rust-lang.org/std/string/struct.String.html
[to_string]: https://doc.rust-lang.org/std/string/trait.ToString.html#tymethod.to_string
-[Node]: dom/trait.Node.html
+[Node]: https://docs.rs/axohtml/latest/axohtml/dom/trait.Node.html
[FromStr]: https://doc.rust-lang.org/std/str/trait.FromStr.html
-[SpacedSet]: types/struct.SpacedSet.html
+[SpacedSet]: https://docs.rs/axohtml/latest/axohtml/types/struct.SpacedSet.html
[IntoIterator]: https://doc.rust-lang.org/std/iter/trait.IntoIterator.html
[Into]: https://doc.rust-lang.org/std/convert/trait.Into.html
[Into::into]: https://doc.rust-lang.org/std/convert/trait.Into.html#method.into
-[DOMTree]: dom/type.DOMTree.html
+[DOMTree]: https://docs.rs/axohtml/latest/axohtml/dom/type.DOMTree.html
From f15ed2d080327d05c639495dcb6e5ebab384396a Mon Sep 17 00:00:00 2001
From: Adrian Heine
Date: Tue, 14 Mar 2023 16:20:58 +0100
Subject: [PATCH 3/5] Sync README with crate doc
5334d783f247ca4d217dc7bed40d2fd1b2e98a2f and
c036b7c7c584cfb13cbee31a13060295d39aa7c9 were only applied to the crate
documentation but not to the copy in README.md.
Might make sense to use https://github.com/livioribeiro/cargo-readme or
https://github.com/orium/cargo-rdme ;)
---
README.md | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/README.md b/README.md
index 7dcd965..4f9c577 100644
--- a/README.md
+++ b/README.md
@@ -34,7 +34,7 @@ let mut doc: DOMTree = html!(
)) }
- "Every company should be a developer experience company"
+ "Every company should be a developer experience company."