Skip to content

Commit

Permalink
Technical/astro upgrade (#547)
Browse files Browse the repository at this point in the history
* Update astro library

* Update image tag to include to include .src

* Updated image tag to include .src

* Fixed the main top menu links.

* Updated the astro config

* Updating internal links to include "/" at the end of the URL

* Fixed side navigation links

* Fixed smart bulletin navigation by adding slash to the end of the URL

* Updated redirects to include slash at the end of the URL

* Updated the parent navigation link on the state tax page

* Update node version from 16 to 18

* Update URL broken links

* Fixed background image on home page

* Fixed broken links across site

* Updated content contrast to fix accessibility checker errors.

* Updated Astro version

* Fix background image on home page

* Fixed the state tax selection dropdown

* State selection fix attempt on server

* Update state dropdown selection functionality

* Fixed to state tax selection navigation on server
  • Loading branch information
felder101 authored Jun 4, 2024
1 parent 32c088d commit bd05dbb
Show file tree
Hide file tree
Showing 40 changed files with 5,002 additions and 2,475 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 16.x
node-version: 18.x
cache: npm
- name: Install dependencies
run: npm ci
Expand All @@ -35,7 +35,7 @@ jobs:
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 16.x
node-version: 18.x
cache: npm
- name: Install dependencies
run: npm ci
Expand All @@ -51,7 +51,7 @@ jobs:
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 16.x
node-version: 18.x
cache: npm
- name: Install dependencies
run: npm ci
Expand All @@ -67,7 +67,7 @@ jobs:
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 16.x
node-version: 18.x
cache: npm
- name: Install dependencies
run: npm ci
Expand Down
10 changes: 6 additions & 4 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,19 @@ import sitemap from "@astrojs/sitemap";
import generateRedirects from './src/config/redirects';
import sitemapFilter from "./src/config/sitemapFilter";

const base = process.env.BASEURL ? process.env.BASEURL : '/'
// https://astro.build/config
export default defineConfig({
site: 'https://smartpay.gsa.gov/',
base: process.env.BASEURL,
base: base,
integrations: [mdx(), sitemap({ filter: sitemapFilter })],
outDir: '_site',
markdown: {
rehypePlugins: [
[process_anchors, {baseURL: process.env.BASEURL || '/'}],
[process_image_urls, {baseURL: process.env.BASEURL || '/'}]
[process_anchors, {baseURL: base}],
[process_image_urls, {baseURL: base}]
],
},
redirects: generateRedirects(process.env.BASEURL)
redirects: generateRedirects(base),
trailingSlash: 'always',
});
Loading

0 comments on commit bd05dbb

Please sign in to comment.