forked from kitian616/jekyll-TeXt-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
128 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,4 @@ | ||
{ | ||
"editor.tabSize": 2, | ||
"beautify.config": { | ||
"indent_size": 2 | ||
}, | ||
"files.associations": { | ||
"*.html": "jekyll" | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
FROM ruby:2.6 | ||
|
||
# Set default locale for the environment | ||
ENV LC_ALL C.UTF-8 | ||
ENV LANG en_US.UTF-8 | ||
ENV LANGUAGE en_US.UTF-8 | ||
|
||
# throw errors if Gemfile has been modified since Gemfile.lock | ||
RUN bundle config --global frozen 1 | ||
|
||
WORKDIR /usr/src/app | ||
|
||
COPY Gemfile Gemfile.lock jekyll-text-theme.gemspec ./ | ||
RUN bundle install | ||
|
||
EXPOSE 4000 | ||
|
||
CMD ["bundle", "exec", "jekyll", "help"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
source "https://rubygems.org" | ||
|
||
gem "github-pages", group: :jekyll_plugins | ||
|
||
gem "tzinfo-data" | ||
gem "wdm", "~> 0.1.0" if Gem.win_platform? | ||
# gem "github-pages", group: :jekyll_plugins | ||
gemspec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
--- | ||
# Only the main Sass file needs front matter (the dashes are enough) | ||
--- | ||
@charset "utf-8"; | ||
|
||
|
||
@import | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
version: "3.5" | ||
|
||
services: | ||
jekyll-text-theme_dev: | ||
build: | ||
context: ../ | ||
dockerfile: Dockerfile.dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
version: "3.5" | ||
|
||
services: | ||
jekyll-text-theme_dev: | ||
image: docker_jekyll-text-theme_dev | ||
environment: | ||
- JEKYLL_ENV | ||
ports: | ||
- 4000:4000 | ||
container_name: jekyll-TeXt-theme_default | ||
volumes: | ||
- ..:/usr/src/app | ||
stdin_open: true | ||
tty: true | ||
command: bundle exec jekyll serve -H 0.0.0.0 -t |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
version: "3.5" | ||
|
||
services: | ||
jekyll-text-theme_dev: | ||
image: docker_jekyll-text-theme_dev | ||
environment: | ||
- JEKYLL_ENV | ||
ports: | ||
- 4000:4000 | ||
container_name: jekyll-TeXt-theme_demo | ||
volumes: | ||
- ..:/usr/src/app | ||
stdin_open: true | ||
tty: true | ||
command: bundle exec jekyll serve -H 0.0.0.0 -t --config ./docs/_config.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
version: "3.5" | ||
|
||
services: | ||
jekyll-text-theme_dev: | ||
image: docker_jekyll-text-theme_dev | ||
environment: | ||
- JEKYLL_ENV | ||
ports: | ||
- 4000:4000 | ||
container_name: jekyll-TeXt-theme_dev | ||
volumes: | ||
- ..:/usr/src/app | ||
stdin_open: true | ||
tty: true | ||
command: bundle exec jekyll serve -H 0.0.0.0 -t --config ./docs/_config.dev.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
version: "3.5" | ||
|
||
services: | ||
jekyll-text-theme_build: | ||
image: docker_jekyll-text-theme_dev | ||
environment: | ||
- JEKYLL_ENV | ||
ports: | ||
- 4000:4000 | ||
container_name: jekyll-text-theme_build | ||
volumes: | ||
- ..:/usr/src/app | ||
command: bundle exec jekyll build | ||
jekyll-text-theme_web: | ||
image: nginx | ||
ports: | ||
- 80:80 | ||
- 443:443 | ||
container_name: jekyll-text-theme_web | ||
restart: unless-stopped | ||
volumes: | ||
- ../_site:/usr/share/nginx/html:ro | ||
- ./nginx.conf:/etc/nginx/conf.d/default.conf | ||
depends_on: | ||
- jekyll-text-theme_build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
server { | ||
# gzip config | ||
gzip on; | ||
gzip_min_length 1k; | ||
gzip_comp_level 9; | ||
gzip_types text/plain text/css text/javascript application/json application/javascript application/x-javascript application/xml; | ||
gzip_vary on; | ||
|
||
root /usr/share/nginx/html; | ||
|
||
index index.html; | ||
|
||
location / { | ||
try_files $uri $uri/ =404; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters