How adobedocs/marketo-apis works
1. This repository is a content-driven documentation site for Adobe Developer Platform docs, not an application backend. The main product is published documentation with API reference material and a few top-level informational pages.
2. The primary source of truth is Markdown in src/pages. The site’s visible pages are organized as content files rather than app code, which means the architecture is centered on authored documentation and site generation.
3. There is a clear API-doc boundary under src/pages/api, with separate Markdown pages for asset, identity, mapi, and user. These appear to act as entry points or wrappers for API reference sections within the site.
4. API schema content is stored separately in static/swagger-*.json files. These likely feed rendered Swagger/OpenAPI documentation for each product area, keeping machine-readable API specs isolated from the human-authored Markdown pages.
5. src/pages/index.md and src/pages/config.md represent non-API site pages, likely for landing content and site configuration/help content. Together with the API pages, they show a content hierarchy split between general docs and product-specific API docs.
6. static/ is the asset boundary for files served directly by the site build. In addition to the Swagger JSON, this is where any unprocessed static resources would live, making it the publishable asset layer of the repository.
7. redirects.json is part of the navigation/routing architecture. It suggests the site has URL compatibility requirements and needs managed redirects, which is common for documentation sites that evolve over time while preserving old links.
8. dev.mjs and package.json indicate a Node-based build/dev workflow. The repo likely uses a static-site generation toolchain, with dev.mjs providing local development orchestration around the Markdown content and static assets.
9. CI/CD is handled through GitHub Actions in .github/workflows. lint.yml enforces content/style checks, stage.yml publishes or previews a staging build, and deploy.yml handles production publication. This means the repo has a clear promotion path from authoring to staged review to deployment.
10. The operational boundary is governed through repo metadata rather than runtime services: .env.example for local configuration, plus contribution/issue templates and linting config under .github. That points to a documentation publishing pipeline with strong editorial workflow, rather than a service with live runtime dependencies.
11. If you’re drawing the architecture, the simplest accurate flow is: authors edit Markdown and Swagger JSON → build tooling in Node processes the content → generated site artifacts and static assets are deployed via GitHub Actions → the published documentation site serves pages, API reference content, and redirects.
Main entry points: dev.mjs Dev runner · package.json Package · stage.yml Stage · deploy.yml Deploy
Components 20
Content
Markdown pages that define the published documentation structure.
- Home · Top-level landing page for the documentation site.
src/pages/index.md - Config · Site information/help page under the main docs content.
src/pages/config.md - Asset API · Markdown entry point for the Asset API docs section.
src/pages/api/asset.md - Identity API · Markdown entry point for the Identity API docs section.
src/pages/api/identity.md - MAPI · Markdown entry point for the MAPI docs section.
src/pages/api/mapi.md - User API · Markdown entry point for the User API docs section.
src/pages/api/user.md
API Specs
Machine-readable OpenAPI/Swagger sources for API reference content.
- asset spec · Swagger/OpenAPI source for the Asset API.
static/swagger-asset.json - identity spec · Swagger/OpenAPI source for the Identity API.
static/swagger-identity.json - mapi spec · Swagger/OpenAPI source for the MAPI API.
static/swagger-mapi.json - user spec · Swagger/OpenAPI source for the User API.
static/swagger-user.json
Build & Delivery
Local tooling, package configuration, redirects, and GitHub Actions publication flow.
- Dev runner · Local build/development orchestration for the docs site.
dev.mjs - Package · Project dependency and script definition for the documentation toolchain.
package.json - Redirects · Managed URL redirect rules for documentation continuity.
redirects.json - Lint · Workflow that validates content and repository standards.
.github/workflows/lint.yml - Stage · Workflow that builds or previews staged documentation.
.github/workflows/stage.yml - Deploy · Workflow that publishes the documentation site to production.
.github/workflows/deploy.yml - Published site · Deployed documentation site served to readers.
Governance
Contribution and repo workflow metadata for maintainers and editors.
- Contributing · Contributor guidance for authors and maintainers.
.github/CONTRIBUTING.md - PR template · Pull request structure for editorial and release workflow.
.github/PULL_REQUEST_TEMPLATE.md - Env example · Local configuration template for development and build runs.
.env.example
Connections 26
- Home → Dev runner: content · Landing content is consumed by the site build.
- Config → Dev runner: content · Informational pages are part of the docs build input.
- Asset API → asset spec: references · API page is paired with the Asset Swagger source.
- Identity API → identity spec: references · API page is paired with the Identity Swagger source.
- MAPI → mapi spec: references · API page is paired with the MAPI Swagger source.
- User API → user spec: references · API page is paired with the User Swagger source.
- Asset API → Dev runner: content · API docs are processed by the build runner.
- Identity API → Dev runner: content · API docs are processed by the build runner.
- MAPI → Dev runner: content · API docs are processed by the build runner.
- User API → Dev runner: content · API docs are processed by the build runner.
- asset spec → Dev runner: spec input · Swagger assets feed documentation generation.
- identity spec → Dev runner: spec input · Swagger assets feed documentation generation.
- mapi spec → Dev runner: spec input · Swagger assets feed documentation generation.
- user spec → Dev runner: spec input · Swagger assets feed documentation generation.
- Dev runner → Package: scripts · Local orchestration relies on package-defined toolchain entrypoints.
- Package → Lint: run · Workflow uses package scripts and dependencies for validation.
- Package → Stage: run · Workflow uses package scripts and dependencies for staging builds.
- Package → Deploy: run · Workflow uses package scripts and dependencies for production deployment.
- Redirects → Published site: routes · Redirect rules shape the published documentation URLs.
- Stage → Published site: preview · Stage workflow publishes a previewable site artifact.
- Deploy → Published site: publish · Deploy workflow promotes the documentation site to production.
- Contributing → Lint: policy · Contributor guidance supports validation and review flow.
- PR template → Deploy: release flow · PR process feeds the review-to-release pipeline.
- Env example → Dev runner: local config · Environment template supports local development orchestration.
- Lint → Stage: gates · Validation precedes staging publication.
- Stage → Deploy: promotes · Staging is the promotion path to deployment.