Use own build Instructions Generator (#45)

* Use own build Instructions Generator

* Allow to manually trigger a Documentation update

Co-authored-by: code1mountain <none>
This commit is contained in:
Jannik 2021-01-12 14:16:10 -08:00 committed by GitHub
parent cd79fa2f05
commit 46af675246
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 5 deletions

View File

@ -6,6 +6,7 @@ on:
- master - master
paths: paths:
- tdlight-api-openapi.yaml - tdlight-api-openapi.yaml
workflow_dispatch:
jobs: jobs:
docs: docs:
@ -25,6 +26,7 @@ jobs:
mkdir docs mkdir docs
cp -r icons/ docs/icons/ cp -r icons/ docs/icons/
cp tdlight-api-openapi.yaml docs/tdlight-api-openapi.yaml cp tdlight-api-openapi.yaml docs/tdlight-api-openapi.yaml
cp build.html docs/build.html
cd docs cd docs
# Download the release # Download the release
curl -sL -o $RELEASE_TAG https://api.github.com/repos/swagger-api/swagger-ui/tarball/$RELEASE_TAG curl -sL -o $RELEASE_TAG https://api.github.com/repos/swagger-api/swagger-ui/tarball/$RELEASE_TAG

View File

@ -239,7 +239,7 @@ The simplest way to use it is with this docker command:
docker run -p 8081:8081 --env TELEGRAM_API_ID=API_ID --env TELEGRAM_API_HASH=API_HASH tdlight/tdlightbotapi docker run -p 8081:8081 --env TELEGRAM_API_ID=API_ID --env TELEGRAM_API_HASH=API_HASH tdlight/tdlightbotapi
``` ```
The simplest way to build `Telegram Bot API server` is to use our [Telegram Bot API server build instructions generator](https://tdlib.github.io/telegram-bot-api/build.html). The simplest way to build `Telegram Bot API server` is to use our [Telegram Bot API server build instructions generator](https://tdlight-team.github.io/tdlight-telegram-bot-api/build.html).
If you do that, you'll only need to choose the target operating system to receive the complete build instructions. If you do that, you'll only need to choose the target operating system to receive the complete build instructions.
In general, you need to install all `Telegram Bot API server` [dependencies](#dependencies) and compile the source code using CMake: In general, you need to install all `Telegram Bot API server` [dependencies](#dependencies) and compile the source code using CMake:

View File

@ -401,9 +401,9 @@ function onOptionsChanged() {
commands.push('exit'); commands.push('exit');
} }
} }
commands.push('git clone --recursive https://github.com/tdlib/telegram-bot-api.git'); commands.push('git clone --recursive https://github.com/tdlight-team/tdlight-telegram-bot-api.git');
commands.push('cd telegram-bot-api'); commands.push('cd tdlight-telegram-bot-api');
if (use_vcpkg) { if (use_vcpkg) {
commands.push('git clone https://github.com/Microsoft/vcpkg.git'); commands.push('git clone https://github.com/Microsoft/vcpkg.git');
@ -484,9 +484,9 @@ function onOptionsChanged() {
} }
commands.push('cd ../..'); commands.push('cd ../..');
if (install_dir !== '/usr/local') { if (install_dir !== '/usr/local') {
install_dir = 'telegram-bot-api'; install_dir = 'tdlight-telegram-bot-api';
} }
commands.push((use_powershell ? 'dir ' : 'ls -l ') + install_dir + '/bin/telegram-bot-api*'); commands.push((use_powershell ? 'dir ' : 'ls -l ') + install_dir + '/bin/tdlight-telegram-bot-api*');
document.getElementById('buildCommands').innerHTML = '<ul><li>' + commands.join('</li><li>') + '</li></ul>'; document.getElementById('buildCommands').innerHTML = '<ul><li>' + commands.join('</li><li>') + '</li></ul>';
} }