jeffreytse / jekyll-spaceship

🚀 A Jekyll plugin to provide powerful supports for table, mathjax, plantuml, mermaid, emoji, video, audio, youtube, vimeo, dailymotion, soundcloud, spotify, etc.
MIT License
626 stars 67 forks source link

jekyll-spaceship doesn't work both locally and on github pages #52

Closed Anthonyive closed 3 years ago

Anthonyive commented 3 years ago

Sorry if this is a dumb question, I'm very new to jekyll. I'm afraid I can't use this plugin. I followed exactly by the installation.

Locally, the bundle install was successful:

...
Using github-pages 214
Using rainbow 3.0.0
Using jekyll-spaceship 0.9.8
Using webrick 1.7.0
Bundle complete! 7 Gemfile dependencies, 95 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.

But after I add it to the index.md, it isn't displayed properly (also for Mathjax):

<my actual content...>

|              Stage | Direct Products | ATP Yields |
| -----------------: | --------------: | ---------: |
|         Glycolysis |          2 ATP              ||
| ^^                 |          2 NADH |   3--5 ATP |
| Pyruvaye oxidation |          2 NADH |      5 ATP |
|  Citric acid cycle |          2 ATP              ||
| ^^                 |          6 NADH |     15 ATP |
| ^^                 |          2 FADH |      3 ATP |
|                               30--32 ATP        |||

$ 1^2 $

I also use jekyll-deploy-action. It builds successfully once I push new stuffs.

Gemfile

``` source "https://rubygems.org" # Hello! This is where you manage which Jekyll version is used to run. # When you want to use a different version, change it below, save the # file and run `bundle install`. Run Jekyll with `bundle exec`, like so: # # bundle exec jekyll serve --livereload # # This will help ensure the proper Jekyll version is running. # Happy Jekylling! # gem "jekyll", "~> 4.2.0" # This is the default theme for new Jekyll sites. You may change this to anything you like. # gem "minima", "~> 2.5" # If you want to use GitHub Pages, remove the "gem "jekyll"" above and # uncomment the line below. To upgrade, run `bundle update github-pages`. gem "github-pages", group: :jekyll_plugins # If you have any plugins, put them here! group :jekyll_plugins do gem "jekyll-feed", "~> 0.12" end # Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem # and associated library. platforms :mingw, :x64_mingw, :mswin, :jruby do gem "tzinfo", "~> 1.2" gem "tzinfo-data" end # Performance-booster for watching directories on Windows gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin] gem "webrick", "~> 1.7" gem 'jekyll-spaceship' ```

_config.yml

``` # Welcome to Jekyll! # # This config file is meant for settings that affect your whole blog, values # which you are expected to set up once and rarely edit after that. If you find # yourself editing this file very often, consider using Jekyll's data files # feature for the data you need to update frequently. # # For technical reasons, this file is *NOT* reloaded automatically when you use # 'bundle exec jekyll serve'. If you change this file, please restart the server process. # # If you need help with YAML syntax, here are some quick references for you: # https://learn-the-web.algonquindesign.ca/topics/markdown-yaml-cheat-sheet/#yaml # https://learnxinyminutes.com/docs/yaml/ # # Site settings # These are used to personalize your new site. If you look in the HTML files, # you will see them accessed via {{ site.title }}, {{ site.email }}, and so on. # You can create any custom variable you would like, and they will be accessible # in the templates via {{ site.myvariable }}. title: Yuchen Zhang email: anthony.yuchen@gmail.com description: >- # this means to ignore newlines until "baseurl:" Yuchen Zhang (Anthony)'s personal website. Here you can find my resume and blogs. baseurl: "/website" # the subpath of your site, e.g. /blog url: "https://anthonyive.github.io" # the base hostname & protocol for your site, e.g. http://example.com linkedin_username: anthonyive github_username: anthonyive author: Yuchen Zhang copyright: "Yuchen Zhang" # Build settings # theme: minima plugins: - jekyll-feed - jekyll-spaceship # Exclude from processing. # The following items will not be processed, by default. # Any item listed under the `exclude:` key here will be automatically added to # the internal "default list". # # Excluded items can be processed by explicitly listing the directories or # their entries' file path in the `include:` list. # # exclude: # - .sass-cache/ # - .jekyll-cache/ # - gemfiles/ # - Gemfile # - Gemfile.lock # - node_modules/ # - vendor/bundle/ # - vendor/cache/ # - vendor/gems/ # - vendor/ruby/ ```

Anthonyive commented 3 years ago

OK, I found out why, Gemfile shoud look like this.

group :jekyll_plugins do
  gem "jekyll-feed", "~> 0.12"
  gem 'jekyll-spaceship'
end