From ffe4830b75a3e6e8dfd58bdb7e156e9d7f3203e5 Mon Sep 17 00:00:00 2001 From: lehuygiang28 Date: Wed, 22 May 2024 22:46:10 +0700 Subject: [PATCH] chore: update Docusaurus configuration and metadata --- docs/docusaurus.config.ts | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/docs/docusaurus.config.ts b/docs/docusaurus.config.ts index feac5dc..3f3a13e 100644 --- a/docs/docusaurus.config.ts +++ b/docs/docusaurus.config.ts @@ -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: { @@ -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: { @@ -102,6 +125,7 @@ const config: Config = { prism: { theme: prismThemes.vsLight, darkTheme: prismThemes.dracula, + defaultLanguage: 'typescript', }, colorMode: { defaultMode: 'dark', @@ -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 + this issue on GitHub. + `, + backgroundColor: '#fafbfc', + textColor: '#091E42', + isCloseable: true, + }, } satisfies Preset.ThemeConfig, plugins: [ [