content/terraform-enterprise/. The content API uses the terraform product slug.
Content directory
Terraform Enterprise uses a date-based versioning scheme in the formatv<YYYYMM>-<patch> rather than standard semver. For example:
1.0.x/, 1.1.x/, 1.2.x/) for legacy content, plus a releases/ and scripts/ directory.
Each monthly version directory follows this structure:
URL base paths
Terraform Enterprise content is served under the/enterprise/ URL base path.
Versioning details
Because TFE uses date-based versions rather than semver, thesemverCoerce function in productConfig.mjs converts the date-based string to semver purely for sorting purposes:
Shared cloud documentation
A subset of documentation fromcontent/terraform-docs-common/ is automatically copied into content/terraform-enterprise/ via the copy-docs workflow. When editing documentation that may be shared between HCP Terraform and Terraform Enterprise, check whether the source file lives in terraform-docs-common/ rather than directly in terraform-enterprise/.
Exclusion directives
Terraform Enterprise supports exclusion directives (supportsExclusionDirectives: true). Certain pages can be excluded from the content output using special annotations. Preserve any existing exclusion directives when editing content.
Finding and editing Terraform Enterprise docs
Find the version directory
Identify the release you want to edit. Releases use the
v<YYYYMM>-<patch> format:Check for shared content
If you cannot find the file in the version directory, check whether it originates from
content/terraform-docs-common/docs/.Product configuration reference
| Attribute | Value |
|---|---|
productSlug | terraform |
contentDir | docs (in source repo) |
websiteDir | website (in source repo) |
dataDir | data |
assetDir | img |
basePaths | enterprise |
versionedDocs | true |
supportsExclusionDirectives | true |