You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/syntax/links.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,10 +15,12 @@ It has two components:
15
15
16
16
### Internal links
17
17
18
-
Link to other documentation pages using the file’s relative or absolute path. Optionally append an anchor to send readers to a specific section on a page. Never use a full URL for links between documentation pages.
18
+
Link to other documentation pages in the same repository using the file’s relative or absolute path. Optionally append an anchor to send readers to a specific section on a page. Never use a full URL for links between documentation pages.
19
19
20
20
#### Relative paths
21
21
22
+
Use relative paths to link to other pages inside the same repository.
23
+
22
24
```markdown
23
25
[Security docs](../security/index.md)
24
26
@@ -27,6 +29,8 @@ Link to other documentation pages using the file’s relative or absolute path.
27
29
28
30
#### Absolute paths
29
31
32
+
Use absolute paths to link to other pages inside the same repository.
33
+
30
34
```markdown
31
35
[API keys](/deploy-manage/api-keys.md)
32
36
@@ -88,6 +92,8 @@ The syntax follows the format `<scheme>://<path>`, where:
88
92
The `path` in cross-repo links must be relative to the `docset.yml` file and not the full path within the repo
89
93
:::
90
94
95
+
Never use a full URL for links across documentation repositories.
96
+
91
97
### External links
92
98
93
99
Link to websites and resources outside the Elastic docs:
0 commit comments