Utensil's index site for utensil.github.io utensil.github.io/
0

Configure Feed

Select the types of activity you want to include in your feed.

Revert "Upgrade Ruby and Middleman stack"

This reverts commit 441cbdedb872b3101b6275283666aabdaa8da7be.

+57 -229
+23 -20
.github/workflows/ruby.yml
··· 17 17 cancel-in-progress: false 18 18 19 19 jobs: 20 - build: 20 + test: 21 21 runs-on: ubuntu-latest 22 + strategy: 23 + matrix: 24 + ruby-version: ['2.7'] 25 + environment: 26 + name: github-pages 27 + url: ${{ steps.deployment.outputs.page_url }} 22 28 steps: 23 - - name: Checkout 24 - uses: actions/checkout@v6 29 + - name: Checkout 🛎️ 30 + uses: actions/checkout@v3 25 31 - name: Set up Ruby 26 - uses: ruby/setup-ruby@v1 32 + # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby, 33 + # change this to (see https://github.com/ruby/setup-ruby#versioning): 34 + # uses: ruby/setup-ruby@v1 35 + uses: ruby/setup-ruby@473e4d8fe5dd94ee328fdfca9f8c9c7afc9dae5e 27 36 with: 28 - ruby-version: "3.4.8" 29 - bundler-cache: true 37 + ruby-version: ${{ matrix.ruby-version }} 38 + bundler-cache: true # runs 'bundle install' and caches installed gems automatically 39 + bundler: 1.17.3 40 + - name: Install and Build 🔧 41 + run: | 42 + bundle exec middleman build --verbose 30 43 - name: Setup Pages 31 - uses: actions/configure-pages@v5 32 - - name: Build 33 - run: bundle exec middleman build --verbose 44 + uses: actions/configure-pages@v3 34 45 - name: Upload artifact 35 - uses: actions/upload-pages-artifact@v4 46 + uses: actions/upload-pages-artifact@v2 36 47 with: 37 48 path: 'build' 38 - 39 - deploy: 40 - runs-on: ubuntu-latest 41 - needs: build 42 - environment: 43 - name: github-pages 44 - url: ${{ steps.deployment.outputs.page_url }} 45 - steps: 46 - - name: Deploy to GitHub Pages 49 + - name: Deploy to GitHub Pages 🚀 47 50 id: deployment 48 - uses: actions/deploy-pages@v4 51 + uses: actions/deploy-pages@v2
+1
.gitignore
··· 2 2 /build 3 3 Thumbs.db 4 4 .bundle/ 5 + Gemfile.lock 5 6 .DS_Store
-1
.ruby-version
··· 1 - 3.4.8
-1
.tool-versions
··· 1 - ruby 3.4.8
+11 -8
Gemfile
··· 1 1 source 'https://rubygems.org/' 2 2 3 - ruby '3.4.8' 4 - 5 - gem 'haml', '~> 6.3' 6 - gem 'middleman', '4.6.2' 7 - gem 'middleman-blog', '4.2.0' 8 - gem 'middleman-minify-html', '3.4.1' 9 - gem 'html-pipeline', '~> 2.14', '>= 2.14.3' 10 - gem 'commonmarker', '~> 0.23.10' 3 + gem 'sass' 4 + gem 'ya2yaml' 5 + gem 'haml', '~>5.2' 6 + gem 'middleman', '~> 3.4' 7 + gem 'middleman-blog', '~> 3.5' 8 + gem 'middleman-minify-html', '~> 3.4' 9 + gem 'bourbon', '~> 5.1' 10 + gem 'neat', '~> 4.0' 11 + gem 'html-pipeline' 12 + gem 'commonmarker' 13 + gem 'ruby-enum', '~> 0.7.2' 11 14 # gem 'redcarpet', '~> 3.5' 12 15 # gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw] # http://stackoverflow.com/questions/23022258/tzinfodatasourcenotfound-error-starting-rails-v4-1-0-server-on-windows 13 16 # gem 'haml-coderay'
-181
Gemfile.lock
··· 1 - GEM 2 - remote: https://rubygems.org/ 3 - specs: 4 - activesupport (8.1.3) 5 - base64 6 - bigdecimal 7 - concurrent-ruby (~> 1.0, >= 1.3.1) 8 - connection_pool (>= 2.2.5) 9 - drb 10 - i18n (>= 1.6, < 2) 11 - json 12 - logger (>= 1.4.2) 13 - minitest (>= 5.1) 14 - securerandom (>= 0.3) 15 - tzinfo (~> 2.0, >= 2.0.5) 16 - uri (>= 0.13.1) 17 - addressable (2.9.0) 18 - public_suffix (>= 2.0.2, < 8.0) 19 - base64 (0.3.0) 20 - bigdecimal (4.1.2) 21 - coffee-script (2.4.1) 22 - coffee-script-source 23 - execjs 24 - coffee-script-source (1.12.2) 25 - commonmarker (0.23.12) 26 - concurrent-ruby (1.3.6) 27 - connection_pool (3.0.2) 28 - contracts (0.17.3) 29 - dotenv (3.2.0) 30 - drb (2.2.3) 31 - erubi (1.13.1) 32 - execjs (2.10.1) 33 - fast_blank (1.0.1) 34 - fastimage (2.4.1) 35 - ffi (1.17.4-aarch64-linux-gnu) 36 - ffi (1.17.4-aarch64-linux-musl) 37 - ffi (1.17.4-arm-linux-gnu) 38 - ffi (1.17.4-arm-linux-musl) 39 - ffi (1.17.4-arm64-darwin) 40 - ffi (1.17.4-x86_64-darwin) 41 - ffi (1.17.4-x86_64-linux-gnu) 42 - ffi (1.17.4-x86_64-linux-musl) 43 - haml (6.4.0) 44 - temple (>= 0.8.2) 45 - thor 46 - tilt 47 - hamster (3.0.0) 48 - concurrent-ruby (~> 1.0) 49 - hashie (5.1.0) 50 - logger 51 - html-pipeline (2.14.3) 52 - activesupport (>= 2) 53 - nokogiri (>= 1.4) 54 - htmlcompressor (0.2.0) 55 - i18n (1.14.8) 56 - concurrent-ruby (~> 1.0) 57 - json (2.19.5) 58 - kramdown (2.5.2) 59 - rexml (>= 3.4.4) 60 - listen (3.10.0) 61 - logger 62 - rb-fsevent (~> 0.10, >= 0.10.3) 63 - rb-inotify (~> 0.9, >= 0.9.10) 64 - logger (1.7.0) 65 - memoist (0.16.2) 66 - middleman (4.6.2) 67 - middleman-cli (= 4.6.2) 68 - middleman-core (= 4.6.2) 69 - middleman-blog (4.2.0) 70 - addressable (~> 2.3) 71 - middleman-core (>= 4.0.0) 72 - tzinfo (>= 0.3.0) 73 - middleman-cli (4.6.2) 74 - thor (>= 0.17.0, < 2) 75 - middleman-core (4.6.2) 76 - activesupport (>= 6.1) 77 - addressable (~> 2.4) 78 - bundler (~> 2.0) 79 - coffee-script (~> 2.2) 80 - contracts 81 - dotenv 82 - erubi 83 - execjs (~> 2.0) 84 - fast_blank 85 - fastimage (~> 2.0) 86 - haml (>= 4.0.5) 87 - hamster (~> 3.0) 88 - hashie (>= 3.4, < 6.0) 89 - i18n (>= 1.6, < 1.15) 90 - kramdown (~> 2.4) 91 - listen (~> 3.0) 92 - memoist (~> 0.14) 93 - padrino-helpers (~> 0.15.0) 94 - parallel 95 - rack (>= 3) 96 - rackup 97 - sassc (~> 2.0) 98 - servolux 99 - tilt (~> 2.2) 100 - toml 101 - uglifier (>= 3, < 5) 102 - webrick 103 - middleman-minify-html (3.4.1) 104 - htmlcompressor (~> 0.2.0) 105 - middleman-core (>= 3.2) 106 - minitest (6.0.6) 107 - drb (~> 2.0) 108 - prism (~> 1.5) 109 - nokogiri (1.19.3-aarch64-linux-gnu) 110 - racc (~> 1.4) 111 - nokogiri (1.19.3-aarch64-linux-musl) 112 - racc (~> 1.4) 113 - nokogiri (1.19.3-arm-linux-gnu) 114 - racc (~> 1.4) 115 - nokogiri (1.19.3-arm-linux-musl) 116 - racc (~> 1.4) 117 - nokogiri (1.19.3-arm64-darwin) 118 - racc (~> 1.4) 119 - nokogiri (1.19.3-x86_64-darwin) 120 - racc (~> 1.4) 121 - nokogiri (1.19.3-x86_64-linux-gnu) 122 - racc (~> 1.4) 123 - nokogiri (1.19.3-x86_64-linux-musl) 124 - racc (~> 1.4) 125 - padrino-helpers (0.15.3) 126 - i18n (>= 0.6.7, < 2) 127 - padrino-support (= 0.15.3) 128 - tilt (>= 1.4.1, < 3) 129 - padrino-support (0.15.3) 130 - parallel (2.1.0) 131 - parslet (2.0.0) 132 - prism (1.9.0) 133 - public_suffix (7.0.5) 134 - racc (1.8.1) 135 - rack (3.2.6) 136 - rackup (2.3.1) 137 - rack (>= 3) 138 - rb-fsevent (0.11.2) 139 - rb-inotify (0.11.1) 140 - ffi (~> 1.0) 141 - rexml (3.4.4) 142 - sassc (2.4.0) 143 - ffi (~> 1.9) 144 - securerandom (0.4.1) 145 - servolux (0.13.0) 146 - temple (0.10.4) 147 - thor (1.5.0) 148 - tilt (2.7.0) 149 - toml (0.3.0) 150 - parslet (>= 1.8.0, < 3.0.0) 151 - tzinfo (2.0.6) 152 - concurrent-ruby (~> 1.0) 153 - uglifier (4.2.1) 154 - execjs (>= 0.3.0, < 3) 155 - uri (1.1.1) 156 - webrick (1.9.2) 157 - 158 - PLATFORMS 159 - aarch64-linux-gnu 160 - aarch64-linux-musl 161 - arm-linux-gnu 162 - arm-linux-musl 163 - arm64-darwin 164 - x86_64-darwin 165 - x86_64-linux-gnu 166 - x86_64-linux-musl 167 - 168 - DEPENDENCIES 169 - commonmarker (~> 0.23.10) 170 - haml (~> 6.3) 171 - html-pipeline (~> 2.14, >= 2.14.3) 172 - middleman (= 4.6.2) 173 - middleman-blog (= 4.2.0) 174 - middleman-minify-html (= 3.4.1) 175 - wdm (~> 0.1) 176 - 177 - RUBY VERSION 178 - ruby 3.4.8p72 179 - 180 - BUNDLED WITH 181 - 2.6.9
+2 -2
README.md
··· 14 14 #for editing the source 15 15 git clone --depth 1 -b middleman https://github.com/utensil/utensil.github.io.git utensil-middleman 16 16 cd utensil-middleman/ 17 - mise install 18 - bundle install 17 + sudo gem install bundler 18 + bundle 19 19 20 20 #for publishing 21 21 cd ..
+2 -2
config.rb
··· 130 130 require 'lib/mytemplate' 131 131 set :markdown_engine, :MarkdownHtmlFilter 132 132 133 - # Haml 6 rejects the old Tilt/Haml `layout_engine` option used by this 134 - # Middleman 3-era config. Layouts are selected explicitly below. 133 + set :md, :layout_engine => :haml 134 + set :haml, :layout_engine => :haml #, :encoding => 'utf-8' 135 135 136 136 # with_layout 'tech_layout.haml' do 137 137 # page "/tech/*.html"
+18 -14
source/tech/index.haml
··· 21 21 %a{:href => "https://github.com/utensil", :target => "_blank"} 22 22 %img.fork-me-overlay{:src => "../images/fork.png"}/ 23 23 %h2.subtitle 24 - %p 25 - %span In fascination of 26 - <span class="main-idea">creating worlds by words</span>, 27 - %p 28 - %span and in pursuit of 29 - <span class="main-idea">words behind the world</span>. 30 - %p 31 - %span 对 32 - <span class="main-idea">用语句构建世界</span> 33 - %span 的迷恋, 34 - %p 35 - %span 以及对 36 - <span class="main-idea">世界背后的话语</span> 37 - %span 的追索。 24 + %p 25 + %span In fascination of 26 + = succeed "," do 27 + %span.main-idea creating worlds by words 28 + %p 29 + %span and in pursuit of 30 + = succeed "." do 31 + %span.main-idea words behind the world 32 + %p 33 + %span 对 34 + = succeed "" do 35 + %span.main-idea 用语句构建世界 36 + %span 的迷恋, 37 + %p 38 + %span 以及对 39 + = succeed "" do 40 + %span.main-idea 世界背后的话语 41 + %span 的追索。 38 42 39 43