Skip to content

Commit 08420ca

Browse files
Oberon00arminru
andauthored
Add .gitattributes & normalize line endings (#1230)
Co-authored-by: Armin Ruech <armin.ruech@dynatrace.com>
1 parent 3df4ec4 commit 08420ca

File tree

3 files changed

+21
-17
lines changed

3 files changed

+21
-17
lines changed

.gitattributes

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
* text=auto eol=lf
2+
3+
*.cmd text eol=crlf
4+
*.bat text eol=crlf

docfx.cmd

+15-15
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
SETLOCAL
2-
SETLOCAL ENABLEEXTENSIONS
3-
4-
docfx.exe build docfx.json > docfx.log
5-
@IF NOT %ERRORLEVEL% == 0 (
6-
type docfx.log
7-
ECHO Error: docfx build failed. 1>&2
8-
EXIT /B %ERRORLEVEL%
9-
)
10-
@type docfx.log
11-
@type docfx.log | findstr /C:"Build succeeded."
12-
@IF NOT %ERRORLEVEL% == 0 (
13-
ECHO Error: you have introduced build warnings. 1>&2
14-
EXIT /B %ERRORLEVEL%
15-
)
1+
SETLOCAL
2+
SETLOCAL ENABLEEXTENSIONS
3+
4+
docfx.exe build docfx.json > docfx.log
5+
@IF NOT %ERRORLEVEL% == 0 (
6+
type docfx.log
7+
ECHO Error: docfx build failed. 1>&2
8+
EXIT /B %ERRORLEVEL%
9+
)
10+
@type docfx.log
11+
@type docfx.log | findstr /C:"Build succeeded."
12+
@IF NOT %ERRORLEVEL% == 0 (
13+
ECHO Error: you have introduced build warnings. 1>&2
14+
EXIT /B %ERRORLEVEL%
15+
)

toc.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
- name: OpenTelemetry Specification
2-
href: ./README.md
1+
- name: OpenTelemetry Specification
2+
href: ./README.md

0 commit comments

Comments
 (0)