refactor docs

This commit is contained in:
2025-03-19 14:38:58 +03:00
parent a7548d5e3b
commit 1086a3c681
9 changed files with 1643 additions and 26 deletions

View File

@@ -6,19 +6,19 @@ import type * as Preset from '@docusaurus/preset-classic';
const config: Config = {
title: 'Frontend Docs',
tagline: 'Dinosaurs are cool',
favicon: 'img/favicon.ico',
tagline: 'Made with Dinosaurs',
favicon: 'img/favicon.png',
// Set the production url of your site here
url: 'https://your-docusaurus-site.example.com',
url: 'https://frontend-docs-azure.vercel.app/',
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: '/',
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: 'facebook', // Usually your GitHub org/user name.
projectName: 'docusaurus', // Usually your repo name.
organizationName: 'Redrock corp.', // Usually your GitHub org/user name.
projectName: 'fe-docs', // Usually your repo name.
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
@@ -66,19 +66,19 @@ const config: Config = {
themeConfig: {
// Replace with your project's social card
image: 'img/docusaurus-social-card.jpg',
image: 'svg/developer-logo.svg',
navbar: {
title: 'Frontend Docs',
logo: {
alt: 'Frontend Docs',
src: 'img/logo.svg',
src: 'svg/developer-logo.svg',
},
items: [
{
type: 'docSidebar',
sidebarId: 'tutorialSidebar',
position: 'left',
label: 'Questions',
label: 'Документация',
},
// {to: '/blog', label: 'Blog', position: 'left'},
{
@@ -92,14 +92,40 @@ const config: Config = {
style: 'dark',
links: [
{
title: 'Docs',
title: 'Frontend Docs',
items: [
{
label: 'Questions',
label: 'Документация',
to: '/docs/category/browser',
}
],
},
{
title: 'Ссылки',
items: [
{
label: 'Learn.javascript.ru',
to: 'https://learn.javascript.ru/',
},
{
label: 'Typescript Lang',
to: 'https://www.typescriptlang.org/',
},
{
label: 'React Dev',
to: 'https://ru.react.dev/learn',
},
],
},
{
title: 'Справочники',
items: [
{
label: 'Дока',
to: 'https://doka.guide/'
}
]
}
],
copyright: `Copyright © ${new Date().getFullYear()} My Project, Inc. Built with Docusaurus.`,
},