Skip to content

doc/guides: The Big Migration#21708

Merged
Teufelchen1 merged 22 commits intoRIOT-OS:masterfrom
AnnsAnns:more_migration
Sep 18, 2025
Merged

doc/guides: The Big Migration#21708
Teufelchen1 merged 22 commits intoRIOT-OS:masterfrom
AnnsAnns:more_migration

Conversation

@AnnsAnns
Copy link
Copy Markdown
Member

@AnnsAnns AnnsAnns commented Sep 9, 2025

Contribution description

Let's finally migrate all the remaining files from #21575.

This will need to wait for #21706 (or the other way around)

Testing procedure

Issues/PRs references

Depends on #21706.

@github-actions github-actions bot added the Area: doc Area: Documentation label Sep 9, 2025
@AnnsAnns AnnsAnns mentioned this pull request Sep 9, 2025
23 tasks
@crasbe crasbe added State: waiting for other PR State: The PR requires another PR to be merged first CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR CI: skip compile test If set, CI server will run only non-compile jobs, but no compile jobs or their dependent jobs Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation labels Sep 9, 2025
@riot-ci
Copy link
Copy Markdown

riot-ci commented Sep 9, 2025

Murdock results

✔️ PASSED

ae420f6 doc/guides/misc/dev_best_practices: remove outdated MSP430 info

Success Failures Total Runtime
1 0 1 01m:50s

Artifacts

@crasbe
Copy link
Copy Markdown
Contributor

crasbe commented Sep 9, 2025

So will the merging of this PR close #21575?

@AnnsAnns
Copy link
Copy Markdown
Member Author

AnnsAnns commented Sep 9, 2025

I'd really love to make that happen but there are 1-2 guides that I don't really want to port as-is but deleting them also doesn't seem like a good option (and I don't have the motivation/time to rewrite them)

@AnnsAnns
Copy link
Copy Markdown
Member Author

So will the merging of this PR close #21575?

Ive changed my mind on this, its time to end it once and for all >:)

@crasbe crasbe removed the State: waiting for other PR State: The PR requires another PR to be merged first label Sep 10, 2025
@crasbe crasbe linked an issue Sep 10, 2025 that may be closed by this pull request
23 tasks
@crasbe crasbe added the State: needs rebase State: The codebase was changed since the creation of the PR, making a rebase necessary label Sep 10, 2025
@crasbe crasbe removed the State: needs rebase State: The codebase was changed since the creation of the PR, making a rebase necessary label Sep 10, 2025
@AnnsAnns AnnsAnns marked this pull request as ready for review September 10, 2025 11:31
@AnnsAnns
Copy link
Copy Markdown
Member Author

This should be reviewable now :)

My favourite part is this:

image

This PR also removes GraphViz, as it turns out, we use it for one (unfinished) graph that was part of the porting boards guide, after moving it its now a simple svg (since I wasnt about to add GraphViz to the guide site). The doccheck actually complained about GraphViz having nothing to process so instead of silencing it I decided that I might as well remove graphviz completely.

@crasbe
Copy link
Copy Markdown
Contributor

crasbe commented Sep 10, 2025

You marked this as ready for review? If so, you can squash the commits before if you want to. Also there are some undefined references that Doxygen complains about in the static tests.

@AnnsAnns
Copy link
Copy Markdown
Member Author

AnnsAnns commented Sep 10, 2025

You marked this as ready for review? If so, you can squash the commits before if you want to. Also there are some undefined references that Doxygen complains about in the static tests.

Will look into the static test :D

Im not really sure how to handle the commits here, one large commit feels a bit problematic, my current idea would be to first get the reviews through and then rebase the PR in the style of:

for X in migrated_files:
doc/guides: migrate X
where the content would exclusively be the removal in doc/doxygen/src/x.md and adding it in doc/guides/**/x.md

and then a:
doc/doxygen: mark deprecated files in title (For those that didnt have that in the title before this PR but were already deprecated)
doc/doxygen: remove graphviz
doc/starlight: add migrated guides

@crasbe
Copy link
Copy Markdown
Contributor

crasbe commented Sep 10, 2025

That sounds good, but I meant the fix commits. If you squash them now, it's less likely to cause issues for future fixups that come up during the reviews.

@AnnsAnns AnnsAnns requested a review from maribu as a code owner September 10, 2025 13:33
@github-actions github-actions bot added Area: network Area: Networking Area: pkg Area: External package ports Area: arduino API Area: Arduino wrapper API Area: sys Area: System labels Sep 10, 2025
@AnnsAnns
Copy link
Copy Markdown
Member Author

That sounds good, but I meant the fix commits. If you squash them now, it's less likely to cause issues for future fixups that come up during the reviews.

Ah no worries that should be fine, I'd probably do one massive quasi soft reset rewording at the end either way since I expect to fuck it up :P

Copy link
Copy Markdown
Contributor

@crasbe crasbe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very very superficial look. I know that content changes are not caused by you, but you touch it, you fix it 😋

@AnnsAnns
Copy link
Copy Markdown
Member Author

Very very superficial look. I know that content changes are not caused by you, but you touch it, you fix it 😋

I will never touch files again 😔 (Im kidding, ty for the review, will work through this tomorrow)

@AnnsAnns
Copy link
Copy Markdown
Member Author

Squashed 🦀 (I asked @Teufelchen1 this time I swear)

@AnnsAnns
Copy link
Copy Markdown
Member Author

Thank you for all the reviews 🫡

@Teufelchen1 Teufelchen1 added this pull request to the merge queue Sep 18, 2025
Merged via the queue into RIOT-OS:master with commit bd93e28 Sep 18, 2025
26 checks passed
Comment on lines -318 to -366
## New Style Common Code {#new-style-common-code}

The common board definitions of RIOT are currently being reworked to make the
usage of common code easier and less error prone. For example, if you want
to use the common code for the Adafruit nRF52 Bootloader that is used
by many of the nRF52 based boards from Adafruit, you simply have to add the
following line to the `Makefile.dep` of your board. Everything else
will be automatically included by the build system.

```mk
USEMODULE += boards_common_adafruit-nrf52-bootloader
```

Not all common code is migrated to the new style yet, so if you are unsure
whether it is or not, you can check if the `boards/Makefile` already
includes a reference to the common code you want to use. If you are still
unsure, you can still use the @ref old-style-common-code or ask the
community.

## Old Style Common Code {#old-style-common-code}

If you want to use common makefiles, include them at the end of the specific
`Makefile`, e.g. for a `Makefile.features`:

```mk
CPU = foo
CPU_MODEL = foobar

# Put defined MCU peripherals here (in alphabetical order)
FEATURES_PROVIDED += periph_i2c
FEATURES_PROVIDED += periph_spi
FEATURES_PROVIDED += periph_uart

include $(RIOTBOARD)/common/foo_common/Makefile.features
```

If the common code includes source files, it might be necessary
to explicitly include the directory in your `Makefile` so the Make system
finds all the necessary files:

```mk
MODULE = board

DIRS += $(RIOTBOARD)/common/myCommonFolder

include $(RIOTBASE)/Makefile.base
```

If possible, you should use the @ref new-style-common-code though.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This section got removed in your PR :(

And I wondered why it wasn't present anymore...

crasbe added a commit to crasbe/RIOT that referenced this pull request Oct 7, 2025
crasbe added a commit to crasbe/RIOT that referenced this pull request Oct 7, 2025
crasbe added a commit to crasbe/RIOT that referenced this pull request Oct 7, 2025
crasbe added a commit to crasbe/RIOT that referenced this pull request Oct 7, 2025
crasbe added a commit to crasbe/RIOT that referenced this pull request Oct 7, 2025
@benpicco benpicco added this to the Release 2025.10 milestone Dec 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: arduino API Area: Arduino wrapper API Area: doc Area: Documentation Area: network Area: Networking Area: pkg Area: External package ports Area: sys Area: System CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR CI: skip compile test If set, CI server will run only non-compile jobs, but no compile jobs or their dependent jobs Process: needs >1 ACK Integration Process: This PR requires more than one ACK Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Guide Site Migration: Tracker

6 participants