Skip to content

Commit 4237956

Browse files
committed
Merge branch 'main' of github.com:HTTPArchive/almanac.httparchive.org into production
2 parents 9c8503a + 9616d06 commit 4237956

8 files changed

Lines changed: 684 additions & 45 deletions

File tree

.github/workflows/linter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
run: |
3232
echo "VALIDATE_ALL_CODEBASE=false" >> $GITHUB_ENV
3333
- name: Lint Code Base
34-
uses: github/super-linter@v4.10.0
34+
uses: github/super-linter@v4.10.1
3535
#uses: docker://github/super-linter:v4.7.1
3636
env:
3737
DEFAULT_BRANCH: main

.github/workflows/test_website.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
- name: Use more complete checks for generated HTML linting
4141
run: cp -f .github/linters/.htmlhintrc_morechecks .github/linters/.htmlhintrc
4242
- name: Lint Generated HTML
43-
uses: github/super-linter@v4.10.0
43+
uses: github/super-linter@v4.10.1
4444
env:
4545
DEFAULT_BRANCH: main
4646
FILTER_REGEX_INCLUDE: src/static/html/.*

src/config/last_updated.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
},
3232
"/static/js/almanac.js": {
3333
"date_published": "2021-02-24T00:00:00.000Z",
34-
"date_modified": "2022-12-13T00:00:00.000Z",
35-
"hash": "9c395a38708aa33f3c645692687b4245"
34+
"date_modified": "2023-02-08T00:00:00.000Z",
35+
"hash": "98246bed20d79e0580018616c7760a22"
3636
},
3737
"/static/js/send-web-vitals.js": {
3838
"date_published": "2021-02-24T00:00:00.000Z",
@@ -1618,6 +1618,11 @@
16181618
"date_modified": "2023-01-09T00:00:00.000Z",
16191619
"hash": "ca1508a9d6926c7390286533bfad3855"
16201620
},
1621+
"ja/2022/chapters/structured-data.html": {
1622+
"date_published": "2023-02-08T00:00:00.000Z",
1623+
"date_modified": "2023-02-08T00:00:00.000Z",
1624+
"hash": "360b4b8ca1c304d1f32d60088a53972e"
1625+
},
16211626
"ja/2022/contributors.html": {
16221627
"date_published": "2022-07-02T00:00:00.000Z",
16231628
"date_modified": "2022-07-02T00:00:00.000Z",

src/content/ja/2022/structured-data.md

Lines changed: 628 additions & 0 deletions
Large diffs are not rendered by default.

src/package-lock.json

Lines changed: 37 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@
3636
"devDependencies": {
3737
"ejs": "3.1.8",
3838
"fs-extra": "11.1.0",
39-
"jsdom": "21.0.0",
39+
"jsdom": "21.1.0",
4040
"node-fetch": "3.3.0",
4141
"node-watch": "0.7.3",
42-
"prettier": "2.8.2",
43-
"puppeteer": "19.5.2",
42+
"prettier": "2.8.4",
43+
"puppeteer": "19.6.3",
4444
"rainbow-code": "2.1.7",
4545
"recursive-readdir": "2.2.3",
4646
"run-script-os": "1.1.6",

src/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
flask==2.2.2
22
flask-talisman==1.0.0
33
gunicorn==20.1.0
4-
pytest==7.2.0
4+
pytest==7.2.1
55
pytest-watch==4.2.0
66
pytest-cov==4.0.0
77
sqlfluff==1.4.5

src/static/js/almanac.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,8 @@ function handleNavMenu() {
155155
function handleMobileMenu() {
156156
var menuBtn = document.querySelector('.menu-btn');
157157
var menuNav = document.querySelector('#menu');
158+
var main = document.querySelector('main');
159+
var footer = document.querySelector('footer');
158160

159161
function toggleNavMenu() {
160162
var menuOpen = document.body.classList.toggle('menu-open');
@@ -163,6 +165,10 @@ function handleMobileMenu() {
163165
var ariaLabel = menuOpen ? menuBtn.getAttribute('data-close-text') : menuBtn.getAttribute('data-open-text');
164166
menuBtn.setAttribute('aria-label', ariaLabel);
165167

168+
// Toogle inert to keep focus in the menu and header
169+
main.toggleAttribute('inert');
170+
footer.toggleAttribute('inert');
171+
166172
/* When you open the menu, add an event listener to close it when clicking outside the menu area */
167173
/* Remove it on closing the menu */
168174
if (menuBtn.getAttribute('aria-expanded') === 'true') {

0 commit comments

Comments
 (0)