No description
Find a file
Eric Huss 15c93b56ed Add support for fragment redirects
This adds the ability to redirect URLs with `#` fragments. This is
useful when section headers get renamed or moved to other pages.

This works both for deleted pages and existing pages.

The implementation requires the use of JavaScript in order to manipulate
the location. (Ideally this would be handled on the server side.)

This also makes it so that deleted page redirects preserve the fragment
ID. Previously if you had a deleted page redirect, and the user went to
something like `page.html#foo`, it would redirect to `bar.html` without
the fragment. I think preserving the fragment is probably a better
behavior. If the new page doesn't have the fragment ID, then no harm is
really done. This is technically an open redirect, but I don't think
that there is too much danger with preserving a fragment ID?
2025-07-08 15:37:46 -07:00
.github Update dependencies 2025-05-23 07:55:10 -07:00
ci Test more targets. 2024-05-16 17:27:28 -07:00
examples Fix clippy lint for 1.88 2025-05-14 18:18:45 -07:00
guide Add support for fragment redirects 2025-07-08 15:37:46 -07:00
src Add support for fragment redirects 2025-07-08 15:37:46 -07:00
test_book Add support for fragment redirects 2025-07-08 15:37:46 -07:00
tests Add support for fragment redirects 2025-07-08 15:37:46 -07:00
.eslintrc.json Fix eslint errors 2025-03-31 11:50:13 -07:00
.gitattributes Mark more font files as binary 2025-04-05 20:41:36 -04:00
.gitignore Add testsuite book directories to ignore list 2025-04-22 21:11:54 -07:00
Cargo.lock Update to 0.4.51 2025-05-26 11:01:12 -07:00
Cargo.toml Update to 0.4.51 2025-05-26 11:01:12 -07:00
CHANGELOG.md Update to 0.4.51 2025-05-26 11:01:12 -07:00
CODE_OF_CONDUCT.md add explicit code of conduct, copying other rust-lang repos 2021-07-26 11:52:24 -07:00
CONTRIBUTING.md fix: invalid heading order in CONTRIBUTING.md 2025-05-23 07:46:40 -07:00
LICENSE Create LICENSE 2015-07-29 01:11:30 +02:00
package.json Update browser-ui-test version to 0.21.0 2025-06-28 13:28:20 -07:00
README.md README.md: update workflow status badge 2025-02-13 11:01:08 -05:00
release.toml Metadata for cargo-release should be in release.toml (#722) 2018-07-09 18:36:55 +08:00
triagebot.toml Add more triagebot features 2025-03-23 13:04:10 -07:00

mdBook

CI Status crates.io LICENSE

mdBook is a utility to create modern online books from Markdown files.

Check out the User Guide for a list of features and installation and usage information. The User Guide also serves as a demonstration to showcase what a book looks like.

If you are interested in contributing to the development of mdBook, check out the Contribution Guide.

License

All the code in this repository is released under the Mozilla Public License v2.0, for more information take a look at the LICENSE file.