Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Isaakske committed Jul 1, 2024
1 parent 2b7b6b4 commit 93cd8f5
Show file tree
Hide file tree
Showing 3 changed files with 184 additions and 46 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,20 @@ jobs:
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.3.8
ruby-version: 2.7.8

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 12
node-version: 18

- name: Create docs
run: |
gem install ffi -v 1.16.0
gem install dotenv -v 2.8.1
gem install public_suffix -v 5.1.1
gem install middleman -v 4.2.1
bundle install
gem install middleman:4.2.1
bundle exec middleman build --clean
- name: Configure AWS Credentials
Expand All @@ -65,4 +68,3 @@ jobs:
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

80 changes: 38 additions & 42 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,44 +1,42 @@
GEM
remote: https://rubygems.org/
specs:
activesupport (5.0.7.2)
activesupport (5.0.1)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 0.7, < 2)
i18n (~> 0.7)
minitest (~> 5.1)
tzinfo (~> 1.1)
addressable (2.8.7)
public_suffix (>= 2.0.2, < 7.0)
autoprefixer-rails (6.7.7.2)
addressable (2.5.0)
public_suffix (~> 2.0, >= 2.0.2)
autoprefixer-rails (6.6.1)
execjs
backports (3.25.0)
base64 (0.1.1)
backports (3.6.8)
coffee-script (2.4.1)
coffee-script-source
execjs
coffee-script-source (1.12.2)
compass-import-once (1.0.5)
sass (>= 3.2, < 3.5)
concurrent-ruby (1.3.3)
concurrent-ruby (1.0.4)
contracts (0.13.0)
dotenv (2.8.1)
dotenv (2.2.0)
erubis (2.7.0)
execjs (2.9.0)
fast_blank (1.0.1)
fastimage (2.3.1)
ffi (1.15.5)
haml (6.3.0)
temple (>= 0.8.2)
thor
execjs (2.7.0)
fast_blank (1.0.0)
fastimage (2.0.1)
addressable (~> 2)
ffi (1.9.17)
haml (4.0.7)
tilt
hamster (3.0.0)
concurrent-ruby (~> 1.0)
hashie (3.6.0)
hashie (3.5.1)
i18n (0.7.0)
kramdown (1.17.0)
kramdown (1.13.2)
listen (3.0.8)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
memoist (0.16.2)
memoist (0.15.0)
middleman (4.2.1)
coffee-script (~> 2.2)
compass-import-once (= 1.0.5)
Expand Down Expand Up @@ -75,43 +73,41 @@ GEM
servolux
tilt (~> 2.0)
uglifier (~> 3.0)
middleman-sprockets (4.1.1)
middleman-sprockets (4.1.0)
middleman-core (~> 4.0)
sprockets (>= 3.0)
middleman-syntax (3.0.0)
middleman-core (>= 3.2)
rouge (~> 2.0)
mini_portile2 (2.1.0)
minitest (5.15.0)
minitest (5.10.1)
nokogiri (1.6.8.1)
mini_portile2 (~> 2.1.0)
padrino-helpers (0.13.3.4)
padrino-helpers (0.13.3.3)
i18n (~> 0.6, >= 0.6.7)
padrino-support (= 0.13.3.4)
padrino-support (= 0.13.3.3)
tilt (>= 1.4.1, < 3)
padrino-support (0.13.3.4)
padrino-support (0.13.3.3)
activesupport (>= 3.1)
parallel (1.19.2)
public_suffix (4.0.7)
rack (2.2.9)
rb-fsevent (0.11.2)
rb-inotify (0.10.1)
ffi (~> 1.0)
parallel (1.10.0)
public_suffix (2.0.5)
rack (2.0.1)
rb-fsevent (0.9.8)
rb-inotify (0.9.8)
ffi (>= 0.5.0)
redcarpet (3.4.0)
rouge (2.0.7)
sass (3.4.25)
servolux (0.13.0)
sprockets (3.7.3)
base64
sass (3.4.23)
servolux (0.12.0)
sprockets (3.7.1)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
temple (0.8.2)
thor (1.2.2)
thread_safe (0.3.6)
tilt (2.4.0)
tzinfo (1.2.11)
thor (0.19.4)
thread_safe (0.3.5)
tilt (2.0.6)
tzinfo (1.2.2)
thread_safe (~> 0.1)
uglifier (3.2.0)
uglifier (3.0.4)
execjs (>= 0.3.0, < 3)

PLATFORMS
Expand All @@ -127,7 +123,7 @@ DEPENDENCIES
rouge (~> 2.0.5)

RUBY VERSION
ruby 2.3.1p112
ruby 2.3.3p222

BUNDLED WITH
1.17.3
1.14.5
140 changes: 140 additions & 0 deletions source/stylesheets/_rtl.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
////////////////////////////////////////////////////////////////////////////////
// RTL Styles Variables
////////////////////////////////////////////////////////////////////////////////

$default: auto;

////////////////////////////////////////////////////////////////////////////////
// TABLE OF CONTENTS
////////////////////////////////////////////////////////////////////////////////

#toc>ul>li>a>span {
float: left;
}

.toc-wrapper {
transition: right 0.3s ease-in-out !important;
left: $default !important;
#{right}: 0;
}

.toc-h2 {
padding-#{right}: $nav-padding + $nav-indent;
}

#nav-button {
#{right}: 0;
transition: right 0.3s ease-in-out;
&.open {
right: $nav-width
}
}

////////////////////////////////////////////////////////////////////////////////
// PAGE LAYOUT AND CODE SAMPLE BACKGROUND
////////////////////////////////////////////////////////////////////////////////
.page-wrapper {
margin-#{left}: $default !important;
margin-#{right}: $nav-width;
.dark-box {
#{right}: $default;
#{left}: 0;
}
}

.lang-selector {
width: $default !important;
a {
float: right;
}
}

////////////////////////////////////////////////////////////////////////////////
// CODE SAMPLE STYLES
////////////////////////////////////////////////////////////////////////////////
.content {
&>h1,
&>h2,
&>h3,
&>h4,
&>h5,
&>h6,
&>p,
&>table,
&>ul,
&>ol,
&>aside,
&>dl {
margin-#{left}: $examples-width;
margin-#{right}: $default !important;
}
&>ul,
&>ol {
padding-#{right}: $main-padding + 15px;
}
table {
th,
td {
text-align: right;
}
}
dd {
margin-#{right}: 15px;
}
aside {
aside:before {
padding-#{left}: 0.5em;
}
.search-highlight {
background: linear-gradient(to top right, #F7E633 0%, #F1D32F 100%);
}
}
pre,
blockquote {
float: left !important;
clear: left !important;
}
}

////////////////////////////////////////////////////////////////////////////////
// TYPOGRAPHY
////////////////////////////////////////////////////////////////////////////////
h1,
h2,
h3,
h4,
h5,
h6,
p,
aside {
text-align: right;
direction: rtl;
}

.toc-wrapper {
text-align: right;
direction: rtl;
font-weight: 100 !important;
}


////////////////////////////////////////////////////////////////////////////////
// RESPONSIVE DESIGN
////////////////////////////////////////////////////////////////////////////////
@media (max-width: $tablet-width) {
.toc-wrapper {
#{right}: -$nav-width;
&.open {
#{right}: 0;
}
}
.page-wrapper {
margin-#{right}: 0;
}
}

@media (max-width: $phone-width) {
%left-col {
margin-#{left}: 0;
}
}

0 comments on commit 93cd8f5

Please sign in to comment.