Remove (theme)Dockerfile (#1299)

It doesn't seem like any of our theme developers use this (out of date) `Dockerfile`, and we're probably better served placing more of this in the theme template (so users can consume it). I think this is part of our overall movement to not have users of our theme directly clone this repo.
This commit is contained in:
Matt Wang 2025-01-06 00:44:16 -08:00 committed by GitHub
parent 676b33aefe
commit 1594ba6a73
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 37 deletions

View File

@ -1,12 +0,0 @@
FROM ruby:2.7
ENV LC_ALL C.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8
WORKDIR /usr/src/app
COPY Gemfile just-the-docs.gemspec ./
RUN gem install bundler && bundle install
EXPOSE 4000

View File

@ -32,7 +32,7 @@ More specifically, the created site:
Other than that, you're free to customize sites that you create with the template, however you like. You can easily change the versions of `just-the-docs` and Jekyll it uses, as well as adding further plugins. Other than that, you're free to customize sites that you create with the template, however you like. You can easily change the versions of `just-the-docs` and Jekyll it uses, as well as adding further plugins.
### Use RubyGems ### Use as a Ruby Gem
Alternatively, you can install the theme as a Ruby Gem, without creating a new site. Alternatively, you can install the theme as a Ruby Gem, without creating a new site.
@ -48,17 +48,11 @@ And add this line to your Jekyll site's `_config.yml`:
theme: just-the-docs theme: just-the-docs
``` ```
And then execute: And then install all relevant dependencies:
$ bundle ```shell
$ bundle
Or install it yourself as: ```
$ gem install just-the-docs
Alternatively, you can run it inside Docker while developing your site
$ docker-compose up
## Usage ## Usage

View File

@ -1,14 +0,0 @@
version: "3.5"
services:
jekyll:
build:
context: ./
ports:
- 4000:4000
volumes:
- .:/usr/src/app
stdin_open: true
tty: true
command: bundle exec jekyll serve -H 0.0.0.0 -t