-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a way to ignore links #31
Comments
This may become verbose quickly if this is a command line option. I'm not sure how to do it properly, maybe through a file and a |
Yeah, a file sounds nice - I was imagining this as configurable per-file and per-link so it would definitely be annoying to type by hand. |
What would you want from such a file ? I have no idea about the format I'll use Edit: What features are you thinking about ? |
I was imagining something like this: [ignore]
[["tracing/src/lib.rs"]]
"`downcast_ref`" = "#method.downcast_ref" (I checked and that's valid toml.) |
Oh nice, if TOML is usable I'll juste use the |
I'm wondering, would it be more intuitive to use suffixes ( |
Maybe it should use |
Nice idea, I'll go with that ! |
~/P/r/tracing on master via v1.47.0
❯ cg intraconv tracing-core
+/Users/alexis/Projects/rust/tracing/tracing-core/src/collect.rs
+===============================================================
+
+ 443: " /// [`downcast_ref`]: #method.downcast_ref"
+ " /// [`downcast_ref`]: Collect::downcast_ref()"
+
/Users/alexis/Projects/rust/tracing/tracing-core/src/event.rs
=============================================================
20: "/// [span]: ../span"
"/// [span]: super::span"
21: "/// [fields]: ../field"
"/// [fields]: super::field"
/Users/alexis/Projects/rust/tracing/tracing-core/src/lib.rs
===========================================================
93: "//! [`libstd`]: https://doc.rust-lang.org/std/index.html"
"//! [`libstd`]: crate"
107: "//! [`liballoc`]: https://doc.rust-lang.org/alloc/index.html"
"//! [`liballoc`]: alloc" With and without the ignore file. I just have to document it properly in the README and I'll push the changes. |
Another instance of #32 😓 |
Currently, every time I run intraconv, it changes this link:
That breaks because
downcast_ref
is a function ondyn Collect
, notCollect
itself. There's no way for intra-conv to know this, so I don't think it can be fixed on that end, but it would be nice to say "I know this link will break, don't convert it" with a configuration file or something.Similarly
gets converted every time, which breaks because
tracing
isn't in scope intracing-attributes
(rust-lang/rust#74481).The text was updated successfully, but these errors were encountered: