Skip to content

Commit

Permalink
Add .gitattributes and Fix EOLs
Browse files Browse the repository at this point in the history
Add .gitattributes file to manually control Git settings for text and binary files, and set how EOL should be handled on a per-file basis. Also set GitHub Linguist custom declarations for pandoc templates and Highlight extensions.

Fix EOLs in all files accordingly.
  • Loading branch information
tajmone committed Nov 20, 2017
1 parent cf71ef3 commit af492fc
Show file tree
Hide file tree
Showing 41 changed files with 3,892 additions and 3,758 deletions.
134 changes: 134 additions & 0 deletions .gitattributes
@@ -0,0 +1,134 @@
# ==============================================================================
# Line Endings Conversion
# ==============================================================================
# Set Git's default behaviour to text-files autodetection, in case users don't
# have `core.autocrlf` set:
* text=auto

# ------------------------------------------------------------------------------
# Text Files (EOL Normalization Settings)
# ------------------------------------------------------------------------------

## =================
## SOURCE CODE FILES
## =================

## PP Macros
## ---------
*.pp text

## Pandoc Templates
## ----------------
*.html5 text

## Shell scripts
## -------------
*.bat text eol=crlf
*.com text eol=crlf
*.sh text eol=lf

## Scripts
## -------
*.lua text
*.php text
*.pl text
*.py text
*.rb text
*.tcl text

## ==================
## MISC. DATA FORMATS
## ==================
*.json text
*.xml text
*.xhtml text

## ===========================
## HIGHLIGHT LANGDEFS & THEMES
## ===========================
*.lang text
*.theme text

# =================
## WEB-RELATED FILES
## =================
*.htm text
*.html text
*.css text
*.js text
*.sass text
*.scss text

## ===================
## DOCUMENTATION FILES
## ===================
*.txt text
*COPYRIGHT* text
*README* text
AUTHORS text
CHANGELOG text
CHANGES text
CONTRIBUTING text
COPYING text
copyright text
INSTALL text
license text
LICENSE text
NEWS text
readme text
TODO text

## ===================
## CONFIGURATION FILES
## ===================

## Git settings
## ----------
.gitattributes text
.gitconfig text
.gitignore text

# ------------------------------------------------------------------------------
# Binary Files
# ------------------------------------------------------------------------------
# Explicitly declare all files that are binary and shouldn't be modified by Git:

## ========
## GRAPHICS
## ========
*.bmp binary
*.gif binary
*.icns binary
*.ico binary
*.jpeg binary
*.jpg binary
*.png binary

## ========
## ARCHIVES
## ========
*.7z binary
*.gz binary
*.jar binary
*.rar binary
*.tar binary
*.zip binary

# ==============================================================================
# GitHub Linguist
# ==============================================================================
# -- https://github.com/github/linguist
# Manually define/override some extension so that GitHub's Linguist library can
# 1) correctly gather statistics on source files, and
# 2) use proper syntax highlighting on GitHub's WebUI.

## ================
## PANDOC TEMPLATES
## ================
*.html5 linguist-language=HTML

## ===========================
## HIGHLIGHT LANGDEFS & THEMES
## ===========================
*.lang linguist-language=Lua
*.theme linguist-language=Lua
152 changes: 76 additions & 76 deletions .gitignore
@@ -1,77 +1,77 @@
# ==============================================================================
# PANDOC-GOODIES
# ==============================================================================
# .gitignore definitions file for the pandoc-goodies project:
# -- https://github.com/tajmone/pandoc-goodies
# ------------------------------------------------------------------------------

# ==============================================================================
# Node.js
# ==============================================================================
# Some build/batch/bash files require Node apps; some users might rather install
# them locally to the project instead of globally.
# ------------------------------------------------------------------------------
# Created by https://www.gitignore.io/api/node

### Node ###
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Typescript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env


# ==============================================================================
# PANDOC-GOODIES
# ==============================================================================
# .gitignore definitions file for the pandoc-goodies project:
# -- https://github.com/tajmone/pandoc-goodies
# ------------------------------------------------------------------------------

# ==============================================================================
# Node.js
# ==============================================================================
# Some build/batch/bash files require Node apps; some users might rather install
# them locally to the project instead of globally.
# ------------------------------------------------------------------------------
# Created by https://www.gitignore.io/api/node

### Node ###
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Typescript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env


# End of https://www.gitignore.io/api/node

0 comments on commit af492fc

Please sign in to comment.