diff --git a/README.md b/README.md index 0879ad75..c2ed9ad1 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@

- Installation | Documentation | Twitter | Discord + Installation | Documentation | Twitter | Mastodon | Discord

diff --git a/docs/constants.js b/docs/constants.js index a9d26e49..face7677 100644 --- a/docs/constants.js +++ b/docs/constants.js @@ -1,11 +1,13 @@ const GITHUB_URL = 'https://github.com/go-task/task'; const TWITTER_URL = 'https://twitter.com/taskfiledev'; +const MASTODON_URL = 'https://fosstodon.org/@task'; const DISCORD_URL = 'https://discord.gg/6TY36E39UK'; const CHINESE_URL = 'https://task-zh.readthedocs.io/zh_CN/latest/'; module.exports = { - GITHUB_URL, - TWITTER_URL, + CHINESE_URL, DISCORD_URL, - CHINESE_URL + GITHUB_URL, + MASTODON_URL, + TWITTER_URL }; diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js index c0dc8ee3..1658a08d 100644 --- a/docs/docusaurus.config.js +++ b/docs/docusaurus.config.js @@ -2,10 +2,11 @@ // Note: type annotations allow type checking and IDEs autocompletion const { - GITHUB_URL, - TWITTER_URL, + CHINESE_URL, DISCORD_URL, - CHINESE_URL + GITHUB_URL, + MASTODON_URL, + TWITTER_URL } = require('./constants'); const lightCodeTheme = require('./src/themes/prismLight'); const darkCodeTheme = require('./src/themes/prismDark'); @@ -108,6 +109,11 @@ const config = { label: 'Twitter', position: 'right' }, + { + href: MASTODON_URL, + label: 'Mastodon', + position: 'right' + }, { href: DISCORD_URL, label: 'Discord', @@ -146,6 +152,10 @@ const config = { label: 'Twitter', href: TWITTER_URL }, + { + label: 'Mastodon', + href: MASTODON_URL + }, { label: 'Discord', href: DISCORD_URL