This repository contains the code for the Merchandising Services documentation website. It is built using Adobe Edge Delivery Services and deployed to Adobe Developer.
The site covers APIs and tools for managing and using commerce catalog and event data programmatically, including the Data Ingestion API, Merchandising API, Storefront Events SDK, Product Recommendations SDK, and Commerce Reporting API.
For local development, you need to start three servers:
-
Content server (this repo):
npm run dev
-
Code server (adp-devsite):
git clone https://github.com/AdobeDocs/adp-devsite cd adp-devsite npm install npm run dev -
Runtime connector (devsite-runtime-connector):
git clone https://github.com/aemsites/devsite-runtime-connector cd devsite-runtime-connector npm install npm run dev
Once all three servers are running, navigate to http://localhost:3000/commerce/services.
For common utilities and documentation, see the centralized README.
To lint Markdown files before pushing:
npm run lint:mdTo automatically fix linting errors:
npm run lint:md:fixTo check internal and external links, validate front matter, and more:
npm run lintTo validate the table of contents file:
npm run test:configThe Merchandising GraphQL API reference is generated using SpectaQL. It introspects the live schema, injects custom descriptions from a metadata overlay, and filters the output to include only the queries and types supported by Adobe Commerce Optimizer.
The generated Markdown fragment is written to src/pages/_includes/merchandising-api.md and included in src/pages/reference/graphql/index.md via <Fragment>.
-
Create a
.envfile in the project root and set the required variables:Variable Description TENANT_IDYour Adobe Commerce tenant ID API_HOSTGraphQL API hostname CATALOG_VIEW_IDCatalog view ID for the AC-View-Idheader -
Run the generator:
npm run generate:merchandising-api-docs
See spectaql/README.md for full configuration and script documentation.