Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] main from slatedocs:main #2

Open
wants to merge 20 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
63eee65
Bump nokogiri from 1.13.4 to 1.13.5 (#1612)
dependabot[bot] May 5, 2022
d8225be
Fix Vagrantfile gem install for ruby >= 2.6 (#1618)
Cyb0rk Jun 24, 2022
0ef68b7
Bump rouge from 3.28.0 to 3.29.0 (#1621)
dependabot[bot] Jun 24, 2022
6115480
Bump nokogiri from 1.13.5 to 1.13.6 (#1614)
dependabot[bot] Jun 24, 2022
22ddbe3
Expand deprecated git.io links to full url (#1611)
judge2020 Jun 24, 2022
fa73871
Bump nokogiri from 1.13.6 to 1.13.7 (#1639)
dependabot[bot] Jul 12, 2022
009bd06
Bump nokogiri from 1.13.7 to 1.13.8 (#1643)
dependabot[bot] Jul 26, 2022
eb32e1b
Bump rouge from 3.29.0 to 3.30.0 (#1646)
dependabot[bot] Sep 13, 2022
9ab7838
Bump middleman-syntax from 3.2.0 to 3.3.0 (#1648)
dependabot[bot] Sep 13, 2022
9f927c1
Disable file watcher in run_build() for the sake of qemu on arm64 (#1…
anapsix Sep 13, 2022
10d4c77
Bump nokogiri from 1.13.8 to 1.13.9 (#1676)
dependabot[bot] Oct 18, 2022
2a2e60f
Bump redcarpet from 3.5.1 to 3.6.0 (#1715)
dependabot[bot] Jan 31, 2023
a43bf2a
Bump webrick from 1.7.0 to 1.8.1 (#1713)
dependabot[bot] Jan 31, 2023
bc3f155
Bump middleman from 4.4.2 to 4.4.3 (#1682)
dependabot[bot] Jan 31, 2023
2f73193
Add margin to paragraph following code-block on phones (#1637)
tlhunter Jan 31, 2023
fc2e92b
Bump version to 2.13.1 (#1661)
MasterOdin Jan 31, 2023
ca630ef
Add ruby 3.2 to test suite (#1755)
realityking Aug 9, 2023
cbdc43c
Remove updating gem from CI (#1787)
MasterOdin Feb 7, 2024
50239a7
Handle incorrectly set language parameter (#1756)
realityking Feb 7, 2024
97c8dd4
Update github actions/checkout and actions/cache to v3 (#1727)
jaredmoody Feb 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,23 @@ jobs:

strategy:
matrix:
ruby-version: [2.6, 2.7, '3.0', 3.1]
ruby-version: [2.6, 2.7, '3.0', 3.1, 3.2]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}

- uses: actions/cache@v2
- uses: actions/cache@v3
with:
path: vendor/bundle
key: gems-${{ runner.os }}-${{ matrix.ruby-version }}-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
gems-${{ runner.os }}-${{ matrix.ruby-version }}-
gems-${{ runner.os }}-

# necessary to get ruby 2.3 to work nicely with bundler vendor/bundle cache
# can remove once ruby 2.3 is no longer supported
- run: gem update --system

- run: bundle config set deployment 'true'
- name: bundle install
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ jobs:
ruby-version: 2.6

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ env.ruby-version }}

- uses: actions/cache@v2
- uses: actions/cache@v3
with:
path: vendor/bundle
key: gems-${{ runner.os }}-${{ env.ruby-version }}-${{ hashFiles('**/Gemfile.lock') }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/dev_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:

steps:
- name: Check out the repo
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v1
Expand Down Expand Up @@ -56,13 +56,13 @@ jobs:
ruby-version: 2.6

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ env.ruby-version }}

- uses: actions/cache@v2
- uses: actions/cache@v3
with:
path: vendor/bundle
key: gems-${{ runner.os }}-${{ env.ruby-version }}-${{ hashFiles('**/Gemfile.lock') }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v1
Expand Down
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# Changelog

## Version 2.13.1

*January 31, 2023*

* Fix Vagrantfile gem install for ruby >= 2.6 (thanks @Cyb0rk)
* Disable file watcher in run_build() for sake of qemu on arm64 (thanks @anapsix)
* Expand deprecated git.io links to full url in docs (thanks @judge2020)
* Add margin to paragraph following code-block on phones (thanks @tlhunter)
* Bump nokogiri from 1.13.4 to 1.13.9
* Bump rouge from 3.28.0 to 3.30.0
* Bump redcarpet from 3.5.1 to 3.6.0
* Bump middleman from 4.4.2 to 4.4.3
* Bump middleman-syntax from 3.2.0 to 3.3.0
* Bump webrick from 1.7.0 to 1.8.1

## Version 2.13.0

*April 22, 2022*
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ gem 'middleman-syntax', '~> 3.2'
gem 'middleman-autoprefixer', '~> 3.0'
gem 'middleman-sprockets', '~> 4.1'
gem 'rouge', '~> 3.21'
gem 'redcarpet', '~> 3.5.0'
gem 'redcarpet', '~> 3.6.0'
gem 'nokogiri', '~> 1.13.3'
gem 'sass'
gem 'webrick'
82 changes: 41 additions & 41 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
GEM
remote: https://rubygems.org/
specs:
activesupport (6.1.4.1)
activesupport (6.1.6.1)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 1.6, < 2)
minitest (>= 5.1)
tzinfo (~> 2.0)
zeitwerk (~> 2.3)
addressable (2.8.0)
public_suffix (>= 2.0.2, < 5.0)
addressable (2.8.1)
public_suffix (>= 2.0.2, < 6.0)
autoprefixer-rails (10.2.5.0)
execjs (< 2.8.0)
backports (3.21.0)
backports (3.23.0)
coffee-script (2.4.1)
coffee-script-source
execjs
coffee-script-source (1.12.2)
concurrent-ruby (1.1.9)
contracts (0.13.0)
dotenv (2.7.6)
concurrent-ruby (1.2.0)
contracts (0.16.1)
dotenv (2.8.1)
erubis (2.7.0)
execjs (2.7.0)
fast_blank (1.0.1)
fastimage (2.2.5)
ffi (1.15.4)
fastimage (2.2.6)
ffi (1.15.5)
haml (5.2.2)
temple (>= 0.8.0)
tilt
Expand All @@ -32,29 +32,29 @@ GEM
hashie (3.6.0)
i18n (1.6.0)
concurrent-ruby (~> 1.0)
kramdown (2.3.1)
kramdown (2.4.0)
rexml
listen (3.0.8)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
listen (3.8.0)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
memoist (0.16.2)
middleman (4.4.2)
middleman (4.4.3)
coffee-script (~> 2.2)
haml (>= 4.0.5)
haml (>= 4.0.5, < 6.0)
kramdown (>= 2.3.0)
middleman-cli (= 4.4.2)
middleman-core (= 4.4.2)
middleman-cli (= 4.4.3)
middleman-core (= 4.4.3)
middleman-autoprefixer (3.0.0)
autoprefixer-rails (~> 10.0)
middleman-core (>= 4.0.0)
middleman-cli (4.4.2)
middleman-cli (4.4.3)
thor (>= 0.17.0, < 2.0)
middleman-core (4.4.2)
activesupport (>= 6.1, < 7.0)
middleman-core (4.4.3)
activesupport (>= 6.1, < 7.1)
addressable (~> 2.4)
backports (~> 3.6)
bundler (~> 2.0)
contracts (~> 0.13.0)
contracts (~> 0.13)
dotenv
erubis
execjs (~> 2.0)
Expand All @@ -63,7 +63,7 @@ GEM
hamster (~> 3.0)
hashie (~> 3.4)
i18n (~> 1.6.0)
listen (~> 3.0.0)
listen (~> 3.0)
memoist (~> 0.14)
padrino-helpers (~> 0.15.0)
parallel
Expand All @@ -77,30 +77,30 @@ GEM
middleman-sprockets (4.1.1)
middleman-core (~> 4.0)
sprockets (>= 3.0)
middleman-syntax (3.2.0)
middleman-syntax (3.3.0)
middleman-core (>= 3.2)
rouge (~> 3.2)
mini_portile2 (2.8.0)
minitest (5.14.4)
nokogiri (1.13.4)
minitest (5.17.0)
nokogiri (1.13.9)
mini_portile2 (~> 2.8.0)
racc (~> 1.4)
padrino-helpers (0.15.1)
padrino-helpers (0.15.2)
i18n (>= 0.6.7, < 2)
padrino-support (= 0.15.1)
padrino-support (= 0.15.2)
tilt (>= 1.4.1, < 3)
padrino-support (0.15.1)
parallel (1.21.0)
padrino-support (0.15.2)
parallel (1.22.1)
parslet (2.0.0)
public_suffix (4.0.6)
public_suffix (5.0.1)
racc (1.6.0)
rack (2.2.3)
rb-fsevent (0.11.0)
rack (2.2.6.2)
rb-fsevent (0.11.2)
rb-inotify (0.10.1)
ffi (~> 1.0)
redcarpet (3.5.1)
redcarpet (3.6.0)
rexml (3.2.5)
rouge (3.28.0)
rouge (3.30.0)
sass (3.7.4)
sass-listen (~> 4.0.0)
sass-listen (4.0.0)
Expand All @@ -112,17 +112,17 @@ GEM
sprockets (3.7.2)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
temple (0.8.2)
thor (1.1.0)
tilt (2.0.10)
temple (0.10.0)
thor (1.2.1)
tilt (2.0.11)
toml (0.3.0)
parslet (>= 1.8.0, < 3.0.0)
tzinfo (2.0.4)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
uglifier (3.2.0)
execjs (>= 0.3.0, < 3)
webrick (1.7.0)
zeitwerk (2.5.1)
webrick (1.8.1)
zeitwerk (2.6.0)

PLATFORMS
ruby
Expand All @@ -133,7 +133,7 @@ DEPENDENCIES
middleman-sprockets (~> 4.1)
middleman-syntax (~> 3.2)
nokogiri (~> 1.13.3)
redcarpet (~> 3.5.0)
redcarpet (~> 3.6.0)
rouge (~> 3.21)
sass
webrick
Expand Down
2 changes: 1 addition & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Vagrant.configure(2) do |config|
sudo apt-get install -yq ruby ruby-dev
sudo apt-get install -yq pkg-config build-essential nodejs git libxml2-dev libxslt-dev
sudo apt-get autoremove -yq
gem install --no-ri --no-rdoc bundler
gem install --no-document bundler
SHELL

# add the local user git config to the vm
Expand Down
2 changes: 1 addition & 1 deletion slate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ run_serve() {
}

run_build() {
bundle exec middleman build --clean
bundle exec middleman build --clean --watcher-disable
}

parse_args() {
Expand Down
2 changes: 1 addition & 1 deletion source/index.html.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: API Reference

language_tabs: # must be one of https://git.io/vQNgJ
language_tabs: # must be one of https://github.com/rouge-ruby/rouge/wiki/List-of-supported-languages-and-lexers
- shell
- ruby
- python
Expand Down
2 changes: 1 addition & 1 deletion source/javascripts/app/_lang.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ under the License.
languages = l;

var presetLanguage = getLanguageFromQueryString();
if (presetLanguage) {
if (presetLanguage && languages.includes(presetLanguage)) {
// the language is in the URL, so use that language!
activateLanguage(presetLanguage);

Expand Down
2 changes: 1 addition & 1 deletion source/stylesheets/_normalize.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! normalize.css v3.0.2 | MIT License | git.io/normalize */
/*! normalize.css v3.0.2 | MIT License | github.com/necolas/normalize.css */

/**
* 1. Set default font family to sans-serif.
Expand Down
4 changes: 4 additions & 0 deletions source/stylesheets/screen.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -609,6 +609,10 @@ html, body {
%right-col + %left-col {
margin-top: $main-padding;
}

.highlight + p {
margin-top: 20px;
}
}

.highlight .c, .highlight .cm, .highlight .c1, .highlight .cs {
Expand Down