It would invite mistakes that cause desync between the codebase and its
documentation.
That desync still can happen and actually happens quite a lot. The best
way to avoid it would be autogenerated documentation. I've proposed this
several times already and we've never reached consensus, but I still
think this should be our long term goal. Basically we would have two
documentations (not necessarily from users point of view, they can be
provided as one, but based on how they are created/generated):
- generated documentation for both API and internal interface (expected
lower layer driver interface, board functions, arch functions etc) -
this has to be part of kernel, at least partially
- human written guides, concepts, supported boards/archs, application
description and so on - this is the one I would consider moving to a
separate repository
It's true the user may not have our nuttx-app as Nathan mentioned, but I
don't think we have to consider this scenario. Having custom nuttx-app
would also mean you don't have NSH and thus all (?) configurations from
kernel are not usable as well - but these are documented in kernel,
should we move them somewhere else? What about guides? A lot of them
mention NSH or other functionalities located in nuttx-apps repository. I
don't expect someone using kernel with his custom nuttx-apps to be
generating NuttX documentation (and if so he can remove that application
section in the kernel) so I don't see a use case in this, but correct me
if there is one.
Michal
On 12/1/26 14:50, [email protected] wrote:
On 2026-11-29 19:38, Michal Lenc wrote:
Hi,
1. Move the applications documentation to nuttx-apps
I am not sure if I like the fact we would have the documentation split
between two repositories. Maybe we could have a completely separate
repository for the documentation? This is how RTEMS does it for
example. I know it doesn't solve the issue you mentioned, it actually
makes it a bit worse as every change in core or apps that needs
documentation update would also require another merge request. But we
would have the documentation separately and wouldn't pollute kernel and
apps with commits changing docs only.
Having documentation in completely separate repository is IMO worse than
both current state and the proposal. It would invite mistakes that cause
desync between the codebase and its documentation. And it would also
make keeping documentation up-to-date with the changes to kernel/apps
more of a hassle - increasing the likelihood of people trying to skip
it.
The proposal seems reasonable to me - documentation belongs (again, IMO)
to the codebase which it documents. (Making commits that change the
documentation legitimate part of project's git history.) Since
nuttx-apps is a separate codebase, its documentation should be in that
codebase.
2. Move the kernel and libc tests to nuttx
This I completely agree with.
Same here