Update rustdoc-js* format
This commit is contained in:
parent
6b0c7c4f01
commit
9803651ee8
67 changed files with 236 additions and 400 deletions
|
@ -1,31 +1,6 @@
|
|||
const QUERY = [
|
||||
'StructItem',
|
||||
'StructFieldItem',
|
||||
'StructMethodItem',
|
||||
'ImplTraitItem',
|
||||
'StructImplConstItem',
|
||||
'ImplTraitFunction',
|
||||
'EnumItem',
|
||||
'VariantItem',
|
||||
'EnumMethodItem',
|
||||
'TypedefItem',
|
||||
'TraitItem',
|
||||
'TraitTypeItem',
|
||||
'AssociatedConstItem',
|
||||
'TraitFunctionItem',
|
||||
'FunctionItem',
|
||||
'ModuleItem',
|
||||
'ConstItem',
|
||||
'StaticItem',
|
||||
'UnionItem',
|
||||
'UnionFieldItem',
|
||||
'UnionMethodItem',
|
||||
'MacroItem',
|
||||
];
|
||||
|
||||
const EXPECTED = [
|
||||
{
|
||||
// StructItem
|
||||
'query': 'StructItem',
|
||||
'others': [
|
||||
{
|
||||
'path': 'doc_alias',
|
||||
|
@ -37,7 +12,7 @@ const EXPECTED = [
|
|||
],
|
||||
},
|
||||
{
|
||||
// StructFieldItem
|
||||
'query': 'StructFieldItem',
|
||||
'others': [
|
||||
{
|
||||
'path': 'doc_alias::Struct',
|
||||
|
@ -49,7 +24,7 @@ const EXPECTED = [
|
|||
],
|
||||
},
|
||||
{
|
||||
// StructMethodItem
|
||||
'query': 'StructMethodItem',
|
||||
'others': [
|
||||
{
|
||||
'path': 'doc_alias::Struct',
|
||||
|
@ -61,11 +36,11 @@ const EXPECTED = [
|
|||
],
|
||||
},
|
||||
{
|
||||
// ImplTraitItem
|
||||
'query': 'ImplTraitItem',
|
||||
'others': [],
|
||||
},
|
||||
{
|
||||
// StructImplConstItem
|
||||
'query': 'StructImplConstItem',
|
||||
'others': [
|
||||
{
|
||||
'path': 'doc_alias::Struct',
|
||||
|
@ -77,7 +52,7 @@ const EXPECTED = [
|
|||
],
|
||||
},
|
||||
{
|
||||
// ImplTraitFunction
|
||||
'query': 'ImplTraitFunction',
|
||||
'others': [
|
||||
{
|
||||
'path': 'doc_alias::Struct',
|
||||
|
@ -89,7 +64,7 @@ const EXPECTED = [
|
|||
],
|
||||
},
|
||||
{
|
||||
// EnumItem
|
||||
'query': 'EnumItem',
|
||||
'others': [
|
||||
{
|
||||
'path': 'doc_alias',
|
||||
|
@ -101,7 +76,7 @@ const EXPECTED = [
|
|||
],
|
||||
},
|
||||
{
|
||||
// VariantItem
|
||||
'query': 'VariantItem',
|
||||
'others': [
|
||||
{
|
||||
'path': 'doc_alias::Enum',
|
||||
|
@ -113,7 +88,7 @@ const EXPECTED = [
|
|||
],
|
||||
},
|
||||
{
|
||||
// EnumMethodItem
|
||||
'query': 'EnumMethodItem',
|
||||
'others': [
|
||||
{
|
||||
'path': 'doc_alias::Enum',
|
||||
|
@ -125,7 +100,7 @@ const EXPECTED = [
|
|||
],
|
||||
},
|
||||
{
|
||||
// TypedefItem
|
||||
'query': 'TypedefItem',
|
||||
'others': [
|
||||
{
|
||||
'path': 'doc_alias',
|
||||
|
@ -137,7 +112,7 @@ const EXPECTED = [
|
|||
],
|
||||
},
|
||||
{
|
||||
// TraitItem
|
||||
'query': 'TraitItem',
|
||||
'others': [
|
||||
{
|
||||
'path': 'doc_alias',
|
||||
|
@ -149,7 +124,7 @@ const EXPECTED = [
|
|||
],
|
||||
},
|
||||
{
|
||||
// TraitTypeItem
|
||||
'query': 'TraitTypeItem',
|
||||
'others': [
|
||||
{
|
||||
'path': 'doc_alias::Trait',
|
||||
|
@ -161,7 +136,7 @@ const EXPECTED = [
|
|||
],
|
||||
},
|
||||
{
|
||||
// AssociatedConstItem
|
||||
'query': 'AssociatedConstItem',
|
||||
'others': [
|
||||
{
|
||||
'path': 'doc_alias::Trait',
|
||||
|
@ -173,7 +148,7 @@ const EXPECTED = [
|
|||
],
|
||||
},
|
||||
{
|
||||
// TraitFunctionItem
|
||||
'query': 'TraitFunctionItem',
|
||||
'others': [
|
||||
{
|
||||
'path': 'doc_alias::Trait',
|
||||
|
@ -185,7 +160,7 @@ const EXPECTED = [
|
|||
],
|
||||
},
|
||||
{
|
||||
// FunctionItem
|
||||
'query': 'FunctionItem',
|
||||
'others': [
|
||||
{
|
||||
'path': 'doc_alias',
|
||||
|
@ -197,7 +172,7 @@ const EXPECTED = [
|
|||
],
|
||||
},
|
||||
{
|
||||
// ModuleItem
|
||||
'query': 'ModuleItem',
|
||||
'others': [
|
||||
{
|
||||
'path': 'doc_alias',
|
||||
|
@ -209,7 +184,7 @@ const EXPECTED = [
|
|||
],
|
||||
},
|
||||
{
|
||||
// ConstItem
|
||||
'query': 'ConstItem',
|
||||
'others': [
|
||||
{
|
||||
'path': 'doc_alias',
|
||||
|
@ -225,7 +200,7 @@ const EXPECTED = [
|
|||
],
|
||||
},
|
||||
{
|
||||
// StaticItem
|
||||
'query': 'StaticItem',
|
||||
'others': [
|
||||
{
|
||||
'path': 'doc_alias',
|
||||
|
@ -237,7 +212,7 @@ const EXPECTED = [
|
|||
],
|
||||
},
|
||||
{
|
||||
// UnionItem
|
||||
'query': 'UnionItem',
|
||||
'others': [
|
||||
{
|
||||
'path': 'doc_alias',
|
||||
|
@ -255,7 +230,7 @@ const EXPECTED = [
|
|||
],
|
||||
},
|
||||
{
|
||||
// UnionFieldItem
|
||||
'query': 'UnionFieldItem',
|
||||
'others': [
|
||||
{
|
||||
'path': 'doc_alias::Union',
|
||||
|
@ -267,7 +242,7 @@ const EXPECTED = [
|
|||
],
|
||||
},
|
||||
{
|
||||
// UnionMethodItem
|
||||
'query': 'UnionMethodItem',
|
||||
'others': [
|
||||
{
|
||||
'path': 'doc_alias::Union',
|
||||
|
@ -279,7 +254,7 @@ const EXPECTED = [
|
|||
],
|
||||
},
|
||||
{
|
||||
// MacroItem
|
||||
'query': 'MacroItem',
|
||||
'others': [
|
||||
{
|
||||
'path': 'doc_alias',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue