This repo is the central hub repository for Firefly Services API documentation. Each Firefly Services API has its own repository, which is a spoke repository to this monorepo.
For information on how to contribute and collaborate on the docs, see the CONTRIBUTING.md.
For local development, you'll need Yarn:
$ yarn installThen to develop locally, run:
$ yarn clean
$ yarn devFor the developer documentation, read the following sections on how to:
- Arrange the structure content of your docs
- Link to pages
- Use assets
- Set global Navigation
- Set side navigation
- Use content blocks
- Use Markdown
Or review the README on GitHub for complete details about the microsite theme.
Lint status checks run on all PRs before merging.
Configured linters can also run locally (requires Docker):
yarn lintNOTE If you cannot use Docker, you can install the linters separately. In
.github/super-linter.env, see which linters are enabled, and find the tools being used for linting in Supported Linters.
To check internal links locally:
yarn test:linksTo build and preview locally:
yarn startUse the hubrules CLI to borrow Cursor rules from this central hub repo into any spoke repo. It clones the hub into .hub-rules and symlinks rules into .cursor/rules.
From this repo:
$ yarn install
$ yarn hubrules --helpOr link globally (recommended):
$ npm link
$ hubrules --helpInitialize a spoke repo with a link to this central hub repo (required once per repo):
$ hubrules init --hub-url <git-url> [--branch main] [--path .hub-rules] [--force]Example to the Firefly Services hub:
$ hubrules init --hub-url https://github.com/AdobeDocs/ff-services-docs.git --branch main --path .hub-rules --forceList available hub rules:
$ hubrules listUse a hub rule (creates a symlink in .cursor/rules to the agent's rule file). Using the --all flag creates symlinks for all agent rules in the hub (opt-in bulk link):
$ hubrules use <agent-name> [--force] [--all]Remove a borrowed rule:
$ hubrules remove <agent-name> [--force]Remove all borrowed rules (opt-in bulk remove):
$ hubrules remove --all [--force]Show current borrowed rules:
$ hubrules status- The config file
.hub-rules.jsonis created in the spoke repo root. useaccepts names with or without the.mdcsuffix.- Existing non‑symlink or different symlink → error unless --force.
--forceoverwrites existing rule files.
Deployments are done by the FFS docs development team. Reach out to schedule content deployments to stage and production.