Repository navigation
Split the frontend docs into shared, Luma and Hyvä sections - #110
Open
DavidLambauer wants to merge 6 commits into
Open
DavidLambauer wants to merge 6 commits into
DavidLambauer wants to merge 6 commits into
Conversation
The frontend pages were Luma-only, partly invented, and some snippets broke the storefront when copied: a second ko.applyBindings() call, a requirejs-config.js that overrides baseUrl and shims jQuery, lodash (Magento ships underscore), x-magento-init inside a Knockout template, a <widget> layout element that no schema allows, and a styles.css that nothing loads. Shared pages, for every theme: - Theme development: theme files, parent themes, per-module overrides, view.xml, logo settings, and applying and deploying a theme. - Layouts, blocks and templates: the <page> root, blocks vs containers, $escaper, and view models. - Widgets: creating a widget and adding it to CMS content or layout. Luma pages, each marked as Luma-only: - Styling Luma themes with LESS (replaces the generic Sass tutorial). - JavaScript in Luma themes, with the RequireJS page merged in: init methods, requirejs-config.js with mixins, jQuery widgets, CSP. - UI components and Knockout, with the KnockoutJS page merged in. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The docs covered only Luma, although the bin/magento install wizard recommends Hyvä. Add: - Choosing a frontend stack: Hyvä vs Luma, what the installer does, licensing (the Hyvä theme is open source since November 2025), extension compatibility and checkout options. - Getting started with Hyvä: installing with the wizard or Composer, a child theme, the Tailwind build, and applying the theme. - Alpine.js components: CSP-compatible components, passing data from PHP, view models, section data and events. - Compatibility modules: what makes a module Luma-only, how compatibility modules and the Tailwind source registration work. The pages link to the Hyvä docs for depth instead of copying them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 task done
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every sample was installed in a Mage-OS 4.0.0 store and checked in a browser. Corrections: - ui-components: the listing used entity_id, but the table's key is item_id, so the grid failed with an SQL error; saved grid views keep the old column layout. - css-preprocessing: the import order was wrong, and a _theme.less or _variables.less that isn't a copy of Luma's breaks compilation and removes all storefront styles; browsers keep old CSS because static files are cached for a year. - theme-development: the layout sample had no visible effect in a Luma child; setup:upgrade stops if the preview image is missing; --theme also deploys parent themes unless --no-parent is given. - javascript-in-magento-2: data-mage-init also works in CMS content; inline scripts are only blocked on checkout, where $secureRenderer adds the nonce. - widgets: the editor's button is Page Builder's Insert Widget; the products list returns 500 without conditions_encoded. - layouts-blocks-and-templates: remove and display only work on referenceBlock and referenceContainer. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Overall good, few details:
One more detail - removed .md file generates 404 if I understand the system? So those need some kind of redirect. |
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This was referenced Nov 30, 2026
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.
The frontend docs only covered Luma, although the
bin/magento installwizard (since Mage-OS 3.0) recommends Hyvä. Parts were invented, and some snippets broke the storefront when copied:ko.applyBindings(), which throws "cannot apply bindings multiple times";requirejs-config.jsthat overridesbaseUrland shims jQuery;lodash, which Magento doesn't ship (it shipsunderscore);x-magento-initinside a Knockout template, where it never runs;<widget>layout element that no schema allows;styles.cssthat nothing loads.New structure
requirejsis merged in.knockoutjs-integrationis merged in.requirejs.mdandknockoutjs-integration.mdare removed, and their content is merged as listed above.Checking
Magento_UiJavaScript, the Gruntfile and the XSD files of Mage-OS 4.0.0.setup/src/MageOS/Installer;php -lon PHP 8.4.Worth an upstream look (not changed here)
The installer's Hyvä step:
token;LIKE '%hyva%' LIMIT 1.The getting-started page explains the manual setup.
The layout, view and widget XML reference pages are rebuilt separately in #109.
Tested on a running store
Every command and code sample on these pages was then run on a Mage-OS 4.0.0 store in Warden (PHP 8.4, MariaDB 11.8, OpenSearch 3.4, Valkey 8.1, Varnish 8.0, RabbitMQ 4.2), and the pages were corrected wherever the store behaved differently from what the code suggested. What needs several servers or outside services was checked in the code only. For the Hyvä pages, Hyvä 1.5.5 was installed from Hyvä's public GitHub repositories; the Hyvä Packagist steps were checked against docs.hyva.io only.
Merge mage-os/devdocs-website#74 first: this pull request removes pages, and until that change is live the website answers a request for a removed page with a 500. #151 adds the redirects to the pages that replace them.
Merge order and notes for reviewers: #115.
🤖 Generated with Claude Code