Page MenuHomePhabricator

Improve OOjs UI's readme in doxygen generated documentation
Closed, ResolvedPublic

Assigned To
Authored By
Legoktm
Jul 3 2015, 1:01 AM
Referenced Files
F10562945: image.png
Nov 2 2017, 4:09 AM
F10543998: Screen Shot 2017-10-31 at 16.52.40.png
Oct 31 2017, 11:53 PM
F10541411: image.png
Oct 31 2017, 7:52 PM
Tokens
"Orange Medal" token, awarded by Krinkle.

Description

In T74454, we started auto-publishing doxygen docs for PHP at https://doc.wikimedia.org/oojs-ui/master/php/.

Except the README is mainly JS focused (mentioning npm steps) and doesn't display well in doxygen, the bottom is all shouty and bolded.

Maybe we need a separate README for PHP?


BeforeAfter
Screen Shot 2017-10-31 at 16.52.40.png (1×2 px, 171 KB)
image.png (1×2 px, 272 KB)

Event Timeline

Legoktm raised the priority of this task from to Medium.
Legoktm updated the task description. (Show Details)
Legoktm added projects: OOUI, Documentation.
Legoktm added subscribers: Legoktm, bd808, Jdforrester-WMF.

Change 387532 had a related patch set uploaded (by VolkerE; owner: VolkerE):
[oojs/ui@master] README: Fix Doxygen markup

https://gerrit.wikimedia.org/r/387532

Change 387532 merged by jenkins-bot:
[oojs/ui@master] README: Fix Doxygen markup

https://gerrit.wikimedia.org/r/387532

Indeed. We've standardised on use of <pre lang="val"> for library readmes for this reason exactly because (just like with backticks) it works on GitHub with syntax highlighting, but has the benefit of not breaking Doxygen, JSDuck, GitBlit and other software we use that involves some flavour of markdown.

I don't see a "before" screenshot on this task, but based on the rendering of an older version at https://doc.wikimedia.org/oojs-ui/v0.17.10/php/, I'm assuming it previously looked like that?

Screen Shot 2017-10-31 at 16.52.40.png (1×2 px, 171 KB)

That would be contrary to the Doxygen docs...

[..] <pre> blocks, which are passed untouched (handy for ASCII art).

Change 387753 had a related patch set uploaded (by Krinkle; owner: Krinkle):
[oojs/ui@master] Revert "README: Fix Doxygen markup"

https://gerrit.wikimedia.org/r/387753

@Krinkle That screenshot from v0.17.10 shows the issue brought up by @Legoktm.

Maybe mixin pre, new lines and indentation then?

<pre lang="val">

    $ cd path/to…

</pre>

In the meantime we were pointing out on IRC that another part of T179111 might resolve the issue as well, by moving “Release” section to Contributing.md.

@Volker_E Worth a try I suppose :) I would also try and make sure there is an empty line before the <pre> which might make a difference. And maybe also try locally first (Doxygen is pretty to install). Could be that it is specific to our version of Doxygen, in which case we could also fix it by upgrading.

Change 387753 merged by jenkins-bot:
[oojs/ui@master] Revert "README: Fix Doxygen markup"

https://gerrit.wikimedia.org/r/387753

Change 387963 had a related patch set uploaded (by VolkerE; owner: VolkerE):
[oojs/ui@master] README: Fix Doxygen rendering

https://gerrit.wikimedia.org/r/387963

Change 387963 merged by jenkins-bot:
[oojs/ui@master] README: Fix Doxygen rendering

https://gerrit.wikimedia.org/r/387963

Volker_E claimed this task.
Volker_E removed a project: Patch-For-Review.
Volker_E updated the task description. (Show Details)