File: linking_toc.md

package info (click to toggle)
rocm-docs-core 1.22.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,636 kB
  • sloc: python: 1,913; javascript: 152; makefile: 35; cpp: 29
file content (27 lines) | stat: -rw-r--r-- 800 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
---
myst:
    html_meta:
        "description": "Setting up links in the Table of Contents for ROCm documentation"
        "keywords": "Links in TOC, Links in table of content, Documentation TOC, Documentation table of content, Document index, Documentation settings"
---

# Linking in the Table of Contents

## Syntax

Variables of the form `${<variable>}` are substituted, currently the following
list is supported:

- `${branch}` or `{branch}`: the name of the current branch
- `${url}` or `{url}`: GitHub URL of the current project
- `${project:<project_name>}`: base URL of the documentation of `<project_name>`
based on Intersphinx mapping

### Example

```yaml
    - url: "{url}/tree/{branch}"
    - url: ${project:python}
    - url: ${project:rocm-docs-core}
    - url: ${project:hipify}
```