mirror of
https://github.com/go-task/task.git
synced 2026-06-24 21:26:04 +00:00
feat: docusaurus v3 (#1432)
* feat: docusaurus v3 * feat: update release tool to stop it from converting links - this is now done use mdx plugins * fix: broken links * feat: more github links and prettier config * chore: changelog * fix: blog emoji
This commit is contained in:
@@ -9,7 +9,7 @@ const projectId = '574591';
|
||||
const initClient = () => {
|
||||
if (!personalToken) {
|
||||
console.warn(
|
||||
'No crowding personal token, some features might not work as expected'
|
||||
'No crowdin personal token, some features might not work as expected'
|
||||
);
|
||||
return null;
|
||||
}
|
||||
@@ -23,7 +23,7 @@ const initClient = () => {
|
||||
* Get translation progress
|
||||
* @return {object} translation progress
|
||||
*/
|
||||
async function getTranslationProgress() {
|
||||
export async function getTranslationProgress() {
|
||||
let translationProgress = {};
|
||||
const { translationStatusApi } = initClient() || {};
|
||||
|
||||
@@ -44,7 +44,3 @@ async function getTranslationProgress() {
|
||||
|
||||
return translationProgress;
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
getTranslationProgress
|
||||
};
|
||||
|
||||
@@ -5,15 +5,15 @@
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
const darkTheme = require('prism-react-renderer/themes/vsDark/index.cjs.js');
|
||||
import { themes } from 'prism-react-renderer';
|
||||
|
||||
module.exports = {
|
||||
export default {
|
||||
plain: {
|
||||
color: '#D4D4D4',
|
||||
backgroundColor: '#212121'
|
||||
},
|
||||
styles: [
|
||||
...darkTheme.styles,
|
||||
...themes.vsDark.styles,
|
||||
{
|
||||
types: ['title'],
|
||||
style: {
|
||||
|
||||
@@ -5,12 +5,12 @@
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
const lightTheme = require('prism-react-renderer/themes/github/index.cjs.js');
|
||||
import { themes } from 'prism-react-renderer';
|
||||
|
||||
module.exports = {
|
||||
...lightTheme,
|
||||
export default {
|
||||
...themes.vsLight,
|
||||
styles: [
|
||||
...lightTheme.styles,
|
||||
...themes.vsLight.styles,
|
||||
{
|
||||
types: ['title'],
|
||||
style: {
|
||||
|
||||
Reference in New Issue
Block a user