blob: 648bd42940057e2529169b35556a3692f7826381 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
/*
* Copyright (c) Facebook, Inc. and its affiliates.
* Copyright (c) 2024 Kristóf Marussy <kristof@marussy.com>
*
* SPDX-License-Identifier: MIT
*
* This file was derived from
* https://github.com/facebook/docusaurus/blob/c745021b01a8b88d34e1d772278d7171ad8acdf5/packages/docusaurus-theme-classic/src/theme/Footer/Copyright/index.tsx
* via the `swizzle` mechanism of Docusaurus.
*
* It was modified to embed JSX content directly in the footer.
*/
import Link from '@docusaurus/Link';
import clsx from 'clsx';
import React from 'react';
import { CCLicenseLink, LicenseLink } from '@site/src/components/licenses';
import styles from './Copyright.module.css';
export default function FooterCopyright({ copyright }) {
return (
<div className="footer__copyright">
Most content on this site is{' '}
<CCLicenseLink
to="/license#content"
rel="license"
className={clsx(styles.link, styles['link--license'])}
>
CC-BY-4.0
</CCLicenseLink>
. The{' '}
<Link to="https://git.marussy.com/blog/" className={styles.link}>
code for this site
</Link>{' '}
is{' '}
<LicenseLink
to="/license#code"
rel="license"
className={clsx(styles.link, styles['link--license'])}
>
MIT
</LicenseLink>
.<br />
<span dangerouslySetInnerHTML={{ __html: copyright }} />
</div>
);
}
|