-
Notifications
You must be signed in to change notification settings - Fork 11
/
.gitignore
139 lines (108 loc) · 2.93 KB
/
.gitignore
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
########################################################################
#
# Based on DIME .gitignore template. Follow the instructions in the URL
# below to set up this template in your own repository
# https://github.com/worldbank/dime-github-trainings/tree/master/GitHub-resources/DIME-GitHub-Templates
#
# This is GLD GitIgnore version 2.0
#
########################################################################
#######################
# Start by ignoring everything, and below we are explicitly saying
# what to not ignore
*
#######################
# First, whitelist anything that's a directory
!*/
#######################
# List of files with GitHub functionality anywhere in the repo
# that we do not want to ignore
# These files include GitHub settings
!.gitignore
!.gitattributes
# Keep markdown files used for documentation on GitHub
!README.md
!CONTRIBUTING.md
!LICENSE*
!CODE_OF_CONDUCT.md
# Jupyter Book
_build/
#######################
# We only want to publish three kinds of things:
# i) harmonization files in Stata or R (potentially others),
# ii) context information and guides under Support, and
# iii) information for the website under docs
#######################
### Section i) ###
#######################
# For the harmonization files, they should always be from the Programs file, that is under
# CCC_YYYY_Survey/CCC_YYYY_Survey_Version_GLD/Programs. Hence we allow
# Stata
!GLD/*/*/*/Programs/*.do
# R
!GLD/*/*/*/Programs/*.R
#######################
### Section ii) ###
#######################
# For Support context information, allow Markdown, xlsx, csv, and docx, R and Stata code, and Stata files.
!Support/**/*.md
!Support/**/*.xlsx
!Support/**/*.docx
!Support/**/*.R
!Support/**/*.do
!Support/**/*.ado
!Support/**/*.sthlp
!Support/**/*.dta
!Support/**/*.dct
!Support/**/*.csv
!Support/**/*.txt
# Allow also PDF andimages if needed
!/Support/**/*.pdf
!Support/**/*.png
!Support/**/*.svg
# Allow Stata package file
!/Support/**/*.toc
!Support/**/*.pkg
# Allow Python and batch files
!/Support/**/*.bat
!Support/**/*.py
#######################
### Section iii) ###
#######################
# For the website, allow
# Markdown files
!docs/**/*.md
#Files to create custom layout and functionality
# in dashboards, markdown notebooks, bookdown etc.
!docs/**/*.css
!docs/**/*.scss
!docs/**/*.js
# Files for images
!docs/**/*.png
!docs/**/*.svg
# HTML files
!docs/**/*.html
# .yml and .yaml files
# These files sometimes have credentials, so only unignore these lines by removing
# the "#" below after you checked your .yml/.yaml files for sensitive content
!docs/**/*.yml
!docs/**/*.yaml
# docs requirements
!docs/requirements.txt
# Other files for github pages
!docs/**/*.gem
!.bundle
!.ruby-version
!.jekyll-cache
!.sass-cache
!_site
!Gemfile.lock
!node_modules
#######################
### Section iv) ###
#######################
# For the issues form, allow
# Markdown files
!.github/**/*.md
# YAML files
!.github/**/*.yml