doc: move wiki to Doxygen documentation (second attempt)#8516
doc: move wiki to Doxygen documentation (second attempt)#8516MrKevinWeiss merged 3 commits intoRIOT-OS:masterfrom
Conversation
|
Very nice ! I like it. Unfortunately, with this PR, I think each board group definition (using |
|
@aabadie I think I found a way to automate that. I will try :) |
boards/airfy-beacon/doc.txt
Outdated
| * | ||
| *  | ||
| * | ||
| * | MCU | NRF51822QFAA | |
There was a problem hiding this comment.
should use spaces instead of tabs...
There was a problem hiding this comment.
The original file in the wiki already contains the tabs, maybe the automatic script could also handle that. What do you think @jia200x ?
There was a problem hiding this comment.
Bash magic may do the trick :)
aabadie
left a comment
There was a problem hiding this comment.
The board.h should be adapted as well (remove the @defgroup and @brief at the very beginning of the doxygen block.
Is your automatic script able to do that ?
boards/airfy-beacon/doc.txt
Outdated
| * ## Overview | ||
| * | ||
| * The Airfy Beacon is utilizing a Nordics NRF51822QFAA SoC. | ||
| * The SoC features 16Kb of RAM, 256Kb of flash ROM and comes on top of the usual micro-controller peripherals with a 2.4GHz radio that supports both Nordics proprietary ShockBurst as well as Bluetooth Low Energy (BLE). |
There was a problem hiding this comment.
It would be great to split the line so that they fit in the 80 characters maximum length. Do you think it's possible to adapt your script for this ?
|
@aabadie thanks a lot for reviewing! |
| @@ -0,0 +1 @@ | |||
| */ | |||
There was a problem hiding this comment.
Looks like a bug: your script is creating a doc.txt when the board is not documented in the code base and not present in the wiki. I saw a few others like this.
There was a problem hiding this comment.
Yes, it's a bug. I will fix it when I'm back
boards/iotlab-a8-m3/doc.txt
Outdated
| @@ -0,0 +1,4 @@ | |||
| /** | |||
| * @ingroup boards_iotlab-m3 | |||
There was a problem hiding this comment.
There is a problem here, the group should be boards_iotlaba-a8-m3. This is because the initial group of the A8 was invalid.
| * | ||
| * @todo Work around missing RESET pin on Mulle v0.6x | ||
| * @{ | ||
| */ |
There was a problem hiding this comment.
Don't need to close the doxygen block here
There was a problem hiding this comment.
I will try again, but I strange error on make doc without splitting this block. I will paste the results here
There was a problem hiding this comment.
this is my output when I don't split the block:
( cat riot.doxyfile ; echo "GENERATE_HTML = yes" ) | doxygen -
todo:17: warning: Unexpected character `b'
todo:17: warning: Unexpected character `o'
todo:17: warning: Unexpected character `a'
todo:17: warning: Unexpected character `r'
todo:17: warning: Unexpected character `d'
todo:17: warning: Unexpected character `s'
todo:17: warning: Unexpected character `/'
todo:17: warning: Unexpected character `m'
todo:17: warning: Unexpected character `u'
todo:17: warning: Unexpected character `l'
todo:17: warning: Unexpected character `l'
todo:17: warning: Unexpected character `e'
todo:17: warning: Unexpected character `/'
todo:17: warning: Unexpected character `i'
todo:17: warning: Unexpected character `n'
todo:17: warning: Unexpected character `c'
todo:17: warning: Unexpected character `l'
todo:17: warning: Unexpected character `u'
todo:17: warning: Unexpected character `d'
todo:17: warning: Unexpected character `e'
todo:17: warning: Unexpected character `/'
sh: latex: no se encontró la orden
error: Problems running latex. Check your installation or look for typos in _formulas.tex and check _formulas.log!
sh: dvips: no se encontró la orden
error: Problems running dvips. Check your installation!
make[1]: se sale del directorio '/home/jialamos/Development/RIOT/doc/doxygen
Maybe a Doxygen bug?
There was a problem hiding this comment.
What about moving the @todo before the @{ ?
There was a problem hiding this comment.
same results. Does it work for you? Maybe my Doxygen version has a bug
There was a problem hiding this comment.
You can drop the todo. It's not important
There was a problem hiding this comment.
I also have the issue, but it works with the actual version of your branch. So let's keep it like this
There was a problem hiding this comment.
or maybe I just drop the @todo as @gebart proposed, so the change is minimal
| * @{ | ||
| */ | ||
|
|
||
| /** @todo Work around missing RESET pin on Mulle v0.6x |
| * @defgroup boards_nucleo144-f413 STM32 Nucleo144-F413 | ||
| * @ingroup boards_common_nucleo144 | ||
| * @brief Support for the STM32 Nucleo144-F413 | ||
| * @ingroup boards__nucleo144-f413common_nucleo144 |
There was a problem hiding this comment.
thanks for pointing it out
| * @defgroup boards_nucleo144-f429 STM32 Nucleo144-F429 | ||
| * @ingroup boards_common_nucleo144 | ||
| * @brief Support for the STM32 Nucleo144-F429 | ||
| * @ingroup boards__nucleo144-f429common_nucleo144 |
|
|
||
| /** | ||
| * @ingroup nz32-sc151 | ||
| * @ingroup boards_nz32-sc151 |
There was a problem hiding this comment.
Wasn't this fixed already in master ?
boards/remote-reva/include/board.h
Outdated
| * @defgroup boards_reva RE-Mote Revision A | ||
| * @ingroup boards | ||
| * @brief Support for the RE-Mote board Revision A | ||
| * @ingroup boards_reva |
There was a problem hiding this comment.
The original group name of this board could have been more specific and then consistent with other remote boards: boards_remote-reva
boards/spark-core/doc.txt
Outdated
| @@ -0,0 +1,121 @@ | |||
| pause/*2 | |||
|
@jia200x, I opened #8748 and #8749 for the problem found with doxygen groups. Otherwise, this PR is getting close from being merged I think. Unfortunately (for me), it will conflict a lot with #8649 #8650 and #8651 since they touch the same parts of the code. But we should merge your PR first because mines are changing the doxygen group names of the boards and I think your automatic script will not work anymore if we merge them first. |
Great. OK, I will try to fix these issues asap and contribute to merge the other PRs. Regarding the changes of ST platforms, it seems the problem would be solved with a small script that moves |
4a4f8ab to
f5e73b9
Compare
|
I built locally the documentation to have a look at the result. My first impression is that the board documentation is making a big step forward. Some problems:
|
879244d to
b3516a2
Compare
jcarrano
left a comment
There was a problem hiding this comment.
Ok. Code is not changed, should not break anything. If we don't merge this people will continue to modify the wiki and this PR will drag on forever.
|
side note: images for samd21 and saml21 are not working anymore (broken in wiki, too) because microchip overtook atmel. I fixed in the wiki, so you might want to update this here too? |
Good catch. Thanks Sure, no problem |
We should not be deep-linking content. |
|
@jcarrano I agree, but currently we have no common strategy where to put or link images to/from - I guess copyright might be an issue, so putting them into the repo is not an option I guess. Hence, for now it was the easiest (and quickest) to fix the links by replacing the URLs. |
b3516a2 to
2531487
Compare
|
@smlng alles gut. Fixed SAML21 and SAMD21 entries. |
|
ping @miri64 |
As I only asked for a community discussion that wasn't really picked up on, I won't block this PR (sorry for doing this earlier).
No problem! :) Then, let's merge |
|
Finally !!! |
|
Nice works, congrats @jia200x |
|
Thank you to all people involved! I will put deprecation warnings in the wiki's board entries |
But please with link to knew place ;-) (I think http://doc.riot-os.org/group__boards.html should suffice). |
Contribution description
This is a second attempt of moving Board specifications from Wiki to Doxygen. Replaces the work in #8508 .
Wiki entries were copied "as it" and referenced to the corresponding group, with the same format as existing Doxygen entries like Arduino MKRFOX1200
As said in the previous PR, 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.
@defgroupand@briefNB tables doesn't work if splitted => NR > 80. Also, this PR doesn't intend to update information for each entry.
Some other issues addressed by this PR
todoblockEntries with broken imgs (addressed in further PRs)
Following steps (PRs coming soon)
Issues/PRs references
#8508