Re: [PATCH] docs: serial: fix a reference file name in driver.rst

From: Jonathan Corbet
Date: Wed Mar 16 2022 - 17:43:13 EST


Jiri Slaby <jirislaby@xxxxxxxxxx> writes:

> Returning to this: staring into Documentation/index.rst and
> Documentation/driver-api/index.rst. Looking at documents/paths they
> reference, I still don't quite understand what is the rule to put the
> stuff to either of them.
>
> What I used to decide to put the tty stuff to the root is that it's not
> only driver-api documented there. It documents also tty internals and
> implementation of some line disciplines.
>
> So, now I'm confused why it does NOT belong to the root.

My thinking is: for the same reason that drivers/tty is not in the root.

I've been pushing for some time to get our documentation organized for
the readers, which means arranging things in terms of the expected
audience. Much of what's in Documentation/tty looks like driver-api
stuff, so that's where I would like it to be. If you have material for
other audiences, perhaps that material should go into a different book.

When I started doing this, "ls Documentation" would scroll on for many
pages. We've been slowly moving away from that directory as an
unorganized dumping ground, but there is still a ways to go.

Thanks,

jon