Skip to content

Commit

Permalink
Add a .gitattributes file (PlasmaPy#2331)
Browse files Browse the repository at this point in the history
* Add .gitattributes generated by ChatGPT

* Specify that end of line is LF in .editorconfig

* Expand .gitattributes file

* Change line endings from CRLF to LF

* Update .gitattributes

* Update .gitattributes

* More CRLF -> LF for line endings
  • Loading branch information
namurphy authored Sep 9, 2023
1 parent 1cc8dca commit 55aa520
Show file tree
Hide file tree
Showing 5 changed files with 431 additions and 407 deletions.
1 change: 1 addition & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ insert_final_newline = true
indent_style = space
charset = utf-8
trim_trailing_whitespace = true
end_of_line = lf

[*.py]
profile = black
Expand Down
23 changes: 23 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Auto-detect if a file is a text file and set line endings to LF
* text=auto eol=lf

# Mark file types as text files & improve git diff headers
*.bib text diff=bibtex
*.c text diff=cpp
*.cff text
*.css text diff=css
*.html text diff=html
*.json text
*.md text diff=markdown
*.py text diff=python
*.pyx text diff=python
*.rst text
*.yaml text
*.yml text

# Mark file formats that are binary
*.h5 binary
*.hdf5 binary
*.ico binary
*.npy binary
*.png binary
72 changes: 36 additions & 36 deletions docs/make.bat
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
@ECHO OFF

pushd %~dp0

REM Command file for Sphinx documentation

if "%SPHINXBUILD%" == "" (
set SPHINXBUILD=python -msphinx
)
set SOURCEDIR=.
set BUILDDIR=_build
set SPHINXPROJ=PlasmaPy

if "%1" == "" goto help

%SPHINXBUILD% >NUL 2>NUL
if errorlevel 9009 (
echo.
echo.The Sphinx module was not found. Make sure you have Sphinx installed,
echo.then set the SPHINXBUILD environment variable to point to the full
echo.path of the 'sphinx-build' executable. Alternatively you may add the
echo.Sphinx directory to PATH.
echo.
echo.If you don't have Sphinx installed, grab it from
echo.http://sphinx-doc.org/
exit /b 1
)

%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
goto end

:help
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%

:end
popd
@ECHO OFF

pushd %~dp0

REM Command file for Sphinx documentation

if "%SPHINXBUILD%" == "" (
set SPHINXBUILD=python -msphinx
)
set SOURCEDIR=.
set BUILDDIR=_build
set SPHINXPROJ=PlasmaPy

if "%1" == "" goto help

%SPHINXBUILD% >NUL 2>NUL
if errorlevel 9009 (
echo.
echo.The Sphinx module was not found. Make sure you have Sphinx installed,
echo.then set the SPHINXBUILD environment variable to point to the full
echo.path of the 'sphinx-build' executable. Alternatively you may add the
echo.Sphinx directory to PATH.
echo.
echo.If you don't have Sphinx installed, grab it from
echo.http://sphinx-doc.org/
exit /b 1
)

%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
goto end

:help
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%

:end
popd
Loading

0 comments on commit 55aa520

Please sign in to comment.