Cleanup project

This commit is contained in:
ErickSkrauch committed 2026-10-29 01:11:01 +01:00
1 parent a308aa1c10
commit bc3245cd34
6 files changed
+11 -43

No files matched your search

+1 -2
View File
@@ -10,8 +10,7 @@ files:
# Documentation pages
- source: /docs/**/*
translation: /i18n/%two_letters_code%/docusaurus-plugin-content-docs/current/**/%original_file_name%
# Translate whole paragraphs instead of single sentences: the sentence splitting breaks on abbreviations
# like "т.к." or "см." and loses the context
# Translate whole paragraphs instead of single sentences
content_segmentation: false
# Crowdin language => Docusaurus locale (i18n directory name). Must match the localeConfigs
# in docusaurus.config.ts and LOCALES_MAPPING in scripts/crowdin-locales.mjs
+4 -11
View File
@@ -1,10 +1,8 @@
import {themes as prismThemes} from 'prism-react-renderer';
import type {Config, I18nLocaleConfig} from '@docusaurus/types';
import { themes as prismThemes } from 'prism-react-renderer';
import type { Config, I18nLocaleConfig } from '@docusaurus/types';
import type * as Preset from '@docusaurus/preset-classic';
import remarkFigure from './src/remark/figure';
// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
// All locales the documentation can be built for. Translations are downloaded from Crowdin during the CI build
const localeConfigs: Record<string, Partial<I18nLocaleConfig>> = {
ru: {
@@ -130,10 +128,6 @@ const config: Config = {
{
title: 'Сообщество',
items: [
{
label: 'X (Twitter)',
href: 'https://x.com/erickskrauch',
},
{
label: 'YouTube',
href: 'https://www.youtube.com/c/ElyByOfficial',
@@ -149,9 +143,8 @@ const config: Config = {
],
},
],
// {year} is replaced with the build year by the swizzled Footer/Copyright component, so the translatable
// string doesn't change every year
copyright: 'Copyright © {year} Ely.by. Built with Docusaurus.',
// {year} is replaced with the build year by the swizzled Footer/Copyright component
copyright: 'Ely.by © {year}. Создано с использованием Docusaurus.',
},
prism: {
theme: prismThemes.github,
+3 -3
View File
@@ -1,9 +1,9 @@
// Assembles the site root after "docusaurus build".
// Every locale is built into its own build/<prefix>/ directory (see i18n.localeConfigs in
// docusaurus.config.ts), so files that must live in the site root are placed here.
import {cpSync, copyFileSync, existsSync, readdirSync, readFileSync, rmSync, writeFileSync} from 'node:fs';
import {dirname, join} from 'node:path';
import {fileURLToPath} from 'node:url';
import { cpSync, copyFileSync, existsSync, readdirSync, readFileSync, rmSync, writeFileSync } from 'node:fs';
import { dirname, join } from 'node:path';
import { fileURLToPath } from 'node:url';
const SITE_URL = 'https://docs.ely.by';
const DEFAULT_PREFIX = 'ru';
-24
View File
@@ -2,32 +2,8 @@ import type {SidebarsConfig} from '@docusaurus/plugin-content-docs';
// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
/**
* Creating a sidebar enables you to:
- create an ordered group of docs
- render a sidebar for each doc of that group
- provide next/previous navigation
The sidebars can be generated from the filesystem, or explicitly defined here.
Create as many sidebars as you want.
*/
const sidebars: SidebarsConfig = {
// By default, Docusaurus generates a sidebar from the docs folder structure
tutorialSidebar: [{type: 'autogenerated', dirName: '.'}],
// But you can create a sidebar manually
/*
tutorialSidebar: [
'intro',
'hello',
{
type: 'category',
label: 'Tutorial',
items: ['tutorial-basics/create-a-document'],
},
],
*/
};
export default sidebars;
+1 -1
View File
@@ -1,4 +1,4 @@
import type {Image, Paragraph, Parent, Root} from 'mdast';
import type { Image, Paragraph, Parent, Root } from 'mdast';
// Turns a paragraph that contains only an image with a title into a figure with a caption:
//
+2 -2
View File
@@ -1,6 +1,6 @@
import React, {type ReactNode} from 'react';
import React, { type ReactNode } from 'react';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import type {Props} from '@theme/Footer/Copyright';
import type { Props } from '@theme/Footer/Copyright';
// Replaces the {year} placeholder in the copyright with the year of the build.
// The year is taken from the build time (not the client's clock) to avoid hydration mismatches