4. LLM metadata
6. Workflow
10. ApiLink usage
15. Adding of images
This repository (igniteui-documentation) is the Astro-based documentation site for Ignite UI. It consumes reusable MDX components from a separate package:
igniteui-astro-components is the shared component library used by all MDX topic files in this repo. It provides the JSX/Astro components that are imported at the top of every MDX file.
Key components and their import paths:
| Component | Import path | Purpose |
|---|---|---|
<Sample> |
igniteui-astro-components/components/mdx/Sample.astro |
Embeds a live interactive sample iframe |
<ApiLink> |
igniteui-astro-components/components/mdx/ApiLink.astro |
Platform-aware link to API documentation |
<PlatformBlock> |
igniteui-astro-components/components/mdx/PlatformBlock.astro |
Gates content to specific platforms |
<Badge> |
igniteui-astro-components/components/mdx/Badge.astro |
Inline badge (e.g. preview, beta) |
When writing an article about a specific component, it is important to have a plan that you stick to. This will improve the overall cohesion of the text, making it more structured and clear for the reader.
There are a few questions one can ask, when charting such plan.
a. List required previous knowledge to better understand the concept of the topic. For instance, if the article is about a directive feature, put references to the ng directives in the beginning of the article.
b. Identify common use cases. Where would said component/directive be used in most often. Try to outline samples around said use cases.
2. What are the prerequisites to using said component/directive?** Does it depend on other components, or can it be used on its own?
Why was a feature implemented? What problem does it solve? How important is that feature for the overall weight of the component? Can this component exist without the feature and still be perceived useful? Rank features by importance and write about the most important ones.
Does the feature require any previous knowledge? If yes, then refer the user to it.
If yes, we can anticipate questions and have a troubleshooting section where we outline such issues and how to solve them.
The MDX topics use the `<ApiLink>` JSX component in place of plain markdown links to API docs. Any component class, interface, or member mentioned in the article should be linked using `<ApiLink>`. At the end of the article, list the primary types via `<ApiLink>` under an `## API References` heading.
Example frontmatter:
mentionedTypes: ["Grid", "Column", "GridToolbar"]Example inline API links in prose:
The <ApiLink pkg="grids" type="Grid" /> supports row virtualization by default.
Set the <ApiLink pkg="grids" type="Column" member="sortable" /> property to `true` to enable sorting.Example `## API References` section at the end of the article:
## API References
<ApiLink pkg="grids" type="Grid" />
<ApiLink pkg="grids" type="Column" />
<ApiLink pkg="grids" type="GridToolbar" />See the [ApiLink usage](#api-link) section for the full syntax reference.
The purpose of this section is to present what the structure of the topic should be and the arrangement of the main elements in it.
1. The first title of the page should be with <h1> tag (# Page Title) and it won't appear on the submenu on the right.
Minor titles related to the main titles can be used with <h3>(###) or <h4> (####).
Note: when <h4> (####) is used the title won't appear on the submenu on the right.
Every English and Japanese topic frontmatter block must include an llms.description. The build uses this value for the page entry in llms.txt, where a model must decide which page to open without reading the full topic.
description: Learn how to configure sorting in the Angular Grid.
keywords: angular grid, sorting, multi-column sorting
llms:
description: Configure single- and multi-column Grid sorting, sorting expressions, custom strategies, and runtime sort state in Ignite UI for Angular.Keep description and keywords focused on reader-facing SEO. Write llms.description as a compact content summary that names the component or feature and the concrete tasks, concepts, or APIs covered by the page.
Two limits apply, and they are not the same thing:
- Enforced by the build: one sentence of 40-300 characters for English, 20-300 for Japanese.
npm run check:llms-metadatafails outside that range. When a file contains multiple conditional frontmatter blocks, every block needs the metadata. - Editorial rule: everything else - what makes a good
llms.description, what to avoid, and how it must line up with the title, H1 lead and keywords - lives in theigniteui-topic-frontmatterskill, in.agents/skills/igniteui-topic-frontmatter/references/audit-rules.md. That file is canonical; do not restate its rules here.
Run the read-only metadata validator before opening a pull request:
npm run check:llms-metadataThe validator checks English and Japanese author-owned sources for missing or empty values, length, mojibake, language mismatch, marketing boilerplate, markup, and common malformed text. It does not generate descriptions or replace editorial review for semantic accuracy.
The main purpose of the Styling section is to provide simple examples on how to style most common parts of the UI (let's say styling for alternate rows in the grid), copy/paste the code in any sample and see it working. In order to write content that fulfills the purpose, follow the steps below:
3. Provide the simplest styling example, which is to extend the default theme for the corresponding feature/component. For example, when styling the paginator UI, the igx-grid-paginator-theme needs to be extended:
$dark-grid-paginator: grid-paginator-theme(
$text-color: #F4D45C,
$background-color: #575757,
$border-color: #292826
);4. If other elements in the feature UI are styled by another theme, add example for that theme too. For example - the buttons in the paginator UI require that a new theme for buttons is created.
5. If a theme provides a ton of parameters for styling, choose those that you decide would be the most common. You may state in one sentence what each property controls, and provide a link to the theme under the SASS API.
6. Provide the last step, which is to include the component mixin, along with two notes – the first one for scoping any mixin if needed, and the second note about penetrating the ViewEncapsulation, along with example on how to overcome the encapsulation.
8. Examples on styling with igx-color, palettes and schemas are not necessary, but you may add a link to Theming engine topics as they are quite detailed.
9. When adding a section for a certain grid feature, add it for the igxHierarchicalGrid and igxTreeGrid as well.
When working on an issue for the Ignite UI Documentation, you need to be aware of and to follow a correct status workflow. We have created a number of status labels in order to communicate well what the current status of a single issue/pull request is. The statuses are as follows:
status: in-reviewthis is the initial status of an issue. If the label is not placed, go ahead and place it.status: in-developmentthis is the status once you start working on an issue. Assign the issue to yourself if it hasn't been assigned already and remove the previous status and assign it an in development status.status: by-designthis is the status of an issue that has been reviewed and has been determined that the current design of the feature is such that the issue describes the correct behavior as incorrect. Remove other statuses and place this status if you've reviewed the issue.status: third-party-issuethis is the status of an issue that has been reviewed, has been determined to be an issue, but the root case is not in the Ignite UI for Angular code. Example would be browser specific bugs caused by the particular browser's rendering or JavaScript engines, or an issue with the Angular framework. Remove other statuses and place only this one if you're the one performing the investigation.status: not-to-fixthis is the status of issues that derive from our code, but have been decided to leave as is. This is done when fixes require general design and/or architecture changes and are very risky.status: already-fixedthis status indicates that the issue is already fixed in the source code. When setting this status assign the person that logged the issue so that he can verify the issue is fixed in the respective development branch. Remove other statuses and place this status if you've reviewed the issue.status: cannot-reproducethis status indicates that you cannot reproduce the issue in the source code. A reason may be because the issue is already fixed. When setting this status assign the person that logged the issue so that he can respond with more details on how to reproduce it.status: not a bugthis is the status of an issue that you reviewed and concluded that it's not a bug. You should comment explaining the reasons why you think the issue is not a bug.status: resolvedthis is the status of an issue that has been fixed and there are active pull requests related to it.
Example status workflows:
status: in-review => status: in-development => status: resolved (PR is created)
status: in-review => status: by-design (Issue can be closed)
status: in-review => status: third-party-issue (Issue can be closed)
status: in-review => status: not-to-fix (Issue can be closed)
Note: In most cases the development will be related to new topics creation or updating of existing one. Keep in mind that for each newly added topic a corresponding entry must be added to the platform sidebar configuration so it appears in the navigation. It is recommended an
Additional referencessection to be added at the end of each topic.
status: awaiting-testthis is the initial status of pull requests. If you're performing the pull request, please place this status on it. Pull requests are accepted if and only if all status checks pass, review is performed, and the pull request has been tested and containsstatus: verified.status: in-testplace this status once you pick up the pull request for testing.status: verifiedplace this status once you've tested the pull request, have verified that the issue is fixed, and have included all necessary automated tests for the issue.status: not-fixedplace this status once you've tested the pull request and you are still able to reproduce the issue it's attempting to fix. Then assign the developer back on the pull request.
Example status workflows:
status: awaiting-test => status: in-test => status: verified (PR can be merged if all prerequisites are met)
status: awaiting-test => status: in-test => status: not-fixed => status: in-development => status: awaiting-test
Note: When you are assigned to test a PR related to new topic creation or updating an existing one:
- Check the build result.
- Be sure that
Writing an articleguidance is respected. - Check whether the embed sample is working.
- Code views are working as well
- Each hyperlink is working properly.
- Table of content is correct.
npm run check:llms-metadatapasses and thellms.descriptionaccurately distinguishes the topic.
Note: Testing a PR from Angular Samples (when new sample is added) with combination of PR related to topic update (or when new topic is added). Open both repositories and perform
npm start. This will start both projects and you will see the embed sample in your topic underlocalhost.
Localization is handled by an agentic workflow (AW) that triggers automatically after a PR is merged. A follow-up localization PR is opened and must be reviewed by native speakers or localization specialists. The original PR author is responsible for monitoring that PR and responding to any questions or requests for clarification from the localization reviewer.
- Depending on where the bug/change/feature was found/is planned
the current versionor theongoing release version, checkout a development branches fromvnextor/andmasterbranch.vnextis the version that is going to be used upon release (next version), andmasteris the branch with the current state (current version available on production). If the change/fix is applicable only to the ongoing release branch (vnext) there is no need to cherry-pick tomasterbranch as the change/fix/feature will be pushed tomasterbranch upon release. - Run lint
- Pull request your changes and reference the issue. Use the enforced commit message format with applicable type, scope, etc.
- Don't forget to make the necessary status updates, as described in the workflow section.
Note: Cherry-pick to
masterbranch only bug fixes with high or critical severity. There is no need to cherry-pick intomasterevery bug fix/change fromvnext. A regular mass merge PRs are going to be made fromvnextintomaster.
Example workflow for a bug with high or critical severity The process will look like this:
- Checkout new branch from
vnext. For code example purposes let's say the new branch is calledfixing-bug-5423-vnext. - Commit your changes to your
fixing-bug-5423-vnextbranch. - Push and PR to the
vnextbranch. - Switch to the
masterbranch. - Create a new branch from
master. For code example purposes let's say the new branch is calledfixing-bug-5423-master. - Cherry pick your commit from the
fixing-bug-5423-vnextbranch:git cherry-pick fixing-bug-5423-master - Push to your
fixing-bug-5423-masterbranch and PR to themasterbranch.
MDX topics use curly-brace template tokens that are resolved per-platform at build time. The token values are defined in docs/xplat/docConfig.json under each platform key (Angular, React, WebComponents, Blazor).
Common tokens used in MDX files:
| Token | Example resolved value (Angular) |
|---|---|
{Platform} |
Angular |
{ProductName} |
Ignite UI for Angular |
{IgPrefix} |
Igx |
{PackageCore} |
igniteui-angular-core |
{PackageGrids} |
igniteui-angular |
{PackageCharts} |
igniteui-angular-charts |
{PackageGauges} |
igniteui-angular-gauges |
{PackageDockManager} |
igniteui-dockmanager |
{ComponentName} |
Replaced with the per-platform component name in shared templates |
Use these tokens in MDX prose and code blocks so that a single source file produces correct output for all four platforms:
## {Platform} Grid Example
Install the required packages:
```cmd
npm install {PackageGrids}
npm install {PackageCore}
To add or modify token values, edit `docs/xplat/docConfig.json`.
# <a name='#code-view-configuration'>Sample / Code View Configuration</a>
To embed a live sample in an MDX topic, use the `<Sample>` component from `igniteui-astro-components`. It renders an interactive iframe with optional StackBlitz/CodeSandbox launch buttons.
Import it at the top of the MDX file alongside other imports:
```mdx
import Sample from 'igniteui-astro-components/components/mdx/Sample.astro';
Usage:
<Sample src="/grids/grid/overview" height={600} alt="{Platform} Grid Overview Example" />| Attribute | Required | Default | Notes |
|---|---|---|---|
src |
yes | — | Path to the sample, relative to the resolved base URL. DV paths (charts/, gauges/, maps/, excel/) automatically use dvDemosBaseUrl. |
height |
no | 400 |
Height of the sample widget in pixels (numeric JSX expression, e.g. {600}). |
alt |
no | "" |
Accessible label for the iframe. Use the {Platform} token so it resolves per-platform. |
lob |
no | false |
Use lobDemosBaseUrl as the base URL (for LOB / grid-dynamic demos). |
dv |
no | false |
Force dvDemosBaseUrl for samples whose path does not start with a recognized DV prefix. |
crm |
no | false |
Use crmDemoBaseUrl (for CRM demo samples). |
iframeOnly |
no | false |
Render only the iframe — hides the navbar, code tabs, and live-edit footer. |
fullscreenBtn |
no | false |
When used together with iframeOnly={true}, adds an "Open in full screen" button below the iframe. |
Note:
heightdefaults to400pxwhen omitted. Always set it explicitly so the sample area is properly sized for the content.
Example within a topic:
## {Platform} Grid Example
<Sample src="/grids/grid/overview" height={600} alt="{Platform} Grid Overview Example" />MDX topics in docs/xplat/src/content/ are shared across all four platforms. Use <PlatformBlock> to gate content that should only appear on specific platforms.
Import at the top of the MDX file:
import PlatformBlock from 'igniteui-astro-components/components/mdx/PlatformBlock.astro';Syntax:
<PlatformBlock for="Angular">
```ts
// Angular-specific code
import { IgxGridModule } from 'igniteui-angular';Multiple platforms in one block:
<PlatformBlock for="Angular, WebComponents">
content visible on Angular and WebComponents only
</PlatformBlock>Valid platform names (exact casing): Angular, React, WebComponents, Blazor.
Note: Content that is identical across all platforms should be left unwrapped. Only platform-specific code snippets, notes, or prose must be wrapped.
Use <ApiLink> to link inline text and the API References section to platform-specific API documentation. A single tag resolves through the generated registry at build time.
Import at the top of the MDX file:
import ApiLink from 'igniteui-astro-components/components/mdx/ApiLink.astro';The canonical ApiLink skill owns markup, disambiguation, and platform-specific authoring rules.
For xplat topics, the generator uses mentionedTypes frontmatter to populate the API reference grid. The frontmatter skill owns guidance for that field.
The root check-mdx-links scripts validate registry resolution and URL reachability. API-LINK-WORKFLOW.md lists the platform commands, generation prerequisites, and report formats.
The runtime component and checker read registry snapshots under src/data/api-link-index/. See API-LINK-WORKFLOW.md for repository ownership, the registry contract, package mappings, and ambiguity reporting.
The xplat documentation uses a single MDX source file shared across all four platforms (Angular, React, WebComponents, Blazor). Platform-specific content is gated with <PlatformBlock> and platform-specific tokens ({Platform}, {ComponentName}, {IgPrefix}, etc.) are resolved at build time from docConfig.json.
When creating a shared topic that covers multiple grid types (e.g. Grid, TreeGrid, HierarchicalGrid), use the {ComponentName} token in prose and code examples so the same file can be referenced from each grid's navigation entry with a different {ComponentName} value injected. Each generated output file gets its own resolved content without duplicating the MDX source.
Files under docs/xplat/src/content/*/components/grids/_shared/ are template sources expanded by docs/xplat/scripts/generate.mjs into per-grid-type output under docs/xplat/generated/. They are excluded from the direct relative-link check; their links are validated via the generated output after the generate step runs.
Cross-references from a _shared/ file to grid-specific topics must use relative paths that resolve from the generated location, e.g. ../grid/groupby.mdx (not ./groupby.mdx, which would resolve from the _shared/ directory itself).
All cross-page links must carry the .mdx extension. Both explicit (./page.mdx, ../dir/page.mdx) and bare (page.mdx) forms are accepted by the checker and by the remarkMdLinks build plugin. Run npm run check-relative-links:ci to validate all links after making changes.
The cross-platform (xplat) documentation MDX source files live in this repository under docs/xplat/src/content/. Edit them directly here. The generated per-platform output is produced by the build scripts under docs/xplat/scripts/.
For Angular, the xplat output is compiled to docs/xplat/generated/Angular/{en,jp}/components/ by xplat:generate, which runs before every angular:dev/angular:build. The Angular site then reads that directory in place, as a second content root overlaid on docs/angular/src/content/{lang}/components/. Nothing is copied between the two trees, so the tracked Angular content never accumulates build output.
Both roots share one slug namespace — <root>/charts/types/area-chart.mdx is the page /charts/types/area-chart whichever root it came from — and xplat always wins: if a slug exists in both, the generated topic is served and the Angular file is ignored entirely. grids/ and changelog/ are excluded from the overlay and stay Angular-owned, as does toc.json, which drives the sidebar for both roots.
Two consequences worth knowing:
- Editing one of these topics under
docs/angular/has no effect — editdocs/xplat/src/content/instead. Adding a new cross-platform topic needs no.gitignorechange; it simply appears from the xplat root. - A committed Angular topic that xplat also provides is dead weight: it is shadowed and never served, which almost always means the topic was moved to xplat without deleting the Angular copy.
node docs/angular/scripts/clean-synced.mjsreports these (and deletes untracked leftovers from the old copy step with--apply).
Images in MDX topics use the Astro <Image> component for automatic optimization and lazy loading. Images must be placed in the docs/xplat/public/images/ or docs/angular/public/images folder (depending on the platform) and imported at the top of the MDX file.
Import pattern:
import { Image } from 'astro:assets';
import myImage from '@xplat-images/general/my-image.png';Usage:
<Image src={myImage} alt="Description of the image" />- Use the
@xplat-imagesalias which resolves todocs/xplat/public/images/. - Always provide a meaningful
altattribute. - Use
{Platform}in thealttext when the image is platform-generic (e.g.alt="{Platform} Grid Overview"). - Responsive sizing and lazy loading are handled automatically by Astro — no extra classes or
data-srcsetattributes are needed.