Commit cce2bd7
gitattributes: Restore rST syntax highlighting for upgrade notes
The upgrade notes fragments cannot carry an `.rst` extension: Sphinx would
then build them as standalone documents and fail on duplicate labels with
the file that '.. include::'s them. This PR manually configures their
Linguist language via `.gitattributes` which GitHub uses for syntax
highlighting. This allows both keeping the current file names and
restoring syntax highlighting.
While at it, I also marked `vendor/modules.txt` as generated so that it
gets collapsed like `go.sum` in PR diffs.
Fixes: cilium#47218
Signed-off-by: Hadrien Patte <hadrien.patte@datadoghq.com>1 parent 7f6c983 commit cce2bd7
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| 23 | + | |
| 24 | + | |
22 | 25 | | |
23 | 26 | | |
24 | 27 | | |
| |||
0 commit comments