ptsurbeleu / jekyll-theme-chalk-site

:star: An example of Jekyll site using gem-based Chalk theme by Nielsen Ramon
MIT License
5 stars 0 forks source link

New to this, what are the steps? #1

Open Joli-ta opened 1 year ago

Joli-ta commented 1 year ago

I prefer to not use the command line, is there a way to just use the github.com for deploying this for a simple blog?

This is the level I am at:

$ git clone https://github.com/ptsurbeleu/jekyll-theme-chalk-site.git
Cloning into 'jekyll-theme-chalk-site'...
remote: Enumerating objects: 22, done.
remote: Total 22 (delta 0), reused 0 (delta 0), pack-reused 22
Receiving objects: 100% (22/22), 9.68 KiB | 1.94 MiB/s, done.
Resolving deltas: 100% (2/2), done.
$ cd jekyll-theme-chalk-site 
$ bundle install -j12
Fetching gem metadata from https://rubygems.org/.........
Using bundler 1.17.2
Following files may not be writable, so sudo is needed:
  /Library/Ruby/Gems/2.6.0
  /Library/Ruby/Gems/2.6.0/build_info
  /Library/Ruby/Gems/2.6.0/cache
  /Library/Ruby/Gems/2.6.0/doc
  /Library/Ruby/Gems/2.6.0/extensions
  /Library/Ruby/Gems/2.6.0/gems
  /Library/Ruby/Gems/2.6.0/specifications
Fetching mini_portile2 2.2.0
Fetching colorator 1.1.0
Fetching concurrent-ruby 1.0.5
Fetching ffi 1.9.18
Fetching fastimage 2.1.0
Fetching i18n 0.8.5
Fetching public_suffix 2.0.5
Fetching forwardable-extended 2.6.0
Fetching thread_safe 0.3.6
Fetching gemoji 3.0.0
Fetching minitest 5.10.2

Your user account isn't allowed to install to the system RubyGems.
  You can cancel this installation and run:

      bundle install --path vendor/bundle

  to install the gems into ./vendor/bundle/, or you can enter your password
  and install the bundled gems to RubyGems using sudo.

  Password: 

I have no clue what password that is. My computer terminal knows nothing about my github account... Can I somehow fork this directory to use as my blog theme on github-pages? No terminal, just github.com.

Thank you!

Joli-ta commented 1 year ago

Even with sudo, terminal ends in error:

error: unknown directive
        .size _ffi_closure_VFP,.ffi_closure_VFP_end-_ffi_closure_VFP
        ^
make[3]: *** [src/arm/sysv.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: ***
["/private/var/folders/qp/fvwj41093d7c1ht9k_kmml100000gn/T/bundler20230616-21651-18lilkmffi-1.9.18/gems/ffi-1.9.18/ext/ffi_c/libffi-universal-darwin22"/.libs/libffi_convenience.a]
Error 2

make failed, exit code 2

Gem files will remain installed in /var/folders/qp/fvwj41093d7c1ht9k_kmml100000gn/T/bundler20230616-21651-18lilkmffi-1.9.18/gems/ffi-1.9.18 for
inspection.
Results logged to
/var/folders/qp/fvwj41093d7c1ht9k_kmml100000gn/T/bundler20230616-21651-18lilkmffi-1.9.18/extensions/universal-darwin-22/2.6.0/ffi-1.9.18/gem_make.out

An error occurred while installing ffi (1.9.18), and Bundler cannot continue.
Make sure that `gem install ffi -v '1.9.18' --source 'https://rubygems.org/'` succeeds before bundling.

In Gemfile:
  jekyll-theme-chalk was resolved to 0.1.1, which depends on
    jekyll-theme-assets was resolved to 0.1.2, which depends on
      jekyll-assets was resolved to 2.2.8, which depends on
        jekyll was resolved to 3.4.3, which depends on
          jekyll-watch was resolved to 1.5.0, which depends on
            listen was resolved to 3.0.8, which depends on
              rb-inotify was resolved to 0.9.10, which depends on
                ffi

I can't install that ffi. What I have is:

$ gem info ffi

*** LOCAL GEMS ***

ffi (1.15.5)
    Author: Wayne Meissner
    Homepage: https://github.com/ffi/ffi/wiki
    License: BSD-3-Clause
    Installed at: /Library/Ruby/Gems/2.6.0

    Ruby FFI

Edit: I changed the Gemfile.lock to say ffi (1.15.5) and that fixed that particular error. It completes bundle install -j12 and then bundle exec jekyll serve runs a server for me to check the site at http://127.0.0.1:4000/. OK, but how do I get from here to a published blog on my repository?

Apologies for the silly questions. I have been struggling with understanding this for a while.