From 0bcc06d2353f6c1d036589231a11123260095b27 Mon Sep 17 00:00:00 2001 From: Atliac Date: Sat, 14 Mar 2026 15:30:53 +0800 Subject: [PATCH] feat(docs): update documentation URL and add line ending config - Update README.md with new documentation URL - Add .gitattributes to enforce LF line endings - Configure book.toml site-url for HTML output --- .gitattributes | 3 +++ README.md | 2 +- book.toml | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..d0f5577 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,3 @@ +# .gitattributes +# Force all text files to use LF (Unix style), even on Windows +* text=auto eol=lf diff --git a/README.md b/README.md index 6d02362..b0ee268 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ This tutorial is designed for Rust developers who want to deepen their understan ## 🌐 Live Documentation -Visit the online version at [https://rust-macros-tutorial.atliac.com/](https://rust-macros-tutorial.atliac.com/) +Visit the online version at [https://books.atliac.com/rust-macros-tutorial/](https://books.atliac.com/rust-macros-tutorial/) ## 🤝 Contributing diff --git a/book.toml b/book.toml index f70c611..061cb9d 100644 --- a/book.toml +++ b/book.toml @@ -7,6 +7,7 @@ language = "en" [output.html] default-theme = "rust" git-repository-url = "https://github.com/atliac/rust-macros-tutorial" +site-url = "/rust-macros-tutorial" [output.html.playground] editable = true