diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index c23b7f68..cb92ee0e 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -32,13 +32,10 @@ jobs:
python-version: "3.12"
- name: Install mkdocs
- run: pip install mkdocs mkdocs-material mkdocs-open-in-new-tab mkdocs-minify-plugin
+ run: pip install mkdocs mkdocs-material mkdocs-open-in-new-tab mkdocs-minify-plugin mkdocs-static-i18n
- - name: Build en docs
- run: mkdocs build -f config/en/mkdocs.yml
-
- - name: Build ru docs
- run: mkdocs build -f config/ru/mkdocs.yml
+ - name: Build docs
+ run: mkdocs build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
diff --git a/config/ru/mkdocs.yml b/config/ru/mkdocs.yml
index 0a695246..57210e52 100644
--- a/config/ru/mkdocs.yml
+++ b/config/ru/mkdocs.yml
@@ -3,11 +3,7 @@ site_author: Jsinco, szarkan
repo_url: https://github.com/Jsinco/BreweryX
-docs_dir: '../../docs/ru'
-site_dir: '../../generated/ru'
-
theme:
- language: ru
name: material
palette:
scheme: slate
@@ -69,8 +65,18 @@ extra_css:
- stylesheets/my.css
plugins:
- open-in-new-tab
- - search:
- lang: ru
+ - search
+ - i18n:
+ docs_structure: folder
+ languages:
+ - locale: en
+ default: true
+ name: English
+ build: true
+ - locale: ru
+ default: false
+ name: Русский
+ build: true
- minify:
minify_html: true
extra:
diff --git a/docs/en/index.md b/docs/en/index.md
index 2752ae0c..11e7385c 100644
--- a/docs/en/index.md
+++ b/docs/en/index.md
@@ -54,7 +54,7 @@ Original Brewery is **decade** old with no support, so we took this plugin into
- Constantly adding new things, fixing bugs, and giving life to this old plugin!
-
+
\ No newline at end of file
diff --git a/docs/stylesheets/extra.css b/docs/stylesheets/extra.css
index 887c0ee3..761a9e3a 100644
--- a/docs/stylesheets/extra.css
+++ b/docs/stylesheets/extra.css
@@ -157,49 +157,6 @@ td {
transition: border .5s,box-shadow .5s;
}
-@media screen and (max-width: 76.234375em) {
- .md-nav--primary .md-nav__title[for=__drawer] {
- background-color: #05050580;
- color: var(--md-primary-bg-color);
- font-weight: 700;
- }
-}
-
-.md-nav__list {
- font-family: 'Inter', sans-serif;
-}
-
-.md-nav__link {
- margin-top: 0;
-}
-
-.md-nav--primary .md-nav__item>.md-nav__link {
- margin-right: .4rem;
- padding: 8px;
-}
-
-.md-nav__link:hover {
- background-color: #38383880; /* Change to desired hover color */
- border-radius: 8px; /* Optional: Add rounded corners */
- transition: background-color 0.125s; /* Smooth transition for hover effect */
-}
-
-@media (min-width: 1220px) {
- label.md-nav__link {
- font-size: 1rem;
- margin-left: -12px;
- }
-}
-
-.md-nav {
- font-size: .75rem;
- font-weight: 450;
-}
-
-.md-tabs__link {
- font-weight: 500;
-}
-
/* Это - разделение полосочками между верхними табами */
/* .md-tabs__item:hover {
background-color: #38383880;
@@ -235,11 +192,6 @@ td {
color: var(--md-primary-bg-color);
}
-.md-typeset .grid.cards>ol>li, .md-typeset .grid.cards>ul>li, .md-typeset .grid>.card {
- border-radius: 0.4rem;
- border: 0.125rem solid var(--md-typeset-table-color);
-}
-
.card {
position: relative; /* Set .card to position relative */
display: block; /* Make the link a block to fill the entire card */
diff --git a/config/en/mkdocs.yml b/mkdocs.yml
similarity index 82%
rename from config/en/mkdocs.yml
rename to mkdocs.yml
index 395fc591..3f32fc69 100644
--- a/config/en/mkdocs.yml
+++ b/mkdocs.yml
@@ -2,8 +2,6 @@ site_name: BreweryX
site_author: Jsinco, szarkan
repo_url: https://github.com/Jsinco/BreweryX
-docs_dir: '../../docs/en'
-site_dir: '../../generated/en'
theme:
language: en
@@ -72,14 +70,25 @@ plugins:
lang: en
- minify:
minify_html: true
+ - i18n:
+ docs_structure: folder
+ languages:
+ - locale: en
+ default: true
+ name: English
+ build: true
+ - locale: ru
+ default: false
+ name: Русский
+ build: true
extra:
- alternate:
- - name: English
- link: /en/
- lang: en
- - name: Русский
- link: /ru/
- lang: ru
+ # alternate:
+ # - name: English
+ # link: /en/
+ # lang: en
+ # - name: Русский
+ # link: /ru/
+ # lang: ru
status:
new: Recently updated!
inprogress: Article is in progress