Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 23 additions & 2 deletions doc/doc-html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,30 @@ <h2>Key Features</h2>
<li><strong>Comments</strong>: Single-line (//, #) and multi-line (/* */) comments for documentation</li>
</ul>

<h2>Quick Example</h2>
<h2>Quick Examples</h2>

<h3>Simple Example</h3>
<p>A basic object with string and integer properties - no class specifications or schema:</p>
<div class="code-block-wrapper">
<pre><code class="language-ton">{(user)
<pre><code class="language-ton">{
name = "Alice Smith",
title = "Software Engineer",
department = "Engineering",
location = "San Francisco",
yearsExperience = 5
}</code></pre>
</div>

<h3>Complex Example</h3>
<p>Advanced features including class specification, type annotations, arrays, enums, multi-line strings, and schema validation:</p>
<div class="code-block-wrapper">
<pre><code class="language-ton">@ {
title = "User Profile",
version = "1.0",
author = "DevPossible"
}

{(user)
id = 12345,
name = "John Doe",
email = "john@example.com",
Expand Down
20 changes: 19 additions & 1 deletion doc/doc-html/js/site.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ document.addEventListener('DOMContentLoaded', function() {

// Smooth scroll for anchor links
initializeSmoothScroll();

// Hide tonspec.com alert if already on tonspec.com
hideTonspecAlertIfOnTonspec();
});

// Add copy buttons to all code blocks
Expand Down Expand Up @@ -267,6 +270,21 @@ function initializeMobileSidebar() {
});
}

// Hide the tonspec.com alert panel if we're already on tonspec.com
function hideTonspecAlertIfOnTonspec() {
// Check if the current hostname is tonspec.com
if (window.location.hostname === 'tonspec.com' || window.location.hostname === 'www.tonspec.com') {
// Find all alert divs and check if they contain the tonspec.com link
const alerts = document.querySelectorAll('.alert.alert-info');
alerts.forEach(alert => {
const tonspecLink = alert.querySelector('a[href="https://tonspec.com"]');
if (tonspecLink) {
alert.style.display = 'none';
}
});
}
}

// Smooth scroll for anchor links
function initializeSmoothScroll() {
const anchorLinks = document.querySelectorAll('a[href^="#"]');
Expand Down Expand Up @@ -355,4 +373,4 @@ if (typeof Prism !== 'undefined') {
}
}
};
}
}
5 changes: 3 additions & 2 deletions src/CSharp/DevPossible.Ton/DevPossible.Ton.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<Nullable>enable</Nullable>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageId>DevPossible.Ton</PackageId>
<Version>0.1.7</Version>
<Version>0.1.8</Version>
<Authors>DevPossible, LLC</Authors>
<Company>DevPossible, LLC</Company>
<Product>DevPossible.Ton</Product>
Expand All @@ -27,7 +27,7 @@
<AssemblyCopyright>Copyright © 2024 DevPossible, LLC</AssemblyCopyright>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
<FileVersion>1.0.0.0</FileVersion>
<PackageVersion>0.1.7</PackageVersion>
<PackageVersion>0.1.8</PackageVersion>

<!-- Contact Information -->
<PackageOwners>DevPossible, LLC</PackageOwners>
Expand All @@ -41,3 +41,4 @@
</Project>



3 changes: 2 additions & 1 deletion src/CSharp/DevPossible.Ton/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Install-Package DevPossible.Ton
### Via PackageReference

```xml
<PackageReference Include="DevPossible.Ton" Version="0.1.7" />
<PackageReference Include="DevPossible.Ton" Version="0.1.8" />
```

## Quick Start
Expand Down Expand Up @@ -236,3 +236,4 @@ TON Specification: [tonspec.com](https://tonspec.com)
**© 2024 DevPossible, LLC. All rights reserved.**



2 changes: 1 addition & 1 deletion src/JavaScript/devpossible-ton/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@devpossible/ton",
"version": "0.1.7",
"version": "0.1.8",
"description": "JavaScript library for parsing, validating, and serializing TON (Text Object Notation) files. Full specification at https://tonspec.com. ALPHA RELEASE: Core functionality is complete but API may change before stable 1.0 release.",
"type": "module",
"main": "dist/index.js",
Expand Down
3 changes: 2 additions & 1 deletion src/Python/devpossible_ton/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

setup(
name="devpossible-ton",
version="0.1.7",
version="0.1.8",
author="DevPossible, LLC",
author_email="support@devpossible.com",
description="Python library for parsing, validating, and serializing TON (Text Object Notation) files. Full specification at https://tonspec.com. ALPHA RELEASE: Core functionality is complete but API may change before stable 1.0 release.",
Expand Down Expand Up @@ -67,3 +67,4 @@




2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"library_version": "0.1.7",
"library_version": "0.1.8",
"ton_spec_version": "1.0",
"description": "Centralized version file for all DevPossible.Ton packages. library_version is for the package, ton_spec_version is for the TON file format specification."
}