Skip to content

Commit

Permalink
chore: update Docusaurus configuration and metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
lehuygiang28 committed May 22, 2024
1 parent eae5019 commit ffe4830
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions docs/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ const config: Config = {
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl: 'https://github.com/lehuygiang28/vnpay/tree/main/docs',
showLastUpdateTime: true,
showLastUpdateAuthor: true,
},
blog: false,
theme: {
Expand All @@ -53,6 +55,27 @@ const config: Config = {
themeConfig: {
// Replace with your project's social card
// image: 'img/docusaurus-social-card.jpg',
metadata: [
{
name: 'description',
content: 'An open-source nodejs library support to payment with VNPay',
},
{ name: 'og:title', content: 'vnpay' },
{
name: 'og:description',
content: 'An open-source nodejs library support to payment with VNPay',
},
{ name: 'og:url', content: 'https://vnpay-lib.vercel.app' },
{ name: 'og:site_name', content: 'vnpay' },
{ name: 'og:type', content: 'website' },
{ name: 'og:locale', content: 'vi_VN' },
{ name: 'og:locale:alternate', content: 'en_US' },
{
name: 'keywords',
content:
'vnpay, nodejs, payment, library, open-source, vnpay api, vnpay doc, vnpay sandbox, vnpay test, vnpay node, vnpay nodejs',
},
],
navbar: {
title: 'lehuygiang28/VNPay',
// logo: {
Expand Down Expand Up @@ -102,6 +125,7 @@ const config: Config = {
prism: {
theme: prismThemes.vsLight,
darkTheme: prismThemes.dracula,
defaultLanguage: 'typescript',
},
colorMode: {
defaultMode: 'dark',
Expand All @@ -113,6 +137,17 @@ const config: Config = {
indexName: 'vnpay-lib',
contextualSearch: true,
},
announcementBar: {
id: 'help_us',
content: `
We are looking for contributors to help us translate our docs to English.
If you're interested, please check out
<a target="_blank" rel="noopener noreferrer" href="https://github.com/lehuygiang28/vnpay/issues/9">this issue on GitHub</a>.
`,
backgroundColor: '#fafbfc',
textColor: '#091E42',
isCloseable: true,
},
} satisfies Preset.ThemeConfig,
plugins: [
[
Expand Down

0 comments on commit ffe4830

Please sign in to comment.