Thank you Marco :-)

My request is for the PoC before any PR merge and that includes
already having 1 and 2 so we can test on the local repo:

1. copy of the doc nuttx -> nuttx-apps files with history.

2. nuttx documentation build scripts update, remove apps files, make
apps build optional.

This is to verify if the operation is possible and results are as
expected BEFORE we change anything in the upstream repos. We can play
in local repos that way. When things land into the upstream there is
no going going back o_O

Did you already test that in local setup?

Did you perform full documentation build for all tags? Releases in
NuttX are marked with tags, so is the documentation. I am curious what
happens if we move part of history from nuttx to nuttx-apps would that
also propagate to tags between those two repos and if the
documentation builds correctly?

Verification would have to contain full documentation build for all
releases and current master before documentation is reorganized (step
A). Then apply local changes to nuttx and nuttx-apps repos that make
the documentation split. Then perform full documentation build again
for all releases and current master (step B). Then compare results
from step A and B these should be the same (build time will differ).

If yes then I did not know this was even possible and kind of magic if yes :D

--
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info

On Wed, Dec 2, 2026 at 8:48 PM Marco C. <[email protected]> wrote:
>
> Hi all,
>
> Thank you for all the comments. My proposal is that we start with the
> documentation, and open a separate discussion about the tests and the
> other components after that.
>
> For the documentation, in three steps:
>
> 1. The draft PR apache/nuttx-apps#4258 copies
> Documentation/applications/ from nuttx to nuttx-apps, with its git
> history. This is also the proof of concept for the history part,
> Tomek: nothing is rewritten, the history is copied. git filter-repo
> keeps only these pages and their 320 commits (authors, dates and
> Signed-off-by lines do not change), and a merge adds them to
> nuttx-apps. After that, "git log --follow" and "git blame" in
> nuttx-apps give the same authors and dates as in nuttx. The existing
> tags in both repositories do not change, and older tags of nuttx keep
> their own copy of the pages. To keep the history, the PR must be
> merged properly, with a merge commit (not squash or rebase). The PR
> description has the small .asf.yaml change that the PMC needs to allow
> this once.
>
> 2. Then I open a PR to nuttx that deletes the pages we just copied and
> adjusts the documentation build scripts:
>    - The applications documentation becomes optional. You can build
> the documentation without nuttx-apps and it does not fail: it just has
> no applications section, which is fine. You can also point the build
> at your own out-of-tree apps, and if their documentation is in the
> correct format, it is included in the final build.
>    - The build keeps the provenance of the applications documentation:
> the repository URL, the commit (SHA), the branch or tag, and whether
> the tree had local changes. The published pages show it, and a build
> from an apps tree that is not apache/nuttx-apps is clearly marked as
> out of tree, so it cannot be confused with the official documentation.
>    - The documentation workflow can be started from outside nuttx, so
> that nuttx-apps can start it.
>
> 3. When both PRs are merged, I open a PR in nuttx-apps that adds the
> trigger: whenever documentation is merged in nuttx-apps, it starts the
> documentation build in nuttx. A trigger from one repository to another
> needs a token, so I will check with infra what is allowed; if it is
> not, a scheduled documentation build in nuttx that notices a new
> nuttx-apps commit does the same. Nathan, I think this answers your
> question about the website rebuild.
>
> I agree with Michal and Karel that some documentation is generic and
> not pinned to nuttx (some guides, some concepts, and so on), and that
> it could move to a separate top-level documentation repository. But I
> suggest that we keep it in nuttx for now and evaluate this later, when
> the applications documentation is in its new place. The same applies
> to the guides and NSH-dependent configs that Michal asked about.
>
> Then we will open another discussion about the tests and the other components.
>
> Best regards,
> Marco
>
> On Wed, Dec 2, 2026 at 8:24 PM Tomek CEDRO <[email protected]> wrote:
> >
> > Good point Nathan! That convinces me to +1 here :-)
> >
> > Still before any change we need to see the working proof-of-concept
> > both for documentation and testing :-)
> >
> > --
> > CeDeROM, SQ7MHZ, http://www.tomek.cedro.info
> >
> > On Tue, Dec 1, 2026 at 3:33 PM Nathan Hartman <[email protected]> 
> > wrote:
> > >
> > > On Tue, Dec 1, 2026 at 9:12 AM Karel Kočí <[email protected]> wrote:
> > >
> > > > Hi,
> > > >
> > > > On Tue 01 Dec 2026 02:50:40 PM , [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.
> > > >
> > > > I wouldn't be so strict. We have to recognize that NuttX documentation
> > > > actually
> > > > contains multiple different types of content. Every type suggest a
> > > > different
> > > > approach and a different layout fits it better. Just what types I see:
> > > >
> > > > * Guides
> > > > * Concepts
> > > > * API
> > > > * Boards
> > > > * Applications
> > > >
> > > > It is true that API documentatation is to be best kept in the same 
> > > > project
> > > > as is
> > > > the source code. Thus for most it is NuttX. The same can be said about
> > > > boards
> > > > and applications. But on the other hand guides are overarching articles
> > > > that do
> > > > not have one appropriate repository. Concepts are mixed. Sometimes it is
> > > > clearly
> > > > documentation of the NuttX, such as concept of driver, but it might as
> > > > well be
> > > > concept in apps or overarching one.
> > > >
> > > > With that it might make sense to have top level; overarching 
> > > > documentation
> > > > repository and pull in nuttx and nuttx-apps as only part of the
> > > > documentation
> > > > that is closely associated with that specific repository.
> > > >
> > > > It is just a quick idea. I just wanted to point out that having 
> > > > dedicated
> > > > documentation repository, doesn't mean that there must be no 
> > > > documentation
> > > > in
> > > > nuttx and nuttx-apps.
> > > >
> > > > With regards
> > > > Karel Kočí
> > > >
> > >
> > > nuttx-apps is optional and developers are free to create their own custom
> > > apps, either based on ours or from scratch.
> > >
> > > This is one reason why Documentation that pertains to nuttx-apps should be
> > > in the nuttx-apps repository. Otherwise, someone who creates their own 
> > > apps
> > > (without using ours) will have Documentation that describes code they 
> > > don't
> > > have, leading to confusion.
> > >
> > > Guides, Concepts, OS APIs, in-tree arch, and boards should continue to be
> > > documented in nuttx repo IMHO.
> > >
> > > Nathan

Reply via email to