Skip to content

Version 1.2.0 - Ignoring links, short links, more favoured links

Compare
Choose a tag to compare
@poliorcetics poliorcetics released this 18 Nov 23:16
· 38 commits to master since this release

Date: 2020-11-19

  • Added more favored links pattern for docs.rs: https://docs.rs/crate-1
    will now be transformed to crate_1 when used in a link.
  • Even more favored links: https://doc.rust-lang.org is now supported.
  • Don't remove links that are local but use a disambiguator: /// [tracing]: mod@tracing was previously removed but the mod@ part could be the only thing helping rustdoc find the correct link and so it is necessary to keep the link.
  • Not giving any path to cargo intraconv was an error before. Now it just find the current workspace (either one crate or a group of crates) and search the links in the src directories. This search is recursive. It is still possible to give only one file to cargo intraconv and it will only consume this file.
  • Correctly transform [name]: ../metadata to [name]: super::metadata.
  • Correctly transform [name](../metadata) to [name](super::metadata). This will also correctly delete the (link) part if the transformation produces something of the form [name](name).
  • Type blocks are never added before a lone section. This means a link like [name]: #section will never change.
  • Add an option to ignore some links through a file, either for all visited
    files or for some specific files.