Hi Jens, I've attached the files for the updated DocTest and the generated HTML. The HTML has: "Vi mäter temperaturer i °C" instead of "Vi mäter temperaturer i °C". Thanks, Carl |
Thrift module: DocTest
Constants
| Constant | Type | Value |
|---|---|---|
INT32CONSTANT | i32 | 9853 |
You can document constants now too. Yeehaw! | ||
INT16CONSTANT | i16 | 1616 |
MAPCONSTANT | map< | { "hello" = "world", "goodnight" = "moon" } |
Everyone get in on the docu-action! | ||
Enumerations
Enumeration: Numberz
Some doc text goes here. Wow I am [nesting these] (no more nesting.)ONE | 1 |
TWO | 2 |
THREE | 3 |
FIVE | 5 |
SIX | 6 |
EIGHT | 8 |
Type declarations
Typedef: UserId
Base type: i64
Typedef: SorryNoGo
Base type: i32
Typedef: TrivialMultiLine
Base type: i32
Typedef: StandardMultiLine
Base type: i32
Typedef: LastLine
Base type: i32
Typedef: FirstAndLastLine
Base type: i32
Typedef: IndentedTitle
Base type: i32
Typedef: FirstLineIndent
Base type: i32
Typedef: CodeInComment
Base type: i32
Typedef: IndentedDocstring
Base type: i32
Typedef: Irregular1
Base type: i32
Typedef: Irregular2
Base type: i32
Typedef: Flush
Base type: i32
Typedef: NoStars
Base type: i32
Typedef: TrailingWhitespace
Base type: i32
Typedef: BigDog
Base type: i32
Typedef: TotallyDegenerate
Base type: i32
Data structures
Struct: Xtruct
| Key | Field | Type | Description | Requiredness | Default value |
|---|---|---|---|---|---|
| 1 | string_thing | string | And the members of a struct | default | |
| 4 | byte_thing | byte | doct text goes before a comma | default | |
| 9 | i32_thing | i32 | default | ||
| 11 | i64_thing | i64 | default |
And this is where you would document a struct
Struct: Xtruct2
| Key | Field | Type | Description | Requiredness | Default value |
|---|---|---|---|---|---|
| 1 | byte_thing | byte | default | ||
| 2 | struct_thing | Xtruct | default | ||
| 3 | i32_thing | i32 | default |
Struct: Insanity
| Key | Field | Type | Description | Requiredness | Default value |
|---|---|---|---|---|---|
| 1 | userMap | map< | This is doc for field 1 | default | |
| 2 | xtructs | list< | And this is doc for field 2 | default |
Struct insanity
Exception: Xception
| Key | Field | Type | Description | Requiredness | Default value |
|---|---|---|---|---|---|
| 1 | errorCode | i32 | default | ||
| 2 | message | string | default |
Exception: Xception2
| Key | Field | Type | Description | Requiredness | Default value |
|---|---|---|---|---|---|
| 1 | errorCode | i32 | default | ||
| 2 | struct_thing | Xtruct | default |
Struct: EmptyStruct
| Key | Field | Type | Description | Requiredness | Default value |
|---|
Doc
Services
Service: ThriftTest
This is where you would document a ServiceFunction: ThriftTest.testVoid
void testVoid()
And this is how you would document functions in a service
Function: ThriftTest.testString
stringtestString(stringthing)
Function: ThriftTest.testByte
bytetestByte(bytething)
Function: ThriftTest.testI32
i32testI32(i32thing)
Function: ThriftTest.testI64
Like this onei64testI64(i64thing)
Function: ThriftTest.testDouble
doubletestDouble(doublething)
Function: ThriftTest.testMap
map<testMap(i32,i32>map<thing)i32,i32>
Function: ThriftTest.testSet
set<testSet(i32>set<thing)i32>
Function: ThriftTest.testList
list<testList(i32>list<thing)i32>
Function: ThriftTest.testEnum
This is an example of a function with params documentedNumberztestEnum(Numberzthing)
Parameters
| Name | Description |
|---|---|
| thing | This param is a thing |
Function: ThriftTest.testMapMap
map<testMapMap(i32,map<>i32,i32>i32hello)
Function: ThriftTest.testInsanity
map<testInsanity(UserId,map<>Numberz,Insanity>Insanityargument)
Function: ThriftTest.testUtf
void testUtf()
Vi mäter temperaturer i °C
DocTest.thrift
Description: Binary data
On Dec 22, 2012, at 1:51 AM, Jens Geyer <[email protected]> wrote: Hi Carl, |
