2022-05-29 19:15:01 +02:00
|
|
|
// @ts-check
|
|
|
|
// Note: type annotations allow type checking and IDEs autocompletion
|
|
|
|
|
2022-11-26 23:16:38 +02:00
|
|
|
const {
|
2023-01-02 02:24:16 +02:00
|
|
|
CHINESE_URL,
|
2022-11-26 23:16:38 +02:00
|
|
|
DISCORD_URL,
|
2023-01-02 02:24:16 +02:00
|
|
|
GITHUB_URL,
|
|
|
|
MASTODON_URL,
|
|
|
|
TWITTER_URL
|
2022-11-26 23:16:38 +02:00
|
|
|
} = require('./constants');
|
2022-09-17 18:51:54 +02:00
|
|
|
const lightCodeTheme = require('./src/themes/prismLight');
|
|
|
|
const darkCodeTheme = require('./src/themes/prismDark');
|
2022-05-29 19:15:01 +02:00
|
|
|
|
|
|
|
/** @type {import('@docusaurus/types').Config} */
|
|
|
|
const config = {
|
|
|
|
title: 'Task',
|
|
|
|
tagline: 'A task runner / simpler Make alternative written in Go ',
|
|
|
|
url: 'https://taskfile.dev',
|
|
|
|
baseUrl: '/',
|
|
|
|
onBrokenLinks: 'throw',
|
|
|
|
onBrokenMarkdownLinks: 'throw',
|
|
|
|
favicon: 'img/favicon.ico',
|
|
|
|
|
|
|
|
organizationName: 'go-task',
|
|
|
|
projectName: 'task',
|
|
|
|
deploymentBranch: 'gh-pages',
|
|
|
|
|
|
|
|
i18n: {
|
|
|
|
defaultLocale: 'en',
|
|
|
|
locales: ['en']
|
|
|
|
},
|
|
|
|
|
|
|
|
presets: [
|
|
|
|
[
|
|
|
|
'classic',
|
|
|
|
/** @type {import('@docusaurus/preset-classic').Options} */
|
|
|
|
({
|
|
|
|
docs: {
|
|
|
|
routeBasePath: '/',
|
|
|
|
sidebarPath: require.resolve('./sidebars.js')
|
|
|
|
},
|
|
|
|
blog: false,
|
|
|
|
theme: {
|
|
|
|
customCss: [
|
|
|
|
require.resolve('./src/css/custom.css'),
|
|
|
|
require.resolve('./src/css/carbon.css')
|
|
|
|
]
|
|
|
|
},
|
|
|
|
gtag: {
|
|
|
|
trackingID: 'G-4RT25NXQ7N',
|
|
|
|
anonymizeIP: true
|
|
|
|
},
|
|
|
|
sitemap: {
|
|
|
|
changefreq: 'weekly',
|
|
|
|
priority: 0.5,
|
|
|
|
ignorePatterns: ['/tags/**']
|
|
|
|
}
|
|
|
|
})
|
|
|
|
]
|
|
|
|
],
|
|
|
|
|
|
|
|
themeConfig:
|
|
|
|
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
|
|
|
|
({
|
|
|
|
metadata: [
|
|
|
|
{
|
|
|
|
name: 'og:image',
|
2022-06-12 22:33:22 +02:00
|
|
|
content: 'https://taskfile.dev/img/og-image.png'
|
2022-05-29 19:15:01 +02:00
|
|
|
}
|
|
|
|
],
|
|
|
|
navbar: {
|
|
|
|
title: 'Task',
|
|
|
|
logo: {
|
|
|
|
alt: 'Task Logo',
|
|
|
|
src: 'img/logo.svg'
|
|
|
|
},
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
type: 'doc',
|
|
|
|
docId: 'installation',
|
|
|
|
position: 'left',
|
|
|
|
label: 'Installation'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
type: 'doc',
|
|
|
|
docId: 'usage',
|
|
|
|
position: 'left',
|
|
|
|
label: 'Usage'
|
|
|
|
},
|
2022-05-31 04:25:01 +02:00
|
|
|
{
|
|
|
|
type: 'doc',
|
|
|
|
docId: 'api_reference',
|
|
|
|
position: 'left',
|
|
|
|
label: 'API'
|
|
|
|
},
|
2022-05-29 19:15:01 +02:00
|
|
|
{
|
|
|
|
type: 'doc',
|
|
|
|
docId: 'donate',
|
|
|
|
position: 'left',
|
|
|
|
label: 'Donate'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
href: GITHUB_URL,
|
|
|
|
label: 'GitHub',
|
|
|
|
position: 'right'
|
|
|
|
},
|
2022-07-04 16:14:20 +02:00
|
|
|
{
|
|
|
|
href: TWITTER_URL,
|
|
|
|
label: 'Twitter',
|
|
|
|
position: 'right'
|
|
|
|
},
|
2023-01-02 02:24:16 +02:00
|
|
|
{
|
|
|
|
href: MASTODON_URL,
|
|
|
|
label: 'Mastodon',
|
|
|
|
position: 'right'
|
|
|
|
},
|
2022-05-29 19:15:01 +02:00
|
|
|
{
|
|
|
|
href: DISCORD_URL,
|
|
|
|
label: 'Discord',
|
|
|
|
position: 'right'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
footer: {
|
|
|
|
style: 'dark',
|
|
|
|
links: [
|
|
|
|
{
|
2022-06-02 03:57:50 +02:00
|
|
|
title: 'Pages',
|
2022-05-29 19:15:01 +02:00
|
|
|
items: [
|
|
|
|
{
|
|
|
|
label: 'Installation',
|
|
|
|
to: '/installation/'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Usage',
|
|
|
|
to: '/usage/'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Donate',
|
|
|
|
to: '/donate/'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'Community',
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
label: 'GitHub',
|
|
|
|
href: GITHUB_URL
|
|
|
|
},
|
2022-07-04 16:14:20 +02:00
|
|
|
{
|
|
|
|
label: 'Twitter',
|
|
|
|
href: TWITTER_URL
|
|
|
|
},
|
2023-01-02 02:24:16 +02:00
|
|
|
{
|
|
|
|
label: 'Mastodon',
|
|
|
|
href: MASTODON_URL
|
|
|
|
},
|
2022-05-29 19:15:01 +02:00
|
|
|
{
|
|
|
|
label: 'Discord',
|
|
|
|
href: DISCORD_URL
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'OpenCollective',
|
|
|
|
href: 'https://opencollective.com/task'
|
|
|
|
}
|
|
|
|
]
|
2022-11-26 23:16:38 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'Translations',
|
|
|
|
items: [
|
|
|
|
{
|
2022-11-28 00:49:07 +02:00
|
|
|
label: 'Chinese | 中国人',
|
2022-11-26 23:16:38 +02:00
|
|
|
href: CHINESE_URL
|
|
|
|
}
|
|
|
|
]
|
2022-05-29 19:15:01 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
prism: {
|
|
|
|
theme: lightCodeTheme,
|
|
|
|
darkTheme: darkCodeTheme
|
2022-06-10 14:47:53 +02:00
|
|
|
},
|
|
|
|
// NOTE(@andreynering): Don't worry, these keys are meant to be public =)
|
|
|
|
algolia: {
|
|
|
|
appId: '7IZIJ13AI7',
|
2022-06-10 15:03:37 +02:00
|
|
|
apiKey: '34b64ae4fc8d9da43d9a13d9710aaddc',
|
2022-06-10 14:47:53 +02:00
|
|
|
indexName: 'taskfile'
|
2022-05-29 19:15:01 +02:00
|
|
|
}
|
|
|
|
}),
|
|
|
|
|
|
|
|
scripts: [
|
|
|
|
{
|
|
|
|
src: '/js/carbon.js',
|
|
|
|
async: true
|
|
|
|
}
|
|
|
|
]
|
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = config;
|