Skip to content

Commit 1504fad

Browse files
Merge branch 'main' into nathan/escape-room-subsite-ordering
2 parents 107cd91 + d59f2bc commit 1504fad

100 files changed

Lines changed: 6177 additions & 3482 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ifdef OS
99
FixPath = $(subst /,\,$1)
1010
# The set command will return an error, even though it succeeds.
1111
else
12-
WriteCmd = printf
12+
WriteCmd = printf
1313
RemoveCmd = rm -rf
1414
RemoveDirCmd = rm -rf
1515
FixPath = $1
@@ -24,7 +24,7 @@ up:
2424
down:
2525
@docker compose down
2626

27-
shell:
27+
shell: up
2828
@docker compose exec $(CONTAINER) bash
2929

3030
dist: clean-js-dist $(SOURCE_DIR)/dist

astro/astro.config.mjs

Lines changed: 17 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
import path from "path";
2-
import { fileURLToPath } from "url";
3-
4-
// https://flaviocopes.com/fix-dirname-not-defined-es-module-scope/
5-
const __filename = fileURLToPath(import.meta.url);
6-
const __dirname = path.dirname(__filename);
7-
81
import { defineConfig } from "astro/config";
92
import styleGuide from "./style-guide/register.js";
103

@@ -42,28 +35,23 @@ export default defineConfig({
4235

4336
redirects: {
4437
"/daf/overview/": "/daf/",
38+
// Move old services URLs to new ones.
39+
"/services/escape-room": "/escape-room/",
40+
"/services/evaluations": "/evaluations/",
41+
"/services/globa11y/": "/globa11y/",
42+
"/services/mutua11y/": "/mutua11y/",
43+
"/services/tip-of-the-week": "/tips/",
4544
},
4645

4746
vite: {
48-
resolve: {
49-
alias: {
50-
"~bootstrap": path.resolve(__dirname, "node_modules/bootstrap"),
51-
"~bootstrap-es": path.resolve(
52-
__dirname,
53-
"node_modules/bootstrap/dist/js/bootstrap.esm.min.js",
54-
),
55-
'@': './src',
56-
},
57-
extensions: ['.js', '.ts', '.mjs'],
58-
},
5947
ssr: {
6048
noExternal: ["bootstrap"],
6149
},
6250
},
6351

6452
integrations: [
6553
mdx(),
66-
styleGuide(),
54+
styleGuide(),
6755
icon({
6856
include: {
6957
// Bootstrap Icons
@@ -73,7 +61,7 @@ export default defineConfig({
7361
// Contact Info
7462
'envelope-at-fill', 'telephone-fill', 'geo-alt-fill',
7563
// Social Media
76-
'facebook', 'instagram', 'linkedin', 'rss-fill', 'tiktok', 'youtube','globe', 'mastodon', 'twitter',
64+
'facebook', 'instagram', 'linkedin', 'rss-fill', 'tiktok', 'globe', 'mastodon', 'twitter',
7765
// Descriptive
7866
'gift-fill', 'pencil-fill', 'people-fill', 'person-fill',
7967
// Additional icons
@@ -84,16 +72,23 @@ export default defineConfig({
8472
cib: [
8573
// Social Media
8674
'facebook', 'instagram', 'linkedin', 'mastodon', 'twitter',
75+
// Streaming
76+
'apple-podcasts', 'youtube',
8777
// Payment
8878
"cc-paypal", "cc-stripe", "paypal", "stripe",
8979
],
80+
'simple-icons': [
81+
// Streaming
82+
'podcastindex'
83+
],
9084
}
9185
}),
9286
sitemap({
9387
filter: (page) =>
9488
!page.endsWith('/commitment-form/') &&
9589
!page.includes('/fixable/') &&
96-
!page.includes('/services/escape-room/content/'),
90+
!page.includes('/services/escape-room/content/') &&
91+
!page.endsWith('tips/archive/')
9792
}),
9893
robotsTxt({
9994
sitemap: true,
@@ -115,6 +110,7 @@ export default defineConfig({
115110
'/api/digital-content',
116111
'/api/verify-purchase',
117112
'/services/escape-room/content/',
113+
'/tips/archive/',
118114
],
119115
},
120116
]

0 commit comments

Comments
 (0)