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:
Pete Davison
2023-12-20 19:59:29 -06:00
committed by GitHub
parent 43a2979e77
commit 7c93741670
44 changed files with 5537 additions and 5999 deletions

View File

@@ -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
};

View File

@@ -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: {

View File

@@ -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: {