Skip to content

Commit

Permalink
changes for this fork
Browse files Browse the repository at this point in the history
  • Loading branch information
SpEcHiDe committed Jun 20, 2024
1 parent aba765a commit 608bfab
Show file tree
Hide file tree
Showing 8 changed files with 20,720 additions and 13,175 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/doc-import.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Import documentation

on:
workflow_dispatch: {} # Allow manually kicking off builds

jobs:
check_for_update:
name: Check for NEW documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Node 14
uses: actions/setup-node@v1
with:
node-version: 14.x
- name: Cache npm packages
uses: actions/cache@v1
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('tools/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install npm packages
working-directory: ./tools/
run: npm install request cheerio
- name: Run docimport tool
working-directory: ./
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.SCHEMABOT_ACCESS_TOKEN }}
REPO_WORKING_DIRECTORY: ./working
GIT_NAME: schemabot
GIT_EMAIL: schemabot@horner.tj
GIT_PRIVATE_KEY_PATH: ~/.ssh/id_rsa
NODE_NO_WARNINGS: "1"
run: cd tools && node docimport.js
- name: Update and Push changes
run: |
git add -A
git -c "user.name=schemabot" -c "user.email=schemabot@horner.tj" commit -m "[chore] Import documentation from core.telegram.org"
git push origin master
25 changes: 12 additions & 13 deletions .github/workflows/update-schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,22 @@ on:
types: update-schema
schedule:
- cron: "0 * * * *"
workflow_dispatch: {} # Allow manually kicking off builds

jobs:
check_for_update:
name: Check for schema update
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Copy deploy key to ~/.ssh
env:
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
run: |
mkdir -p ~/.ssh
echo "$DEPLOY_KEY" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
- uses: actions/checkout@v3
with:
fetch-depth: 1

- name: Set up Node 14
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: 14.x

- name: Cache npm packages
uses: actions/cache@v1
env:
Expand All @@ -34,16 +32,17 @@ jobs:
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install npm packages
working-directory: ./tools/update-schema
run: npm install

- name: Run update-schema tool
working-directory: ./tools/update-schema
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.SCHEMABOT_ACCESS_TOKEN }}
REPO_WORKING_DIRECTORY: ./working
REPO_WORKING_DIRECTORY: ./../../
GIT_NAME: schemabot
GIT_EMAIL: schemabot@horner.tj
GIT_PRIVATE_KEY_PATH: ~/.ssh/id_rsa
GIT_EMAIL: durov2005@gmail.com
NODE_NO_WARNINGS: "1"
run: node index
run: node index
1 change: 0 additions & 1 deletion CNAME

This file was deleted.

34 changes: 16 additions & 18 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,22 @@
<title ng-bind="(title ? title + ' // ' : '') + 'TL-Schema Explorer'">TL-Schema Explorer</title>

<link href="https://fonts.googleapis.com/css?family=Fira+Mono" rel="stylesheet">
<link rel="stylesheet" href="/css/styles.css?v14">
<link rel="stylesheet" href="/css/fonts.css">
<link rel="stylesheet" href="/css/rgs.css">
<link rel="stylesheet" href="/css/vs2015.css">
<link rel="shortcut icon" href="/img/telegram-circle.png">
<link rel="stylesheet" href="./css/styles.css?v14">
<link rel="stylesheet" href="./css/fonts.css">
<link rel="stylesheet" href="./css/rgs.css">
<link rel="stylesheet" href="./css/vs2015.css">
<link rel="shortcut icon" href="./img/telegram-circle.png">

<script src="/js/schema.js?v4"></script>
<script src="/js/showdown.min.js"></script>
<script src="/js/angular.min.js"></script>
<script src="/js/ngsanitize.min.js"></script>
<script src="/js/ngroute.min.js"></script>
<script src="/js/ngmarkdown.js"></script>
<script src="/js/highlight.min.js"></script>
<script src="/js/nghighlight.min.js"></script>
<script src="/js/app.js?v11"></script>
<script src="./js/schema.js?v4"></script>
<script src="./js/showdown.min.js"></script>
<script src="./js/angular.min.js"></script>
<script src="./js/ngsanitize.min.js"></script>
<script src="./js/ngroute.min.js"></script>
<script src="./js/ngmarkdown.js"></script>
<script src="./js/highlight.min.js"></script>
<script src="./js/nghighlight.min.js"></script>
<script src="./js/app.js?v11"></script>

<script async defer data-website-id="74493f73-a9f7-4bb8-80e9-c2d8c00e1abe" src="https://umami.horner.tj/umami.js"></script>

<meta property="og:title" content="TL-Schema Explorer">
<meta property="og:site_name" content="TL-Schema Explorer">
<meta property="og:type" content="website">
Expand All @@ -33,8 +31,8 @@
<a href="#!/" class="home">TL-Schema Explorer (Layer 158)</a>

<div class="header-right">
<a href="/resources/schema.json" class="ic-download">schema.json</a>
<a href="/resources/schema.tl" class="ic-download">schema.tl</a>
<a href="./resources/schema.json" class="ic-download">schema.json</a>
<a href="./resources/schema.tl" class="ic-download">schema.tl</a>
<input type="text" placeholder="Search..." ng-hide="hideGlobalSearch" class="header-search" ng-model="globalSearch" ng-change="doSearch()">
</div>
</div>
Expand Down
Loading

0 comments on commit 608bfab

Please sign in to comment.