speced / respec

A tool for creating technical documents and web standards
https://respec.org/
Other
720 stars 389 forks source link

Enum support #16

Closed darobin closed 12 years ago

darobin commented 12 years ago

I'm imaging something like being able to write:

<dt> enum SdpType { "offer", "pranswer", "answer" } </dt>
<dd> <p> blah blah blah </p> </dd>

but just wanted to let you Dan was going to be making some progress on this.

(from Cullen, DanB)

fluffy commented 12 years ago

Sorry - my email was confusing. Dan has been making some progress on converting the WebRTC spec to respec2 (right now it is respec1). But he has not been working on adding support for enum to respec2.

darobin commented 12 years ago

Ok, I've added support for enums but using a different syntax that is essentially:

<dl title="enum Foo">
  <dt>offer</dt>
  <dd>blah blah</dd>
  <dt>answer</dt>
  <dd>blah blah</dd>
</dl>

Which doesn't mean we can't have your syntax as well, but you'll need to explain to me how it render :) The above gives your an enum IDL and a table with the documentations for the values.