Ensure documentation that uses Liquid/templating renders correctly across all supported doc versions and doesn’t break code samples.
Apply these rules when authoring or updating docs:
ifversion/product variables so text and tables match the target platform(s) (for example, FPT vs GHEC), instead of hardcoding one variant.${{ ... }} content in ....Example (escaping ${{ ... }} in a workflow YAML code block):
```yaml
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
```
This reduces broken previews/builds, avoids inconsistent multi-version content, and prevents readers from seeing incorrect or truncated code samples.