Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ jobs:
run: cp tests/fixtures/sponsors.json website/data/sponsors.json
- name: Run Playwright tests
run: yarn playwright test
env:
ARGOS_PROJECT: babel/website
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# [babel/website](https://babeljs.io)

[![Covered by Argos Visual Testing](https://argos-ci.com/badge-large.svg)](https://app.argos-ci.com/babel/website/reference)

This is the source for the [babeljs.io](https://babeljs.io) website; feel free to suggest changes to our docs!

| Branch name | Website |
Expand Down
37 changes: 20 additions & 17 deletions website/src/theme/Footer/Layout/index.tsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,19 @@
import React, {type ReactNode} from 'react';
import clsx from 'clsx';
import {ThemeClassNames} from '@docusaurus/theme-common';
import Link from '@docusaurus/Link';
import {useLocation} from '@docusaurus/router';
import useBaseUrl from '@docusaurus/useBaseUrl';
import type {Props} from '@theme/Footer/Layout';
import React, { type ReactNode } from "react";
import clsx from "clsx";
import { ThemeClassNames } from "@docusaurus/theme-common";
import Link from "@docusaurus/Link";
import { useLocation } from "@docusaurus/router";
import useBaseUrl from "@docusaurus/useBaseUrl";
import type { Props } from "@theme/Footer/Layout";

export default function FooterLayout({
style,
links,
logo,
}: Props): ReactNode {
const isHomepage = useLocation().pathname === useBaseUrl('/');
export default function FooterLayout({ style, links, logo }: Props): ReactNode {
const isHomepage = useLocation().pathname === useBaseUrl("/");
return (
<footer
className={clsx(ThemeClassNames.layout.footer.container, 'footer', {
'footer--dark': style === 'dark',
})}>
className={clsx(ThemeClassNames.layout.footer.container, "footer", {
"footer--dark": style === "dark",
})}
>
{/* Modification: wrap logo and links within a flex container */}
<div className="container container-fluid">
<div className="row footer__links">
Expand All @@ -26,7 +23,13 @@ export default function FooterLayout({
{isHomepage && (
<div className="row">
<div className="col footer__bottom text--center">
This website is hosted by <Link to="https://www.netlify.com/">Netlify</Link>.
This website is hosted by{" "}
<Link to="https://www.netlify.com/">Netlify</Link>. Visual testing
by{" "}
<Link to="https://argos-ci.com?utm_source=babel&utm_campaign=oss">
Argos
</Link>
.
</div>
</div>
)}
Expand Down
Loading