[RFC-WIP] docs: move wiki's Board documentation to Doxygen#8508
[RFC-WIP] docs: move wiki's Board documentation to Doxygen#8508jia200x wants to merge 7 commits intoRIOT-OS:masterfrom
Conversation
|
I really like having the (board) documentation as part of repository!
Not sure if feasible, but would it be possible to retrieve this information from the general |
|
I did not look at the code, so I don't know if you already did, but it should be possible via the semi-hidden wiki git repository to extract all the board markdown from the wiki and import it into these files. |
@basilfx Yes, it's somehow possible. Since the script detects all boards with a doc folder inside, it would be possible to retrieve CPU family with "make info-" like commands. The only issue now is usually this commands are activated inside an app.
@gebart Yes, indeed.
Yes, I think it's a good approach. As far as I see, in the current state there are several wiki pages pointing to external resources. I'm not sure if it's the same for all boards |
|
I like the idea of moving board documentation from the wiki to the code base. Unfortunately, I'm not convinced by the proposed approach or maybe I misunderstood it.
For me, the actual approach is moving the existing problem, e.g duplicated board documentation, from one place (the wiki) to another (new markdown files in the code base). I would rather add a Regarding the link to images, there are 2 possibilities (as already mentioned):
|
I tend to like the idea, but is it possible to somehow have the same structure as the wiki with this approach? E.g, append the SAMR21 Board entry to the wiki entry and have all the information in the same page?
IMO Supported Boards is more than a single entry in the Modules group. E.g the openthread.io and contiki-os.org sites have both an exposed entry to the supported platform. Not sure if should be a link to the Boards group, but I think it's important to have at least a page with all info related to Supported Boards. |
Yes, it's just a matter of changing the groups hierarchy in doxygen: boards > boards_family > boards_arm_xxx.
We already have this http://doc.riot-os.org/group__boards.html |
Just checked the files and yes, seems to be possible. I will try to go that way |
Not sure if grouping them by family name gives too much value to doc consumers. And also, IMO just adds complexity. |
|
@aabadie btw thx for the feedback |
|
Just a side comment regarding shell scripts. I'm wondering if it won't be simpler to use Python for the migration script. |
I like the idea, like Django's |
Yes. Using Python could help since this will mainly concern string managements and Python is very good for that. |
|
I will close this one in favor of #8516. |
Contribution description
This
PRWIP RFC is an initial approach to move the Board Wiki documentation to the Doxygen documentation. The motivation is to help developers keeping an up-to-date End User documentation for each board without adding too much overhead, and help the End User to find all the documentation in the same place. With this implementation, it's possible to add a new board with documentation without touching any doc file besides the ones in theboardsfolder.Help from Bash/Doxygen experts will be appreciated as always.
I provide here the initial implementation with all the tools for generating the Board documentation, and some dummy md files for SamR21 and IotLAB-M3.
How it works
doc/board.mdfile is placed inside the <board_name> folder. E.g:boards/samr21-xpro/doc/board.mdFor samr21, this md file would be a copy of this entry
boards/samr21-xpro/doc/board.md):boards/docfolder with multiple Markdown files, one for each family. These files provide all information about the CPU family (like the ARM entry in RIOT wiki). The board specific HTML comment (<!--arm-->) must match the name of the file with the family file (I provide here aboards/doc/arm.md).make docTechnical details
RFC/Ideas
Issues/PRs references
References #8479