diff options
author | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2021-03-10 19:49:57 -0300 |
---|---|---|
committer | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2021-03-10 19:49:57 -0300 |
commit | 089431d81620abd54b1788df6d5fac43adfee36c (patch) | |
tree | 3a398a910c0a00fc0baacb08135193c3070078ba /docusaurus/docusaurus.config.js | |
parent | efdeac15fac0cda809586d617d936f29bfc924ce (diff) | |
download | PSP.git-089431d81620abd54b1788df6d5fac43adfee36c.tar.gz PSP.git-089431d81620abd54b1788df6d5fac43adfee36c.tar.xz PSP.git-089431d81620abd54b1788df6d5fac43adfee36c.zip |
PSP-UFU site i18n
with docusaurus
Diffstat (limited to 'docusaurus/docusaurus.config.js')
-rw-r--r-- | docusaurus/docusaurus.config.js | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/docusaurus/docusaurus.config.js b/docusaurus/docusaurus.config.js index 32ecd64..36a4c4f 100644 --- a/docusaurus/docusaurus.config.js +++ b/docusaurus/docusaurus.config.js @@ -21,7 +21,7 @@ module.exports = { // For more information about styling options visit: https://reactjs.org/docs/dom-elements.html#style marginLeft: '2px', }, - lightIcon: '\u2600', + lightIcon: '☀', lightIconStyle: { marginLeft: '1px', }, @@ -42,8 +42,12 @@ module.exports = { }, {to: 'blog', label: 'Changelog', position: 'left'}, { + type: 'localeDropdown', + position: 'right', + }, + { href: 'https://github.com/Thales1330/PSP', - label: 'PSP-UFU Source Code', + label: 'GitHub', position: 'right', }, ], @@ -101,7 +105,7 @@ module.exports = { { docs: { // It is recommended to set document id as docs home page (`docs/` path). - homePageId: 'aboutPSP', + // homePageId: 'aboutPSP', sidebarPath: require.resolve('./sidebars.js'), // Please change this to your repo. editUrl: @@ -119,11 +123,23 @@ module.exports = { customCss: require.resolve('./src/css/custom.css'), }, sitemap: { - cacheTime: 600 * 1000, // 600 sec - cache purge period + //cacheTime: 600 * 1000, // 600 sec - cache purge period changefreq: 'weekly', priority: 0.5, }, }, ], ], + i18n: { + defaultLocale: 'en', + locales: ['en', 'pt'], + localeConfigs: { + en: { + label: 'English', + }, + pt: { + label: 'Português', + }, + }, + }, }; |