Skip to content

Commit

Permalink
Documentation - Update jquery, remove polyfills, don't use foundation…
Browse files Browse the repository at this point in the history
… js (acemod#9519)

* update jquery, remove polyfills, don't use foundation js

* fix BOM ?

* Update workflow to only check `addons`

---------
  • Loading branch information
bux authored Oct 20, 2023
1 parent 642ca3c commit 4eca92c
Show file tree
Hide file tree
Showing 30 changed files with 42 additions and 15,589 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/arma.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:
run: python3 tools/check_strings.py
- name: Check for BOM
uses: arma-actions/bom-check@master
with:
path: 'addons'
- name: Validate function headers
run: python3 docs/tools/document_functions.py --debug

Expand Down
12 changes: 10 additions & 2 deletions docs/_includes/_navigation.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
<nav class="top-bar" data-topbar role="navigation">
<ul class="title-area">
<li class="name">
<h3><a href="{{ site.baseurl }}/index.html"><img src="{{ site.baseurl }}/img/ace3-logo-white-tiny.webp" srcset="{{ site.baseurl }}/img/ace3-logo-white-tiny.webp 1x, {{ site.baseurl }}/img/ace3-logo-white-tiny-2x.webp 2x" alt="ACE3 logo" width="100" height="23" /></a></h3>
<h3>
<a href="{{ site.baseurl }}/index.html">
<img src="{{ site.baseurl }}/img/ace3-logo-white-tiny.webp" srcset="{{ site.baseurl }}/img/ace3-logo-white-tiny.webp 1x, {{ site.baseurl }}/img/ace3-logo-white-tiny-2x.webp 2x" alt="ACE3 logo" width="100" height="23" />
</a>
</h3>
</li>
<li class="toggle-topbar menu-icon">
<a href="#">
<span>Menu</span>
</a>
</li>
<li class="toggle-topbar menu-icon"><a href="#"><span>Menu</span></a></li>
</ul>

<div class="top-bar-section">
Expand Down
2 changes: 1 addition & 1 deletion docs/css/app.css

Large diffs are not rendered by default.

3,324 changes: 11 additions & 3,313 deletions docs/js/footer.dev.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/js/footer.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/js/footer.min.js.map

Large diffs are not rendered by default.

7 changes: 1 addition & 6 deletions docs/src/Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,7 @@ module.exports = function (grunt) {
const sass = require("node-sass");

var footer = [
"js/vendor/modernizr/modernizr.custom.18747.js",
"js/vendor/picturefill/picturefill.js",
"js/vendor/jquery/jquery.min.js",
"js/vendor/foundation/foundation.js",
"js/vendor/foundation/foundation.topbar.js",
"js/vendor/foundation/foundation.clearing.js",
"js/vendor/jquery/jquery-3.7.1.min.js",
"js/vendor/slick/slick.js",
"js/vendor/jekyll-toc/jekyll-toc.js",
"js/core/utils.js",
Expand Down
11 changes: 9 additions & 2 deletions docs/src/js/app.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
jQuery(document).foundation();

jQuery(document).ready(function(){

const $navigation = jQuery("nav.top-bar");
const $navigationToggle = $navigation.find(".toggle-topbar a");
$navigationToggle.on("click", (e) => {
e.preventDefault();
$navigation.toggleClass("expanded");
});


var $slider = jQuery(".slider");
if ($slider.length > 0) {
$slider.slick({
Expand Down
340 changes: 0 additions & 340 deletions docs/src/js/vendor/foundation/foundation.abide.js

This file was deleted.

Loading

0 comments on commit 4eca92c

Please sign in to comment.