Repository navigation
Add GitHub Pages documentation and SQL-to-Delphi converter - #30
Merged
Merged
Conversation
auchri
force-pushed
the
codex/github-pages-sql-converter
branch
from
October 31, 2026 18:53
5c4bef2 to
83aca91
Compare
auchri
force-pushed
the
codex/github-pages-sql-converter
branch
from
October 31, 2026 19:06
57207e1 to
2c090ef
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
Add a static GitHub Pages documentation website and a browser-local SELECT-to-Delphi converter. README.md, CHANGELOG.md and docs/*.md are rendered directly, keeping one documentation source. Relative links, heading anchors and syntax highlighting support the project URL subpath.
The converter accepts MySQL, PostgreSQL, SQL Server and SQLite input, including aliases, simple joins, grouped conditions, ordering and paging. LIKE uses Starts/Ends/Contains helpers when appropriate, with Like as the general fallback and matching NOT/OR/HAVING methods. Unsupported constructs fail without partial output.
Keep the header, main menu and on-page contents visible while reading. Include smooth anchor scrolling, target highlighting, current-section tracking, back-to-top navigation, a horizontal mobile menu and reduced-motion support. The sidebar correctly describes the library's six output dialects; the converter accepts four input dialects.
Numeric output and review fixes
.Where('Price', '>', 19.99). Normalize.125to0.125,1.2300to1.23, and1.to1.0. Do not emit BCD wrappers, additional imports or automatic TValue.From calls for ordinary decimals.Each generated smoke project now includes a stable, unique ProjectGuid and console/MainSource/Win32/Win64 IDE metadata matching the repository's existing Delphi projects. Regression checks validate GUID syntax, uniqueness and deterministic regeneration; the generated XML and GUIDs were also parsed locally. Generated projects derive their structure from test/QueryBuilder.Tests.dproj, preserving Base configuration groups, sanitized names and target/UserTools imports. DCC_* compiler options belong to the conditional Base property group so the IDE resolves the executable output when pressing F9. No debugger host override is needed. Generated Delphi sources and project files use CRLF.
Editors and documentation navigation
Use locally bundled CodeMirror 6 editors with dialect-aware SQL highlighting and read-only, selectable Delphi output. A small Delphi lexical highlighter covers keywords, types, calls, strings, character codes and multiline comments; it is not a complete Delphi parser. Preserve input invalidation, async conversion ownership, errors, Copy/fallback and Ctrl+Enter. Tab indents; Escape then Tab leaves the SQL editor. The converter app bundle is about 362 KiB minified / 122 KiB gzip; documentation pages load only the small navigation script. Runtime dependency licenses are included in the generated notice.
Keep five primary documentation links and group secondary pages under native Advanced details. The active group opens automatically, with aria-current and synchronized aria-expanded. Mobile navigation stays a single horizontal row, reveals the active item on page load and shows an end-aware right-edge fade. CSS is expanded into readable component sections; the existing palette and layout are retained.
Validation
npm test: 67 tests passed across all four input dialects, existing SELECT features, integer boundaries, concise decimal output, precision/range rejections, overlapping conversions and smoke-project generation.npm run build: passed; ten documentation pages plus the converter generated from repository sources.npm run test:site: passed; local links, anchors and assets validated under a project URL subpath.node website/generate-smoke.mjs --check: passed.git diff --check: passed.npm run test:browser: ten Playwright tests passed in installed Edge on Windows under/QueryBuilder4Delphi/, at 1920, 1366, 768, 320, 375 and 390px. Checked highlighting/editor initialization, read-only output, Copy and clipboard fallback, editing/invalidation, conversion shortcuts/errors, dialect changes, native Advanced keyboard operation, active navigation visibility, mobile fade/end behavior, single-row expansion, focus and reduced motion. Desktop/mobile screenshots were visually inspected. Tests observed no external converter requests. CI now runs these tests in Chromium; that Linux run has not been verified locally.Deployment
The workflow validates pull requests and deploys Pages only from main; it does not require Delphi. Select GitHub Actions as the Pages source before first deployment. Development, numeric policy and smoke-test instructions are in docs/WEBSITE.md. Repository settings and library implementations/public APIs are unchanged.