Skip to content

Commit

Permalink
Documentation - Improve and move to a modern build system, Fix search…
Browse files Browse the repository at this point in the history
… not working (acemod#9574)

* fix tabs in xm157

* use rollup, remove grunt, fix scss build
  • Loading branch information
bux authored Oct 24, 2023
1 parent bd908bb commit 697a4b7
Show file tree
Hide file tree
Showing 65 changed files with 6,327 additions and 17,529 deletions.
2 changes: 1 addition & 1 deletion docs/_includes/_footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ <h2>Social Media</h2>
</div>
</footer>

<script src="{{ site.baseurl }}/js/footer.min.js?v={{site.time | date: '%Y%m%d%H'}}"></script>
<script src="{{ site.baseurl }}/dist/bundle.min.js?v={{site.time | date: '%Y%m%d%H'}}"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion docs/_includes/_header.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="{{ site.baseurl }}/css/app.css?v={{site.time | date: '%Y%m%d%H'}}" />
<link rel="stylesheet" href="{{ site.baseurl }}/dist/bundle.css?v={{site.time | date: '%Y%m%d%H'}}" />
</head>
<body>
<header>
Expand Down
1 change: 0 additions & 1 deletion docs/css/app.css

This file was deleted.

3 changes: 3 additions & 0 deletions docs/dist/bundle.css

Large diffs are not rendered by default.

82 changes: 82 additions & 0 deletions docs/dist/bundle.css.map

Large diffs are not rendered by default.

6,721 changes: 3,358 additions & 3,363 deletions docs/js/footer.dev.js → docs/dist/bundle.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions docs/dist/bundle.min.js

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions docs/js/footer.min.js

This file was deleted.

1 change: 0 additions & 1 deletion docs/js/footer.min.js.map

This file was deleted.

4 changes: 1 addition & 3 deletions docs/src/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
*.DS_Store
/css/*
/bower_components/*
/node_modules/*
/node_modules/*
94 changes: 0 additions & 94 deletions docs/src/Gruntfile.js

This file was deleted.

Binary file removed docs/src/img/icons/social/32-facebook.png
Binary file not shown.
Binary file removed docs/src/img/icons/social/32-twitter.png
Binary file not shown.
Binary file removed docs/src/img/icons/social/32-youtube.png
Binary file not shown.
6 changes: 4 additions & 2 deletions docs/src/js/vendor/jekyll-toc/jekyll-toc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
///@ts-check

// https://github.com/ghiculescu/jekyll-table-of-contents
(function ($) {
$.fn.toc = function (options) {
Expand Down Expand Up @@ -74,13 +76,13 @@
if (this_level === level) // same level as before; same indenting
html += "<li><a href=\"#" + fixedEncodeURIComponent(header.id) + "\">" + header.innerHTML + "</a>";
else if (this_level <= level) { // higher level than before; end parent ol
for (i = this_level; i < level; i++) {
for (let i = this_level; i < level; i++) {
html += "</li></" + settings.listType + ">"
}
html += "<li><a href=\"#" + fixedEncodeURIComponent(header.id) + "\">" + header.innerHTML + "</a>";
}
else if (this_level > level) { // lower level than before; expand the previous to contain a ol
for (i = this_level; i > level; i--) {
for (let i = this_level; i > level; i--) {
html += "<" + settings.listType + "><li>"
}
html += "<a href=\"#" + fixedEncodeURIComponent(header.id) + "\">" + header.innerHTML + "</a>";
Expand Down
9 changes: 9 additions & 0 deletions docs/src/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import "./js/vendor/jquery/jquery-3.7.1.min"
import "./js/vendor/slick/slick"
import "./js/vendor/jekyll-toc/jekyll-toc"
import "./js/core/utils"
import "./js/components/storage.js"
import "./js/components/contentSearch.js"
import "./js/app.js"

import "./scss/app.scss"
Loading

0 comments on commit 697a4b7

Please sign in to comment.