1
0
mirror of https://github.com/go-task/task.git synced 2025-01-04 03:48:02 +02:00

Website: Link to the Chinese translation

Closes #921
This commit is contained in:
Andrey Nering 2022-11-26 18:16:38 -03:00
parent d1850e8fd2
commit 45ab4dc718
5 changed files with 48 additions and 5 deletions

View File

@ -1,5 +1,10 @@
# Changelog
## Unreleased
- The website got a brand new [translation to Chinese](https://task-zh.readthedocs.io/zh_CN/latest/)
by [@DeronW](https://github.com/DeronW). Thanks!
## v3.18.0
- Show aliases on `task --list --silent` (`task --ls`). This means that aliases

11
docs/constants.js Normal file
View File

@ -0,0 +1,11 @@
const GITHUB_URL = 'https://github.com/go-task/task';
const TWITTER_URL = 'https://twitter.com/taskfiledev';
const DISCORD_URL = 'https://discord.gg/6TY36E39UK';
const CHINESE_URL = 'https://task-zh.readthedocs.io/zh_CN/latest/';
module.exports = {
GITHUB_URL,
TWITTER_URL,
DISCORD_URL,
CHINESE_URL
};

View File

@ -9,6 +9,12 @@ Some of the work to improve the Task ecosystem is done by the community, be
it installation methods or integrations with code editor. I (the author) am
thankful for everyone that helps me to improve the overall experience.
## Translations
[@DeronW](https://github.com/DeronW) maintains the
[Chinese translation](https://task-zh.readthedocs.io/zh_CN/latest/) of the
website [on this repository](https://github.com/DeronW/task).
## Editor Integrations
### JSON Schema

View File

@ -1,13 +1,15 @@
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
const {
GITHUB_URL,
TWITTER_URL,
DISCORD_URL,
CHINESE_URL
} = require('./constants');
const lightCodeTheme = require('./src/themes/prismLight');
const darkCodeTheme = require('./src/themes/prismDark');
const GITHUB_URL = 'https://github.com/go-task/task';
const TWITTER_URL = 'https://twitter.com/taskfiledev';
const DISCORD_URL = 'https://discord.gg/6TY36E39UK';
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'Task',
@ -153,6 +155,15 @@ const config = {
href: 'https://opencollective.com/task'
}
]
},
{
title: 'Translations',
items: [
{
label: 'Chinese',
href: CHINESE_URL
}
]
}
]
},

View File

@ -1,9 +1,19 @@
// @ts-check
const { CHINESE_URL } = require('./constants');
/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */
const sidebars = {
tutorialSidebar: [
{ type: 'autogenerated', dirName: '.' },
{
type: 'autogenerated',
dirName: '.'
},
{
type: 'link',
label: 'Chinese',
href: CHINESE_URL
},
{
type: 'html',
value: '<div id="sidebar-ads"></div>'