Page MenuHomePhabricator

Include lib and dist into OOjs UI's jsduck output directory so the documentation examples work
Closed, ResolvedPublic

Description

https://gerrit.wikimedia.org/r/#/c/190116/ didn't really make @example work.

It fulfilled jsduck's requirement of having an eg-iframe.html file, but the examples don't yet work.

https://doc.wikimedia.org/oojs-ui/master/#!/api/OO.ui.ButtonInputWidget

ReferenceError: OO is not defined

Location: https://doc.wikimedia.org/oojs-ui/master/
404 (Not Found) https://doc.wikimedia.org/oojs-ui/lib/oojs.jquery.js
404 (Not Found) https://doc.wikimedia.org/oojs-ui/dist/oojs-ui.js
404 (Not Found) https://doc.wikimedia.org/oojs-ui/dist/oojs-ui-apex.js
404 (Not Found) https://doc.wikimedia.org/oojs-ui/dist/oojs-ui-apex.css

It's stabbing in the dark by loading things from a parent directory that it thinks is the oojs-ui git root, but is actually an unrelated directory holding different versions of oojs-ui documentation. The docs/ published from Jenkins needs to be self-contained.

Event Timeline

Krinkle claimed this task.
Krinkle raised the priority of this task from to Needs Triage.
Krinkle updated the task description. (Show Details)
Krinkle added a project: OOUI.
Krinkle subscribed.
Jdforrester-WMF renamed this task from Include lib and dist into jsduck output directory to Include lib and dist into OOjs UI's jsduck output directory so the documentation examples work.Feb 20 2015, 6:23 PM
Jdforrester-WMF triaged this task as Medium priority.
Jdforrester-WMF set Security to None.

Change 192034 had a related patch set uploaded (by Krinkle):
build: Include 'lib' and 'dist' in jsduck output

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

Patch-For-Review

Change 192034 merged by jenkins-bot:
build: Include 'lib' and 'dist' in jsduck output

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