Skip to content

Commit

Permalink
Fix gemfile
Browse files Browse the repository at this point in the history
  • Loading branch information
choiwd committed Oct 7, 2023
1 parent dd3f8f2 commit a59e3f5
Show file tree
Hide file tree
Showing 8 changed files with 2,432 additions and 1 deletion.
16 changes: 15 additions & 1 deletion docs/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,18 @@ gem "github-pages", group: :jekyll_plugins
# If you have any plugins, put them here!
group :jekyll_plugins do
gem "jekyll-feed", "~> 0.12"
end
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", "< 3"
gem "tzinfo-data"
end

# Performance-booster for watching directories on Windows
gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin]

# Lock `http_parser.rb` gem to `v0.6.x` on JRuby builds since newer versions of the gem
# do not have a Java counterpart.
gem "http_parser.rb", "~> 0.6.0", :platforms => [:jruby]
226 changes: 226 additions & 0 deletions docs/_site/assets/css/styles.css

Large diffs are not rendered by default.

49 changes: 49 additions & 0 deletions docs/_site/assets/js/docs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
$(function() {
$('html').toggleClass('no-js js');

// Update sidebar highlighting based on Scrollspy
$(window).on('activate.bs.scrollspy', function () {
const spyTarget = $('[data-spy="scroll"]').data('target');
const $activeSpy = $(spyTarget).find('.nav-link.active');
const $tree = $activeSpy.parentsUntil('.bs-docs-sidenav', 'li');

$tree.find('> a').addClass('active');
});

// Toggleable mobile table of contents button
$('.toggle-toc').on('click', function () {
const $this = $(this);
const $toc = $("#mobileTOC");

$toc.toggle();
$this.attr('aria-expanded', $toc.is(':visible'));

const $btn = $this.find('[data-role="toggle"]');

if ($btn.text() === 'Hide') {
$btn.text('Show');
} else {
$btn.text('Hide');
}
});

// Make the triangular pattern in the header
if (uiColors) {
const $masthead = $('.site-masthead');

if ($masthead.length) {
const t = new Trianglify({
cellsize: 90,
noiseIntensity: 0,
x_gradient: [
uiColors[0],
uiColors[1],
],
});
const pattern = t.generate(window.screen.width | $masthead.outerWidth(), $masthead.outerHeight() * 1.2);

const style = $('<style>.site-masthead { background-image: ' + pattern.dataUrl + '; }</style>');
$('html > head').append(style);
}
}
});
Loading

0 comments on commit a59e3f5

Please sign in to comment.