From 7d2dc148a75c14860d3f5b005e51f9c6b1004e64 Mon Sep 17 00:00:00 2001
From: Novus Nota <68142933+novusnota@users.noreply.github.com>
Date: Tue, 2 Dec 2025 15:38:44 +0100
Subject: [PATCH 1/3] fix(ci): no quotes in formatter
---
.github/workflows/linter.yml | 19 +++++++------------
1 file changed, 7 insertions(+), 12 deletions(-)
diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml
index d1b6372ae..07c2f7e4f 100644
--- a/.github/workflows/linter.yml
+++ b/.github/workflows/linter.yml
@@ -46,7 +46,7 @@ jobs:
files: |
**.md
**.mdx
- separator: ":"
+ separator: " "
- name: Check formatting of MDX and Markdown files
id: check-fmt
@@ -56,29 +56,24 @@ jobs:
with:
script: |
const files = (process.env.ALL_CHANGED_FILES ?? '')
- .trim().replace('\\', '').split(':').filter(Boolean);
+ .trim().split(' ').filter(Boolean).filter((it) => it.match(/\.mdx?$/) !== null);
if (files.length === 0) {
console.log('\nNo such files affected!');
process.exit(0);
}
console.log('\nChecking formatting of the following MDX and Markdown files affected by this PR:\n');
for (const file of files) {
- const notice = file.includes(' ')
- ? ' (filename contains spaces, please remove them!)'
- : '';
- console.log(`- ${file}${notice}`);
+ console.log(`- ${file}`);
}
- const filesQuoted = files.map((it) => '"' + it + '"');
try {
- await exec.exec('npm', ['run', 'check:fmt:some', '--', ...filesQuoted], {
+ await exec.exec('npm', ['run', 'check:fmt:some', '--', ...files], {
silent: true, // >/dev/null 2>&1
});
} catch (_) {
// Comment right in the actions output
- const filesJoined = filesQuoted.join(' ');
console.log('\n\x1b[31mError:\x1b[0m Some files are not properly formatted!');
console.log('1. Install necessary dependencies: \x1b[31mnpm ci\x1b[0m');
- console.log(`2. Run this command to fix the issues: \x1b[31mnpm run fmt:some -- ${filesJoined}\x1b[0m`);
+ console.log(`2. Run this command to fix the issues: \x1b[31mnpm run fmt:some -- ${files.join(' ')}\x1b[0m`);
// Rethrow the exit code of the failed formatting check
core.setFailed('Some files are not properly formatted!');
@@ -102,13 +97,13 @@ jobs:
const { hidePriorCommentsWithPrefix, createComment } = await import('${{ github.workspace }}/.github/scripts/common.mjs');
const success = JSON.parse(process.env.SUCCESS ?? 'false');
const files = (process.env.ALL_CHANGED_FILES ?? '')
- .trim().replace('\\', '').split(':').filter(Boolean);
+ .trim().split(' ').filter(Boolean).filter((it) => it.match(/\.mdx?$/) !== null);
const comment = [
'To fix the **formatting** issues:\n',
'1. Install necessary dependencises: `npm ci`',
'2. Then, run this command:',
'```shell',
- `npm run fmt:some -- ${files.map((it) => '"' + it + '"').join(' ')}`,
+ `npm run fmt:some -- ${files.join(' ')}`,
'```',
].join('\n');
const prefix = comment.slice(0, 30);
From 93550952506b8c398124daa0f5397747c80b2a97 Mon Sep 17 00:00:00 2001
From: Novus Nota <68142933+novusnota@users.noreply.github.com>
Date: Tue, 2 Dec 2025 15:38:51 +0100
Subject: [PATCH 2/3] intentional failures
---
languages/tact.mdx | 12 ++++++++++++
more-tutorials.mdx | 17 +++++++++++++++++
old.mdx | 12 ++++++++++++
standard/tokens/airdrop.mdx | 15 +++++++++++++++
start-here.mdx | 3 +++
5 files changed, 59 insertions(+)
diff --git a/languages/tact.mdx b/languages/tact.mdx
index 269083112..ba0cd369a 100644
--- a/languages/tact.mdx
+++ b/languages/tact.mdx
@@ -5,6 +5,18 @@ sidebarTitle: "Tact"
import { Aside } from '/snippets/aside.jsx';
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/more-tutorials.mdx b/more-tutorials.mdx
index 3d7e8a882..fcc8e563e 100644
--- a/more-tutorials.mdx
+++ b/more-tutorials.mdx
@@ -4,6 +4,23 @@ title: "Other resources"
This page collects additional learning resources beyond this documentation. You'll find a mix of official content not hosted in this documentation and community-created materials to help you continue your journey.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Whether you prefer structured courses, in-depth articles, video tutorials, or real code examples, there is something here to match your learning style and current skill level.
## Courses
diff --git a/old.mdx b/old.mdx
index 138d953d9..10e6465b0 100644
--- a/old.mdx
+++ b/old.mdx
@@ -2,3 +2,15 @@
title: "Old documentation"
url: "https://old-docs.ton.org/"
---
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/standard/tokens/airdrop.mdx b/standard/tokens/airdrop.mdx
index 571eaa306..f28623de1 100644
--- a/standard/tokens/airdrop.mdx
+++ b/standard/tokens/airdrop.mdx
@@ -5,6 +5,21 @@ title: "Airdrop"
import { Aside } from '/snippets/aside.jsx';
import { Image } from '/snippets/image.jsx';
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
## The problem: distributing at scale
You want to reward thousands (or millions) of users. Sending assets to each address proactively looks simple-until you see the bill. Network fees add up fast when the sender pays for every transfer.
diff --git a/start-here.mdx b/start-here.mdx
index ac87d1b0e..535e0aec5 100644
--- a/start-here.mdx
+++ b/start-here.mdx
@@ -6,6 +6,9 @@ icon: rocket
import { Aside } from "/snippets/aside.jsx";
import { Image } from "/snippets/image.jsx";
+
+
+
The documentation is organized by layers of detail, with lower-level details appearing later.
| | |
From 23efa6426d3e8b0402494693be9adbe715e247c6 Mon Sep 17 00:00:00 2001
From: Novus Nota <68142933+novusnota@users.noreply.github.com>
Date: Tue, 2 Dec 2025 15:41:14 +0100
Subject: [PATCH 3/3] fine
---
languages/tact.mdx | 12 ------------
more-tutorials.mdx | 17 -----------------
old.mdx | 12 ------------
standard/tokens/airdrop.mdx | 15 ---------------
start-here.mdx | 3 ---
5 files changed, 59 deletions(-)
diff --git a/languages/tact.mdx b/languages/tact.mdx
index ba0cd369a..269083112 100644
--- a/languages/tact.mdx
+++ b/languages/tact.mdx
@@ -5,18 +5,6 @@ sidebarTitle: "Tact"
import { Aside } from '/snippets/aside.jsx';
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/more-tutorials.mdx b/more-tutorials.mdx
index fcc8e563e..3d7e8a882 100644
--- a/more-tutorials.mdx
+++ b/more-tutorials.mdx
@@ -4,23 +4,6 @@ title: "Other resources"
This page collects additional learning resources beyond this documentation. You'll find a mix of official content not hosted in this documentation and community-created materials to help you continue your journey.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Whether you prefer structured courses, in-depth articles, video tutorials, or real code examples, there is something here to match your learning style and current skill level.
## Courses
diff --git a/old.mdx b/old.mdx
index 10e6465b0..138d953d9 100644
--- a/old.mdx
+++ b/old.mdx
@@ -2,15 +2,3 @@
title: "Old documentation"
url: "https://old-docs.ton.org/"
---
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/standard/tokens/airdrop.mdx b/standard/tokens/airdrop.mdx
index f28623de1..571eaa306 100644
--- a/standard/tokens/airdrop.mdx
+++ b/standard/tokens/airdrop.mdx
@@ -5,21 +5,6 @@ title: "Airdrop"
import { Aside } from '/snippets/aside.jsx';
import { Image } from '/snippets/image.jsx';
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
## The problem: distributing at scale
You want to reward thousands (or millions) of users. Sending assets to each address proactively looks simple-until you see the bill. Network fees add up fast when the sender pays for every transfer.
diff --git a/start-here.mdx b/start-here.mdx
index 535e0aec5..ac87d1b0e 100644
--- a/start-here.mdx
+++ b/start-here.mdx
@@ -6,9 +6,6 @@ icon: rocket
import { Aside } from "/snippets/aside.jsx";
import { Image } from "/snippets/image.jsx";
-
-
-
The documentation is organized by layers of detail, with lower-level details appearing later.
| | |