Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Run dos2unix on posts
  • Loading branch information
NateShoffner committed Feb 21, 2021
1 parent d3fad04 commit 3894ab2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitattributes
@@ -0,0 +1 @@
* text=auto
4 changes: 4 additions & 0 deletions Dockerfile
Expand Up @@ -7,6 +7,7 @@ RUN gem install sass

# install pip/yarn
COPY requirements.txt ./requirements.txt
RUN apk add dos2unix --update-cache --repository http://dl-3.alpinelinux.org/alpine/edge/community/ --allow-untrusted
RUN apk add --no-cache python3 py3-pip yarn
RUN python3 --version
RUN pip3 install -r requirements.txt
Expand Down Expand Up @@ -35,6 +36,9 @@ COPY _config.yml 404.html favicon.ico feed.xml index.html ./
COPY _posts/ ./_posts/
COPY _data/ ./_data/

# convert any windows line-endings to unix
RUN find ./_posts/ -type f -print0 | xargs -0 dos2unix

# generate meta and slugs
RUN python3 ./_extra/generate_post_meta.py
RUN python3 ./_extra/generate_project_pages.py
Expand Down
1 change: 0 additions & 1 deletion _config.yml
Expand Up @@ -26,4 +26,3 @@ mustache_set_delimiter: "{{={u{ }u}=}}"
recaptcha_site_key: 6LeOIlAUAAAAAGRZuMvrOqTch_aPFaV7kmrF68zD
project_path: /projects/:slug
github_commit_path: https://github.com/NateShoffner/nateshoffner.github.io/commit/:id
excerpt_separator: "\r\n\r\n"

0 comments on commit 3894ab2

Please sign in to comment.