Redirect from old docs
This commit is contained in:
parent
76044ae1aa
commit
b1ffe1dffc
2
docs
2
docs
@ -1 +1 @@
|
||||
Subproject commit 3dd0584ee70f75d010dd5263b9b696f7d129d51a
|
||||
Subproject commit bd37f3a241960b0c1e7cb9ac1e33498510796a81
|
@ -110,10 +110,13 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
||||
';
|
||||
}
|
||||
$description = isset($this->td_descriptions['types'][$otype]) ? $this->td_descriptions['types'][$otype] : 'constructors and methods of type '.$type;
|
||||
$symFile = \str_replace('.', '_', $type);
|
||||
$redir = $symFile !== $type ? "\nredirect_from: /API_docs/types/$symFile.html" : '';
|
||||
|
||||
$header = '---
|
||||
title: '.$type.'
|
||||
description: constructors and methods of type '.$type.'
|
||||
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
||||
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png'.$redir.'
|
||||
---
|
||||
# Type: '.\str_replace('_', '\\_', $type).'
|
||||
[Back to types index](index.md)
|
||||
|
@ -184,10 +184,12 @@ trait Constructors
|
||||
$lua_params = "{_='".$data['predicate']."'".$lua_params.'}';
|
||||
$pwr_params = '{"_": "'.$data['predicate'].'"'.$pwr_params.'}';
|
||||
$description = isset($this->TL->getDescriptions()['constructors'][$data['predicate']]) ? $this->TL->getDescriptions()['constructors'][$data['predicate']]['description'] : $constructor.' attributes, type and example';
|
||||
$symFile = \str_replace('.', '_', $constructor.$layer);
|
||||
$redir = $symFile !== $constructor.$layer ? "\nredirect_from: /API_docs/constructors/$symFile.html" : '';
|
||||
$header = '---
|
||||
title: '.$data['predicate'].'
|
||||
description: '.$description.'
|
||||
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
||||
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png'.$redir.'
|
||||
---
|
||||
# Constructor: '.\str_replace('_', '\\_', $data['predicate'].$layer).'
|
||||
[Back to constructors index](index.md)
|
||||
|
@ -206,10 +206,12 @@ trait Methods
|
||||
}
|
||||
}
|
||||
$description = isset($this->td_descriptions['methods'][$data['method']]) ? $this->td_descriptions['methods'][$data['method']]['description'] : $data['method'].' parameters, return type and example';
|
||||
$symFile = \str_replace('.', '_', $method);
|
||||
$redir = $symFile !== $method ? "\nredirect_from: /API_docs/methods/$symFile.html" : '';
|
||||
$header = '---
|
||||
title: '.$data['method'].'
|
||||
description: '.$description.'
|
||||
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
||||
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png'.$redir.'
|
||||
---
|
||||
# Method: '.\str_replace('_', '\\_', $data['method']).'
|
||||
[Back to methods index](index.md)
|
||||
|
Loading…
Reference in New Issue
Block a user