Closed
Bug 1228494
Opened 9 years ago
Closed 9 years ago
MDN PUT API: problem setting tags
Categories
(developer.mozilla.org Graveyard :: API, defect)
developer.mozilla.org Graveyard
API
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: wbamberg, Unassigned)
Details
We're trying to push around 237 pages to MDN, using the PUT API [1], for WebExtensions API reference documentation, and they need to be tagged correctly for the sidebar to work.
But it seems like the tags aren't getting set correctly. Using a very slightly modified version of the example[2], [3], the page is published fine, and the title is set, but the tags are not what I expected [4].
It also doesn't seem to suppress the TOC, which I thought '"show_toc": 0' would do for me.
I asked in dev-mdc and Jean-Yves told me that this has never worked.
I'd much rather not have to fix up all 237 pages manually.
[1] https://developer.mozilla.org/en-US/docs/MDN/Contribute/Tools/PUT_API
[2] https://developer.mozilla.org/en-US/docs/MDN/Contribute/Tools/PUT_API#applicationjson
[3] https://gist.github.com/wbamberg/22f03b77356573b5761c#file-test_put-sh
[4] https://developer.allizom.org//en-US/docs/User:wbamberg/PutExample
Comment 1•9 years ago
|
||
I tested this locally. It appears that the API doesn't take a list of tag strings, but a single string with a comma separated list of tags.
E.g., change ["test", "me"] in the JSON to "test me" or "test, me".
Reporter | ||
Comment 2•9 years ago
|
||
Yes!
https://developer.allizom.org/en-US/Add-ons/WebExtensions/API/bookmarks
Thank you! \o/
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → INVALID
Comment 3•9 years ago
|
||
Oh, sorry, I did not realise the connection earlier.
I do this and related things in
https://github.com/anaran/webidl2mdn/blob/master/webidl2mdn-jetpack/data/webidl2skeleton.js#L202
I am still looking for the right functionality of my webidl2 to MDN skeleton generator.
https://addons.mozilla.org/en-US/firefox/addon/mdn-web-api-referee/versions/?page=1#version-0.0.2
Updated•5 years ago
|
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•