From 3ebcfd6d9ced4cfcc7235d4c984cf7f3c8f0d61b Mon Sep 17 00:00:00 2001 From: Tim Hostetler <6970899+thostetler@users.noreply.github.com> Date: Wed, 4 Mar 2026 12:55:36 -0500 Subject: [PATCH 01/22] fix: resolve accessibility issues across SciX blog pages - Add alt text to thumbnail images in news, general, and technical-posts listing pages - Fix contrast and layout issues in blog layout and post templates - Fix shared navbar dropdown role attribute and footer link target sizes - Add alt text to results chart image in nasa-open-access post - Add docker-based local dev config --- .dockerignore | 15 ++++++ Dockerfile | 15 ++++++ README.md | 14 ++++++ _config.yml | 6 +++ .../2020-04-06-nasa-open-access.md | 2 +- _includes/header_default_scix.html | 4 +- _layouts/blog_layout_scix.html | 46 ++++++++++--------- _layouts/blog_page_scix.html | 2 +- _layouts/blog_post_scix.html | 6 +-- _sass/_layout.scss | 26 ++++++++++- docker-compose.yml | 29 ++++++++++++ run | 45 ++++++++++++++++++ scixblog/general/index.md | 5 +- scixblog/index.md | 1 + scixblog/news/index.md | 5 +- scixblog/technical-posts/index.md | 1 + 16 files changed, 188 insertions(+), 34 deletions(-) create mode 100644 .dockerignore create mode 100644 Dockerfile create mode 100644 docker-compose.yml create mode 100755 run diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 00000000..23442157 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,15 @@ +_site +.sass-cache +.jekyll-cache +.jekyll-metadata +.git +.github +.claude +vendor +node_modules +bower_components +*.xcf +.DS_Store +.idea +.cursor +.siteimprove diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..fc41c788 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +FROM ruby:3.3-alpine + +RUN apk add --no-cache \ + build-base \ + git \ + && gem install bundler + +WORKDIR /site + +COPY Gemfile Gemfile.lock ./ +RUN bundle install --jobs 4 + +EXPOSE 4000 + +CMD ["bundle", "exec", "jekyll", "serve", "--host", "0.0.0.0"] diff --git a/README.md b/README.md index 9056ce9a..6d6ca1db 100644 --- a/README.md +++ b/README.md @@ -73,6 +73,20 @@ After installing Jekyll, run the following commands to preview the site: You will now be able to access the help pages locally at `http://0.0.0.0:4000` or `localhost:4000` (default configuration). After the website is built for the first time, you should only need to save the file, wait a second or two for it to rebuild automatically (check the terminal window where you ran `jekyll serve`), then refresh the page to see any changes. +#### Development with Docker + +As an alternative, you can use Docker instead of installing Ruby locally. The only prerequisite is [Docker](https://docs.docker.com/get-docker/). A convenience script wraps the Docker Compose setup: + +``` +./run serve # start dev server at http://localhost:4000 (livereload) +./run build # one-shot production build +./run dev # watch + incremental rebuild (no server) +./run stop # stop running containers +./run clean # remove build artifacts and Docker volumes +``` + +`JEKYLL_PORT` and `JEKYLL_ENV` can be set as environment variables. + ### Maintainer Mugdha diff --git a/_config.yml b/_config.yml index b8209bd0..78db7b91 100644 --- a/_config.yml +++ b/_config.yml @@ -35,6 +35,12 @@ plugins: last-modified-at: date-format: '%Y-%m-%dT%H:%M:%S%:z' +exclude: + - Dockerfile + - docker-compose.yml + - run + - vendor + defaults: - scope: path: '' diff --git a/_includes/_blogcontent/2020-04-06-nasa-open-access.md b/_includes/_blogcontent/2020-04-06-nasa-open-access.md index 22a9be60..522a5c8f 100644 --- a/_includes/_blogcontent/2020-04-06-nasa-open-access.md +++ b/_includes/_blogcontent/2020-04-06-nasa-open-access.md @@ -67,7 +67,7 @@ elsevier/NASA | [380](https://ui.adsabs.harvard.edu/search/q=(aff%3ANASA%20OR%20
- +Bar chart showing open access percentages for NASA-affiliated research papers across publisher groups in 2018 Figure 1

diff --git a/_includes/header_default_scix.html b/_includes/header_default_scix.html index fa418108..61858f04 100644 --- a/_includes/header_default_scix.html +++ b/_includes/header_default_scix.html @@ -26,7 +26,7 @@ > About -