Skip to content

Commit 8de5c52

Browse files
committed
Update docs
1 parent 0aa67fe commit 8de5c52

4 files changed

Lines changed: 11 additions & 7 deletions

File tree

‎.gitmodules‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "docs"]
2+
path = docs
3+
url = https://github.com/danog/MadelineProtoDocs

‎build_docs.php‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
\danog\MadelineProto\Logger::log('Copying readme...', \danog\MadelineProto\Logger::NOTICE);
1919

20-
file_put_contents('docs/index.md', '---
20+
file_put_contents('docs/docs/index.md', '---
2121
title: MadelineProto documentation
2222
description: PHP implementation of telegram\'s MTProto protocol
2323
---
@@ -28,22 +28,22 @@
2828
'tl_schema' => ['td' => __DIR__.'/src/danog/MadelineProto/TL_td.tl'],
2929
'title' => 'MadelineProto API documentation (td-lib)',
3030
'description' => 'MadelineProto API documentation (td-lib)',
31-
'output_dir' => __DIR__.'/docs/TD_docs',
31+
'output_dir' => __DIR__.'/docs/docs/TD_docs',
3232
'readme' => false,
3333
'td' => true,
3434
],
3535
[
3636
'tl_schema' => ['mtproto' => __DIR__.'/src/danog/MadelineProto/TL_mtproto_v1.json'],
3737
'title' => 'MadelineProto API documentation (mtproto)',
3838
'description' => 'MadelineProto API documentation (mtproto)',
39-
'output_dir' => __DIR__.'/docs/MTProto_docs',
39+
'output_dir' => __DIR__.'/docs/docs/MTProto_docs',
4040
'readme' => false,
4141
],
4242
[
4343
'tl_schema' => ['telegram' => __DIR__.'/src/danog/MadelineProto/TL_telegram_v75.tl', 'calls' => __DIR__.'/src/danog/MadelineProto/TL_calls.tl', 'secret' => __DIR__.'/src/danog/MadelineProto/TL_secret.tl', 'td' => __DIR__.'/src/danog/MadelineProto/TL_td.tl'],
4444
'title' => 'MadelineProto API documentation (layer 75)',
4545
'description' => 'MadelineProto API documentation (layer 75)',
46-
'output_dir' => __DIR__.'/docs/API_docs',
46+
'output_dir' => __DIR__.'/docs/docs/API_docs',
4747
'readme' => false,
4848
],
4949
];
@@ -55,14 +55,14 @@
5555
'tl_schema' => ['telegram' => $file],
5656
'title' => 'MadelineProto API documentation (layer '.$layer.')',
5757
'description' => 'MadelineProto API documentation (layer '.$layer.')',
58-
'output_dir' => __DIR__.'/old_docs/API_docs_'.$layer,
58+
'output_dir' => __DIR__.'/docs/old_docs/API_docs_'.$layer,
5959
'readme' => true,
6060
];
6161
$layer_list = '[Layer '.$layer.'](API_docs_'.$layer.'/)
6262
';
6363
}
6464

65-
file_put_contents('old_docs/README.md', '---
65+
file_put_contents('docs/old_docs/README.md', '---
6666
title: Documentations of old mtproto layers
6767
description: Documentation of old mtproto layers
6868
---

‎build_docs_index.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
$index = '';
4-
$files = glob('docs/docs/*md');
4+
$files = glob('docs/docs/docs/*md');
55
foreach ($files as $file) {
66
$base = basename($file, '.md');
77
if ($base === 'CREATING_A_CLIENT') {

‎docs‎

Submodule docs added at 4ccf953

0 commit comments

Comments
 (0)