Skip to content

Commit

Permalink
Merge pull request #791 from thefrontside/v2-website-updates-for-v3-r…
Browse files Browse the repository at this point in the history
…elease

Update the v2 site to promote v3
  • Loading branch information
cowboyd authored Oct 11, 2023
2 parents 2e0ef4d + 26eca2b commit 3de9ab0
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 148 deletions.
18 changes: 13 additions & 5 deletions website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,20 @@ module.exports = {
title: 'Effection',
tagline: 'Structured Concurrency for JavaScript',
url: 'https://frontside.com',
baseUrl: '/effection/',
baseUrl: '/effection/V2/',
onBrokenLinks: 'throw',
favicon: 'images/favicon-effection.png',
organizationName: 'thefrontside',
projectName: 'effection',
themeConfig: {
announcementBar: {
id: 'effection_v3_announce',
content:
'📣 These docs are for Effection V2. Check out the <a href="https://frontside.com/effection/">latest release here</a>',
backgroundColor: '#fafbfc',
textColor: '#091E42',
isCloseable: false,
},
colorMode: {
disableSwitch: true,
respectPrefersColorScheme: true,
Expand All @@ -28,7 +36,7 @@ module.exports = {
position: "right",
},
{
href: 'https://frontside.com/effection/api/index.html',
href: 'https://frontside.com/effection/V2/api/index.html',
label: 'API Reference',
position: 'right',
},
Expand Down Expand Up @@ -61,15 +69,15 @@ module.exports = {
items: [
{
label: "Interactors",
href: "https://frontside.com/effection",
href: "https://frontside.com/interactors",
},
{
label: "Bigtest",
href: "https://frontside.com/bigtest",
},
{
label: "Effection",
to: "/",
label: "Effection v3",
to: "/effection/",
},
],
},
Expand Down
16 changes: 12 additions & 4 deletions website/docusaurus.config.local.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ module.exports = {
organizationName: 'thefrontside',
projectName: 'effection',
themeConfig: {
announcementBar: {
id: 'effection_v3_announce',
content:
'📣 These docs are for Effection V2. Check out the <a href="https://frontside.com/effection/">latest release here</a>',
backgroundColor: '#fafbfc',
textColor: '#091E42',
isCloseable: false,
},
colorMode: {
disableSwitch: true,
respectPrefersColorScheme: true,
Expand All @@ -28,7 +36,7 @@ module.exports = {
position: "right",
},
{
href: 'https://frontside.com/effection/api/index.html',
href: 'https://frontside.com/effection/V2/api/index.html',
label: 'API Reference',
position: 'right',
},
Expand Down Expand Up @@ -61,15 +69,15 @@ module.exports = {
items: [
{
label: "Interactors",
href: "https://frontside.com/effection",
href: "https://frontside.com/interactors",
},
{
label: "Bigtest",
href: "https://frontside.com/bigtest",
},
{
label: "Effection",
to: "/",
label: "Effection v3",
to: "/effection/",
},
],
},
Expand Down
124 changes: 0 additions & 124 deletions website/docusaurus.config.prod.js

This file was deleted.

13 changes: 0 additions & 13 deletions website/netlify.toml

This file was deleted.

2 changes: 1 addition & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"start": "docusaurus start --no-open",
"build": "docusaurus build --out-dir public/effection",
"build:local": "docusaurus build --config ./docusaurus.config.local.js --out-dir build/local/site",
"build:prod": "docusaurus build --config ./docusaurus.config.prod.js --out-dir build/prod/site",
"build:prod": "docusaurus build --config ./docusaurus.config.js --out-dir build/prod/site",
"swizzle": "docusaurus swizzle",
"deploy": "docusaurus deploy",
"serve": "docusaurus serve --dir public"
Expand Down
2 changes: 1 addition & 1 deletion website/src/theme/Navbar/logo-select.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const items = [
{
title: 'Effection',
description: 'Structured Concurrency for JavaScript',
url: 'https://frontside.com/effection',
url: 'https://frontside.com/effection/V2/',
version: 'v2',
img: '/images/icon-effection.svg',
},
Expand Down

2 comments on commit 3de9ab0

@deno-deploy
Copy link

@deno-deploy deno-deploy bot commented on 3de9ab0 Oct 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Failed to deploy:

Module not found "file:///src/www/main.ts".

@deno-deploy
Copy link

@deno-deploy deno-deploy bot commented on 3de9ab0 Oct 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Failed to deploy:

Module not found "file:///src/www/main.ts".

Please sign in to comment.