Skip to content

Commit

Permalink
Russian language (working now)
Browse files Browse the repository at this point in the history
  • Loading branch information
szarkans committed Aug 12, 2024
1 parent 7279f07 commit 805e1a6
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 71 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
18 changes: 12 additions & 6 deletions config/ru/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions docs/en/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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!

<div class="grid cards" markdown>
<!-- <div class="grid cards" markdown>
- :fontawesome-solid-wine-bottle: Brewing!
Expand All @@ -70,4 +70,4 @@ Original Brewery is **decade** old with no support, so we took this plugin into
- :material-unfold-more-vertical: And so much more!
Plugins, IA & Oraxen items support, cocktails support and etc!
Plugins, IA & Oraxen items support, cocktails support and etc! -->
48 changes: 0 additions & 48 deletions docs/stylesheets/extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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 */
Expand Down
27 changes: 18 additions & 9 deletions config/en/mkdocs.yml → mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 805e1a6

Please sign in to comment.