Fixing markdown syntax
This commit is contained in:
parent
7ebaa0a390
commit
57843d8331
@ -87,7 +87,7 @@ foreach ($TL->methods->method as $key => $method) {
|
||||
|
||||
$params .= (isset($param['subtype']) ? '\['.$ptype.'\]' : $ptype).', ';
|
||||
}
|
||||
$md_method = '['.str_replace(['_', '.'], ['->', '\_'], $method).']('.$method.'.md)';
|
||||
$md_method = '['.str_replace('_', '->', $method).']('.$method.'.md)';
|
||||
|
||||
$methods[$method] = '$MadelineProto->'.$md_method.'(\['.$params.'\]) == [$'.str_replace('_', '\_', $type).'](../types/'.$real_type.'.md)
|
||||
|
||||
@ -115,9 +115,9 @@ foreach ($TL->methods->method as $key => $method) {
|
||||
$params .= "'".$param['name']."' => ";
|
||||
$params .= (isset($param['subtype']) ? '['.$ptype.']' : $ptype).', ';
|
||||
}
|
||||
$header = str_replace('_', '\_', '## Method: '.$method.'
|
||||
$header = '## Method: '.str_replace('_', '\_', $method).'
|
||||
|
||||
');
|
||||
';
|
||||
$table .= '
|
||||
|
||||
';
|
||||
@ -142,7 +142,7 @@ if (isset($number)) {
|
||||
$MadelineProto->complete_phone_login($code);
|
||||
}
|
||||
|
||||
$'.$type.' = $MadelineProto->'.str_replace('.', '->', $method).'(['.$params.']);
|
||||
$'.$type.' = $MadelineProto->'.$method.'(['.$params.']);
|
||||
```');
|
||||
file_put_contents('methods/'.$method.'.md', $header.$table.$return.$example);
|
||||
}
|
||||
@ -245,9 +245,9 @@ foreach ($TL->constructors->predicate as $key => $constructor) {
|
||||
}
|
||||
$params = "['_' => ".$constructor."', ".$params.']';
|
||||
|
||||
$header = str_replace('_', '\_', '## Constructor: '.$constructor.'
|
||||
$header = '## Constructor: '.str_replace('_', '\_', $constructor).'
|
||||
|
||||
');
|
||||
';
|
||||
$table .= '
|
||||
|
||||
|
||||
@ -288,7 +288,7 @@ $index = '';
|
||||
foreach ($types as $type => $keys) {
|
||||
$type = str_replace('.', '_', $type);
|
||||
|
||||
$index .= '['.$type.']('.$type.'.md)
|
||||
$index .= '['.str_replace('_', '\_', $type).']('.$type.'.md)
|
||||
|
||||
';
|
||||
$constructors = '';
|
||||
@ -298,11 +298,11 @@ foreach ($types as $type => $keys) {
|
||||
|
||||
';
|
||||
}
|
||||
$header = str_replace('_', '\_', '## Type: '.$type.'
|
||||
$header = '## Type: '.str_replace('_', '\_', $type).'
|
||||
|
||||
### Possible values (constructors):
|
||||
|
||||
');
|
||||
';
|
||||
file_put_contents('types/'.$type.'.md', $header.$constructors);
|
||||
}
|
||||
|
||||
|
@ -214,113 +214,113 @@
|
||||
|
||||
[WebPage](WebPage.md)
|
||||
|
||||
[account_Authorizations](account_Authorizations.md)
|
||||
[account\_Authorizations](account_Authorizations.md)
|
||||
|
||||
[account_Password](account_Password.md)
|
||||
[account\_Password](account_Password.md)
|
||||
|
||||
[account_PasswordInputSettings](account_PasswordInputSettings.md)
|
||||
[account\_PasswordInputSettings](account_PasswordInputSettings.md)
|
||||
|
||||
[account_PasswordSettings](account_PasswordSettings.md)
|
||||
[account\_PasswordSettings](account_PasswordSettings.md)
|
||||
|
||||
[account_PrivacyRules](account_PrivacyRules.md)
|
||||
[account\_PrivacyRules](account_PrivacyRules.md)
|
||||
|
||||
[auth_Authorization](auth_Authorization.md)
|
||||
[auth\_Authorization](auth_Authorization.md)
|
||||
|
||||
[auth_CheckedPhone](auth_CheckedPhone.md)
|
||||
[auth\_CheckedPhone](auth_CheckedPhone.md)
|
||||
|
||||
[auth_CodeType](auth_CodeType.md)
|
||||
[auth\_CodeType](auth_CodeType.md)
|
||||
|
||||
[auth_ExportedAuthorization](auth_ExportedAuthorization.md)
|
||||
[auth\_ExportedAuthorization](auth_ExportedAuthorization.md)
|
||||
|
||||
[auth_PasswordRecovery](auth_PasswordRecovery.md)
|
||||
[auth\_PasswordRecovery](auth_PasswordRecovery.md)
|
||||
|
||||
[auth_SentCode](auth_SentCode.md)
|
||||
[auth\_SentCode](auth_SentCode.md)
|
||||
|
||||
[auth_SentCodeType](auth_SentCodeType.md)
|
||||
[auth\_SentCodeType](auth_SentCodeType.md)
|
||||
|
||||
[channels_ChannelParticipant](channels_ChannelParticipant.md)
|
||||
[channels\_ChannelParticipant](channels_ChannelParticipant.md)
|
||||
|
||||
[channels_ChannelParticipants](channels_ChannelParticipants.md)
|
||||
[channels\_ChannelParticipants](channels_ChannelParticipants.md)
|
||||
|
||||
[contacts_Blocked](contacts_Blocked.md)
|
||||
[contacts\_Blocked](contacts_Blocked.md)
|
||||
|
||||
[contacts_Contacts](contacts_Contacts.md)
|
||||
[contacts\_Contacts](contacts_Contacts.md)
|
||||
|
||||
[contacts_Found](contacts_Found.md)
|
||||
[contacts\_Found](contacts_Found.md)
|
||||
|
||||
[contacts_ImportedContacts](contacts_ImportedContacts.md)
|
||||
[contacts\_ImportedContacts](contacts_ImportedContacts.md)
|
||||
|
||||
[contacts_Link](contacts_Link.md)
|
||||
[contacts\_Link](contacts_Link.md)
|
||||
|
||||
[contacts_ResolvedPeer](contacts_ResolvedPeer.md)
|
||||
[contacts\_ResolvedPeer](contacts_ResolvedPeer.md)
|
||||
|
||||
[contacts_TopPeers](contacts_TopPeers.md)
|
||||
[contacts\_TopPeers](contacts_TopPeers.md)
|
||||
|
||||
[help_AppChangelog](help_AppChangelog.md)
|
||||
[help\_AppChangelog](help_AppChangelog.md)
|
||||
|
||||
[help_AppUpdate](help_AppUpdate.md)
|
||||
[help\_AppUpdate](help_AppUpdate.md)
|
||||
|
||||
[help_InviteText](help_InviteText.md)
|
||||
[help\_InviteText](help_InviteText.md)
|
||||
|
||||
[help_Support](help_Support.md)
|
||||
[help\_Support](help_Support.md)
|
||||
|
||||
[help_TermsOfService](help_TermsOfService.md)
|
||||
[help\_TermsOfService](help_TermsOfService.md)
|
||||
|
||||
[messages_AffectedHistory](messages_AffectedHistory.md)
|
||||
[messages\_AffectedHistory](messages_AffectedHistory.md)
|
||||
|
||||
[messages_AffectedMessages](messages_AffectedMessages.md)
|
||||
[messages\_AffectedMessages](messages_AffectedMessages.md)
|
||||
|
||||
[messages_AllStickers](messages_AllStickers.md)
|
||||
[messages\_AllStickers](messages_AllStickers.md)
|
||||
|
||||
[messages_ArchivedStickers](messages_ArchivedStickers.md)
|
||||
[messages\_ArchivedStickers](messages_ArchivedStickers.md)
|
||||
|
||||
[messages_BotCallbackAnswer](messages_BotCallbackAnswer.md)
|
||||
[messages\_BotCallbackAnswer](messages_BotCallbackAnswer.md)
|
||||
|
||||
[messages_BotResults](messages_BotResults.md)
|
||||
[messages\_BotResults](messages_BotResults.md)
|
||||
|
||||
[messages_ChatFull](messages_ChatFull.md)
|
||||
[messages\_ChatFull](messages_ChatFull.md)
|
||||
|
||||
[messages_Chats](messages_Chats.md)
|
||||
[messages\_Chats](messages_Chats.md)
|
||||
|
||||
[messages_DhConfig](messages_DhConfig.md)
|
||||
[messages\_DhConfig](messages_DhConfig.md)
|
||||
|
||||
[messages_Dialogs](messages_Dialogs.md)
|
||||
[messages\_Dialogs](messages_Dialogs.md)
|
||||
|
||||
[messages_FeaturedStickers](messages_FeaturedStickers.md)
|
||||
[messages\_FeaturedStickers](messages_FeaturedStickers.md)
|
||||
|
||||
[messages_FoundGifs](messages_FoundGifs.md)
|
||||
[messages\_FoundGifs](messages_FoundGifs.md)
|
||||
|
||||
[messages_HighScores](messages_HighScores.md)
|
||||
[messages\_HighScores](messages_HighScores.md)
|
||||
|
||||
[messages_MessageEditData](messages_MessageEditData.md)
|
||||
[messages\_MessageEditData](messages_MessageEditData.md)
|
||||
|
||||
[messages_Messages](messages_Messages.md)
|
||||
[messages\_Messages](messages_Messages.md)
|
||||
|
||||
[messages_PeerDialogs](messages_PeerDialogs.md)
|
||||
[messages\_PeerDialogs](messages_PeerDialogs.md)
|
||||
|
||||
[messages_RecentStickers](messages_RecentStickers.md)
|
||||
[messages\_RecentStickers](messages_RecentStickers.md)
|
||||
|
||||
[messages_SavedGifs](messages_SavedGifs.md)
|
||||
[messages\_SavedGifs](messages_SavedGifs.md)
|
||||
|
||||
[messages_SentEncryptedMessage](messages_SentEncryptedMessage.md)
|
||||
[messages\_SentEncryptedMessage](messages_SentEncryptedMessage.md)
|
||||
|
||||
[messages_StickerSet](messages_StickerSet.md)
|
||||
[messages\_StickerSet](messages_StickerSet.md)
|
||||
|
||||
[messages_StickerSetInstallResult](messages_StickerSetInstallResult.md)
|
||||
[messages\_StickerSetInstallResult](messages_StickerSetInstallResult.md)
|
||||
|
||||
[messages_Stickers](messages_Stickers.md)
|
||||
[messages\_Stickers](messages_Stickers.md)
|
||||
|
||||
[photos_Photo](photos_Photo.md)
|
||||
[photos\_Photo](photos_Photo.md)
|
||||
|
||||
[photos_Photos](photos_Photos.md)
|
||||
[photos\_Photos](photos_Photos.md)
|
||||
|
||||
[storage_FileType](storage_FileType.md)
|
||||
[storage\_FileType](storage_FileType.md)
|
||||
|
||||
[updates_ChannelDifference](updates_ChannelDifference.md)
|
||||
[updates\_ChannelDifference](updates_ChannelDifference.md)
|
||||
|
||||
[updates_Difference](updates_Difference.md)
|
||||
[updates\_Difference](updates_Difference.md)
|
||||
|
||||
[updates_State](updates_State.md)
|
||||
[updates\_State](updates_State.md)
|
||||
|
||||
[upload_File](upload_File.md)
|
||||
[upload\_File](upload_File.md)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user