linux-doc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* kernel docs: Fast sphinx-build iteration question
@ 2023-10-26 13:52 Breno Leitao
  2023-10-26 14:07 ` Jonathan Corbet
  2023-10-26 14:59 ` Jani Nikula
  0 siblings, 2 replies; 3+ messages in thread
From: Breno Leitao @ 2023-10-26 13:52 UTC (permalink / raw)
  To: linux-doc; +Cc: corbet, mchehab, akiyks, keescook

I am working to build a sphinx extension in order to parse some network
netlink YAML.

I am struggling with the time it takes for sphinx-build to build a
single file and run my extension (Directive). Mainly because I need to
remove the `.doctrees` cache directory.

Is there an faster way to iterate while writing an extension?

Thank you!

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: kernel docs: Fast sphinx-build iteration question
  2023-10-26 13:52 kernel docs: Fast sphinx-build iteration question Breno Leitao
@ 2023-10-26 14:07 ` Jonathan Corbet
  2023-10-26 14:59 ` Jani Nikula
  1 sibling, 0 replies; 3+ messages in thread
From: Jonathan Corbet @ 2023-10-26 14:07 UTC (permalink / raw)
  To: Breno Leitao, linux-doc; +Cc: mchehab, akiyks, keescook

Breno Leitao <leitao@debian.org> writes:

> I am working to build a sphinx extension in order to parse some network
> netlink YAML.
>
> I am struggling with the time it takes for sphinx-build to build a
> single file and run my extension (Directive). Mainly because I need to
> remove the `.doctrees` cache directory.
>
> Is there an faster way to iterate while writing an extension?

"make SPHINXDIRS=dir-of-interest" can help a lot.  Otherwise it's just
painful, sorry...

jon

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: kernel docs: Fast sphinx-build iteration question
  2023-10-26 13:52 kernel docs: Fast sphinx-build iteration question Breno Leitao
  2023-10-26 14:07 ` Jonathan Corbet
@ 2023-10-26 14:59 ` Jani Nikula
  1 sibling, 0 replies; 3+ messages in thread
From: Jani Nikula @ 2023-10-26 14:59 UTC (permalink / raw)
  To: Breno Leitao, linux-doc; +Cc: corbet, mchehab, akiyks, keescook

On Thu, 26 Oct 2023, Breno Leitao <leitao@debian.org> wrote:
> I am working to build a sphinx extension in order to parse some network
> netlink YAML.
>
> I am struggling with the time it takes for sphinx-build to build a
> single file and run my extension (Directive). Mainly because I need to
> remove the `.doctrees` cache directory.
>
> Is there an faster way to iterate while writing an extension?

Develop it as a standalone extension, outside of the kernel tree, and
test using a single page?

Once you're done, add it to kernel.

BR,
Jani.


-- 
Jani Nikula, Intel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-10-26 14:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-26 13:52 kernel docs: Fast sphinx-build iteration question Breno Leitao
2023-10-26 14:07 ` Jonathan Corbet
2023-10-26 14:59 ` Jani Nikula

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).