* Re: [PATCH v7 1/2] docs: Move rustdoc output, cross-reference it [not found] ` <20230717151624.3470714-2-carlos.bilbao@amd.com> @ 2023-07-17 16:37 ` Miguel Ojeda 2023-07-18 13:49 ` Carlos Bilbao 0 siblings, 1 reply; 5+ messages in thread From: Miguel Ojeda @ 2023-07-17 16:37 UTC (permalink / raw) To: Carlos Bilbao Cc: corbet, ojeda, jani.nikula, rdunlap, linux-doc, linux-kernel, konstantin, Akira Yokosawa, rust-for-linux On Mon, Jul 17, 2023 at 5:16 PM Carlos Bilbao <carlos.bilbao@amd.com> wrote: > > +# Where to place rustdoc generated documentation > +RUSTDOC_OUTPUT = $(objtree)/Documentation/output/rust/rustdoc I think we may be able to get away with just `:=` instead of `=`. Also, I assume this is intended to be overridable by the user, right? i.e. that is why you wrote the identifier as uppercase. In addition, I thought about basing it on `BUILDDIR` from the Doc's `Makefile`, but that probably needs moving that one so that we can access it here (in the case where we are not building as part of `htmldocs`), and thus maybe it is not worth it. (Cc'ing the rust-for-linux list, by the way) Cheers, Miguel ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v7 1/2] docs: Move rustdoc output, cross-reference it 2023-07-17 16:37 ` [PATCH v7 1/2] docs: Move rustdoc output, cross-reference it Miguel Ojeda @ 2023-07-18 13:49 ` Carlos Bilbao 2023-07-18 15:24 ` Miguel Ojeda 0 siblings, 1 reply; 5+ messages in thread From: Carlos Bilbao @ 2023-07-18 13:49 UTC (permalink / raw) To: Miguel Ojeda Cc: corbet, ojeda, jani.nikula, rdunlap, linux-doc, linux-kernel, konstantin, Akira Yokosawa, rust-for-linux On 7/17/23 11:37, Miguel Ojeda wrote: > On Mon, Jul 17, 2023 at 5:16 PM Carlos Bilbao <carlos.bilbao@amd.com> wrote: >> >> +# Where to place rustdoc generated documentation >> +RUSTDOC_OUTPUT = $(objtree)/Documentation/output/rust/rustdoc > > I think we may be able to get away with just `:=` instead of `=`. Yes, for v8 we can simply use `:=`. > > Also, I assume this is intended to be overridable by the user, right? > i.e. that is why you wrote the identifier as uppercase. That's true, I don't see any reason to make this uppercase. > > In addition, I thought about basing it on `BUILDDIR` from the Doc's > `Makefile`, but that probably needs moving that one so that we can > access it here (in the case where we are not building as part of > `htmldocs`), and thus maybe it is not worth it. > > (Cc'ing the rust-for-linux list, by the way) Thanks for CC'ing, I should have done it. > > Cheers, > Miguel Thanks, Carlos ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v7 1/2] docs: Move rustdoc output, cross-reference it 2023-07-18 13:49 ` Carlos Bilbao @ 2023-07-18 15:24 ` Miguel Ojeda 0 siblings, 0 replies; 5+ messages in thread From: Miguel Ojeda @ 2023-07-18 15:24 UTC (permalink / raw) To: Carlos Bilbao Cc: corbet, ojeda, jani.nikula, rdunlap, linux-doc, linux-kernel, konstantin, Akira Yokosawa, rust-for-linux On Tue, Jul 18, 2023 at 3:50 PM Carlos Bilbao <carlos.bilbao@amd.com> wrote: > > On 7/17/23 11:37, Miguel Ojeda wrote: > > > > Also, I assume this is intended to be overridable by the user, right? > > i.e. that is why you wrote the identifier as uppercase. > > That's true, I don't see any reason to make this uppercase. I don't know -- perhaps users may want to override the output location. `BUILDDIR` is intended to be overridable, so we should consider what should be the behavior when one overrides one but not the other. Or perhaps this one shouldn't be overridable, like you did in v8, in which case we should still make sure things work if that one (`BUILDDIR`) is overridden. Cheers, Miguel ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <20230717151624.3470714-3-carlos.bilbao@amd.com>]
[parent not found: <CANiq72=jiEqYfEvcRAxXsm1BCODnpxmWZOmbGB_YwM=pUGYEeA@mail.gmail.com>]
* Re: [PATCH v7 2/2] docs: Integrate rustdoc generation into htmldocs [not found] ` <CANiq72=jiEqYfEvcRAxXsm1BCODnpxmWZOmbGB_YwM=pUGYEeA@mail.gmail.com> @ 2023-07-18 13:54 ` Carlos Bilbao 2023-07-18 15:32 ` Miguel Ojeda 0 siblings, 1 reply; 5+ messages in thread From: Carlos Bilbao @ 2023-07-18 13:54 UTC (permalink / raw) To: Miguel Ojeda Cc: corbet, ojeda, jani.nikula, rdunlap, linux-doc, linux-kernel, konstantin, Akira Yokosawa, rust-for-linux On 7/17/23 11:39, Miguel Ojeda wrote: > On Mon, Jul 17, 2023 at 5:17 PM Carlos Bilbao <carlos.bilbao@amd.com> wrote: >> >> + # Let Sphinx know we will include rustdoc >> + ALLSPHINXOPTS += -t rustdoc > > This is needed in the previous patch, no? I don't know if it fails or > just does not work, but either way, perhaps you can split that from > the first commit to put it last. The previous patch works without this, the generated HTML will show in the Rust index: This documentation does not include rustdoc generated information. > >> +else >> + @echo " Skipping Rust documentation since CONFIG_RUST is not y." >> +endif > > Is this printed for everybody? If so, then I think it is a good idea > for the future, but perhaps a bit annoying right for most users right > now. Fair point, will remove as part of v8. > > Cheers, > Miguel (CC'ed rust-for-linux list) Thanks, Carlos ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v7 2/2] docs: Integrate rustdoc generation into htmldocs 2023-07-18 13:54 ` [PATCH v7 2/2] docs: Integrate rustdoc generation into htmldocs Carlos Bilbao @ 2023-07-18 15:32 ` Miguel Ojeda 0 siblings, 0 replies; 5+ messages in thread From: Miguel Ojeda @ 2023-07-18 15:32 UTC (permalink / raw) To: Carlos Bilbao Cc: corbet, ojeda, jani.nikula, rdunlap, linux-doc, linux-kernel, konstantin, Akira Yokosawa, rust-for-linux On Tue, Jul 18, 2023 at 3:54 PM Carlos Bilbao <carlos.bilbao@amd.com> wrote: > > The previous patch works without this, the generated HTML will show in the > Rust index: > > This documentation does not include rustdoc generated information. I see, thanks, then it does not matter much. I guess you put it in the first commit because the docs were moved to the URL the docs talk about, but it still means we are using a tag that does not yet exist, so I would have put the "link/URL feature" as a separate commit (together with the creation of the tag). Cheers, Miguel ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-07-18 15:33 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20230717151624.3470714-1-carlos.bilbao@amd.com>
[not found] ` <20230717151624.3470714-2-carlos.bilbao@amd.com>
2023-07-17 16:37 ` [PATCH v7 1/2] docs: Move rustdoc output, cross-reference it Miguel Ojeda
2023-07-18 13:49 ` Carlos Bilbao
2023-07-18 15:24 ` Miguel Ojeda
[not found] ` <20230717151624.3470714-3-carlos.bilbao@amd.com>
[not found] ` <CANiq72=jiEqYfEvcRAxXsm1BCODnpxmWZOmbGB_YwM=pUGYEeA@mail.gmail.com>
2023-07-18 13:54 ` [PATCH v7 2/2] docs: Integrate rustdoc generation into htmldocs Carlos Bilbao
2023-07-18 15:32 ` Miguel Ojeda
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox