marketing_cloud_docs Repo
This repository contains the source files for generating the Marketing Cloud documentation published on developer.salesforce.com/docs.
For help with using the SFDocs framework, see SFDocs Help.
Contacts
Admins:
Folder/File structure
See Understand the Repo Structure in SFDocs Help.
`
Build the Docs Locally
-
Clone this repo.
-
Install volta, node, and yarn.
curl https://get.volta.sh | bash
volta install node
volta install yarn
-
Set up the project.
yarn setup
-
Validate files.
yarn validate
This command:
- checks for broken links (missing images and missing external links)
- runs linting
- verifies content-config.yaml
-
Preview the project in a localhost.
yarn start
To reload the preview as you edit files, run the command with the --live
flag.
yarn start --live
Browse to http://localhost:3000.
Remote Builds and Preview Apps
When you send a pull request to any of the protected branches(for example, main
), if the build is successful, Heroku creates a preview environment and posts a link on the GitHub PR.