From ebbfebc4f2a801153cd4e1b551b558bbc3219a11 Mon Sep 17 00:00:00 2001 From: Giovanni Condello Date: Sat, 13 Aug 2022 10:33:40 +0200 Subject: Run locally with docker-compose --- Gemfile | 16 +++++++++++----- _config.yml | 1 + _sass/custom/custom.scss | 2 +- docker-compose.yml | 10 ++++++++++ just-the-docs.gemspec | 22 ---------------------- 5 files changed, 23 insertions(+), 28 deletions(-) create mode 100644 docker-compose.yml delete mode 100644 just-the-docs.gemspec diff --git a/Gemfile b/Gemfile index 40b2909..ad0598d 100644 --- a/Gemfile +++ b/Gemfile @@ -1,8 +1,14 @@ source "https://rubygems.org" -gemspec + gem "webrick" -gem "jekyll-last-modified-at" -gem "jekyll-redirect-from" -gem "jekyll-webp" -gem "jekyll-remote-theme" \ No newline at end of file +gem "rake" + +group :jekyll_plugins do + gem "jekyll-last-modified-at" + gem "jekyll-redirect-from" + gem "jekyll-webp" + gem "jekyll-remote-theme" + gem "jekyll-seo-tag" + gem 'jekyll-default-layout' +end \ No newline at end of file diff --git a/_config.yml b/_config.yml index 59e67bb..7f3fafd 100644 --- a/_config.yml +++ b/_config.yml @@ -31,6 +31,7 @@ plugins: - jekyll-seo-tag - jekyll-last-modified-at - jekyll-redirect-from + - jekyll-default-layout color_scheme: "light" url: "https://hack-gpon.github.io/" diff --git a/_sass/custom/custom.scss b/_sass/custom/custom.scss index 2bd7696..019554d 100644 --- a/_sass/custom/custom.scss +++ b/_sass/custom/custom.scss @@ -80,7 +80,7 @@ ul.metadata { border: $border $border-color; position: relative; background-color: $body-background-color; - width: min(500px, calc(100vw - 40px)); + width: 500px; padding: 0; margin: 40px auto; animation-name: animatetop; diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..8d23d0d --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,10 @@ +version: "3" + +services: + site: + command: jekyll serve --verbose --incremental --force_polling + image: jekyll/jekyll:latest + volumes: + - .:/srv/jekyll + ports: + - 4000:4000 diff --git a/just-the-docs.gemspec b/just-the-docs.gemspec deleted file mode 100644 index 5b1fb52..0000000 --- a/just-the-docs.gemspec +++ /dev/null @@ -1,22 +0,0 @@ -# coding: utf-8 - -Gem::Specification.new do |spec| - spec.name = "just-the-docs" - spec.version = "0.3.3" - spec.authors = ["Patrick Marsceill"] - spec.email = ["patrick.marsceill@gmail.com"] - - spec.summary = %q{A modern, highly customizable, and responsive Jekyll theme for documention with built-in search.} - spec.homepage = "https://github.com/simonebortolin/just-the-docs" - spec.license = "MIT" - - spec.files = `git ls-files -z`.split("\x0").select { |f| f.match(%r{^(assets|bin|_layouts|_includes|lib|Rakefile|_sass|LICENSE|README)}i) } - spec.executables << 'just-the-docs' - - spec.add_development_dependency "bundler", "~> 2.3.5" - spec.add_runtime_dependency "jekyll", ">= 3.8.5" - spec.add_runtime_dependency "jekyll-seo-tag", "~> 2.0" - spec.add_runtime_dependency "rake", ">= 12.3.1", "< 13.1.0" - spec.add_runtime_dependency "jekyll-webp" - spec.add_runtime_dependency "jekyll-remote-theme" -end \ No newline at end of file -- cgit v1.2.3