feat(v2): add ability to use HTML in footer copyright (#2327)

This commit is contained in:
Alexey Pyltsyn 2020-02-26 18:59:59 +03:00 committed by GitHub
parent 3f682046df
commit aef2456545
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 3 deletions

View file

@ -105,7 +105,12 @@ function Footer() {
)}
</div>
)}
{copyright}
<div
dangerouslySetInnerHTML={{
__html: copyright,
}}
/>
</div>
)}
</div>

View file

@ -188,7 +188,7 @@ module.exports = {
alt: 'Facebook Open Source Logo',
src: 'https://docusaurus.io/img/oss_logo.png',
},
copyright: `Copyright © ${new Date().getFullYear()} Facebook, Inc.`,
copyright: `Copyright © ${new Date().getFullYear()} Facebook, Inc.`, // You can also put own HTML here
},
},
};

View file

@ -226,7 +226,7 @@ module.exports = {
src: 'https://docusaurus.io/img/oss_logo.png',
href: 'https://opensource.facebook.com/',
},
copyright: `Copyright © ${new Date().getFullYear()} Facebook, Inc.`,
copyright: `Copyright © ${new Date().getFullYear()} Facebook, Inc.`, // You can also put own HTML here
},
image: 'img/docusaurus.png',
// Equivalent to `docsSideNavCollapsible`