Skip to content

Commit 6647a2f

Browse files
authored
Merge pull request #155 from johnmhoran/154-dreamhost-internal-link-problem
Replace .htaccess, adjust URLs
2 parents 23280a4 + 98404d3 commit 6647a2f

2 files changed

Lines changed: 17 additions & 8 deletions

File tree

website/docusaurus.config.js

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ const siteConfig = {
2626
baseUrl: '/www.aboutcode.org/',
2727
},
2828
dreamhost: {
29-
url: 'https://www.aboutcode.org',
29+
// url: 'https://www.aboutcode.org',
30+
url: 'https://aboutcode.org',
3031
baseUrl: '/',
3132
},
3233
};
@@ -73,7 +74,9 @@ const config = {
7374
/** @type {import('@docusaurus/preset-classic').Options} */
7475
({
7576
docs: {
76-
sidebarPath: './sidebars.js',
77+
// sidebarPath: './sidebars.js',
78+
// 2026-05-05 15:57:26 (PT) Tuesday. Does this address the link errors?
79+
sidebarPath: require.resolve('./sidebars.js'),
7780
// Please change this to your repo.
7881
// Remove this to remove the "edit this page" links.
7982
// editUrl:
@@ -144,27 +147,27 @@ const config = {
144147
style: 'dark',
145148
links: [
146149
{
147-
html: `<img src="/www.aboutcode.org/img/AboutCode.svg" alt="My Company" width="150"/>`,
150+
html: `<img src="/img/AboutCode.svg" alt="AboutCode.org" width="150"/>`,
148151
},
149152

150153
{
151-
html: `<a href="https://github.com/aboutcode-org" target="_blank" rel="noopener noreferrer" aria-label="GitHub"><img src="/www.aboutcode.org/img/github-mark-white.svg" alt="" width="20" height="20"></a>`,
154+
html: `<a href="https://github.com/aboutcode-org" target="_blank" rel="noopener noreferrer" aria-label="GitHub"><img src="/img/github-mark-white.svg" alt="" width="20" height="20"></a>`,
152155
},
153156

154157
{
155-
html: `<a href="https://www.linkedin.com/company/aboutcode/" target="_blank" rel="noopener noreferrer" aria-label="LinkedIn"><img src="/www.aboutcode.org/img/brand-inlogo-download-fg-dsk-v01-2x.png" alt="" width="20" height="20"></a>`,
158+
html: `<a href="https://www.linkedin.com/company/aboutcode/" target="_blank" rel="noopener noreferrer" aria-label="LinkedIn"><img src="/img/brand-inlogo-download-fg-dsk-v01-2x.png" alt="" width="20" height="20"></a>`,
156159
},
157160

158161
{
159-
html: `<a href="https://join.slack.com/t/aboutcode-org/shared_invite/zt-1paqwxccw-IuafuiAvYJFkTqGaZsC1og" target="_blank" rel="noopener noreferrer" aria-label="Slack"><img src="/www.aboutcode.org/img/slack-logo.svg" alt="" width="20" height="20"></a>`,
162+
html: `<a href="https://join.slack.com/t/aboutcode-org/shared_invite/zt-1paqwxccw-IuafuiAvYJFkTqGaZsC1og" target="_blank" rel="noopener noreferrer" aria-label="Slack"><img src="/img/slack-logo.svg" alt="" width="20" height="20"></a>`,
160163
},
161164

162165
{
163-
html: `<a href="https://app.gitter.im/#/room/#aboutcode-org_discuss:gitter.im" target="_blank" rel="noopener noreferrer" aria-label="Gitter"><img src="/www.aboutcode.org/img/gitter.svg" alt="" width="20" height="20"></a>`,
166+
html: `<a href="https://app.gitter.im/#/room/#aboutcode-org_discuss:gitter.im" target="_blank" rel="noopener noreferrer" aria-label="Gitter"><img src="/img/gitter.svg" alt="" width="20" height="20"></a>`,
164167
},
165168

166169
{
167-
html: `<a href="mailto:hello@aboutcode.org" target="_blank" rel="noopener noreferrer" aria-label="Email"><img src="/www.aboutcode.org/img/email-svgrepo-com.svg" alt="" width="25" height="20"></a>`,
170+
html: `<a href="mailto:hello@aboutcode.org" target="_blank" rel="noopener noreferrer" aria-label="Email"><img src="/img/email-svgrepo-com.svg" alt="" width="25" height="20"></a>`,
168171
},
169172

170173
{ label: 'Privacy Policy', to: '/privacy' },

website/static/.htaccess

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Options -MultiViews
2+
RewriteEngine On
3+
RewriteBase /
4+
RewriteCond %{REQUEST_FILENAME} !-f
5+
RewriteCond %{REQUEST_FILENAME} !-d
6+
RewriteRule . /index.html [L]

0 commit comments

Comments
 (0)