Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dragomano committed Mar 31, 2024
1 parent ffdb617 commit 30d4024
Show file tree
Hide file tree
Showing 7 changed files with 101 additions and 76 deletions.
39 changes: 19 additions & 20 deletions docs/.vitepress/locales/el.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,29 +8,29 @@ export default {
nav: [
{
text: 'Αρχική',
link: '/',
link: '/'
},
{
text: 'Εισαγωγή',
link: '/intro',
link: '/intro'
},
{
text: 'Παραδείγματα',
link: '/examples',
link: '/examples'
},
{
text: 'Παρουσίαση',
link: 'https://demo.dragomano.ru/',
text: 'Δοκιμή',
link: 'https://demo.dragomano.ru/'
},
{
text: 'Καταγραφή αλλαγών',
link: '/changelog',
},
link: '/changelog'
}
],
outline: { label: 'Σε αυτήν την σελίδα' },
docFooter: {
prev: 'Προηγούμενη σελίδα',
next: 'Επόμενη σελίδα',
next: 'Επόμενη σελίδα'
},
darkModeSwitchLabel: 'Εμφάνιση',
lightModeSwitchTitle: 'Εναλλαγή σε φωτεινό θέμα',
Expand All @@ -40,17 +40,16 @@ export default {
langMenuLabel: 'Αλλαγή γλώσσας',
notFound: {
title: 'Η ΣΕΛΙΔΑ ΔΕΝ ΒΡΕΘΗΚΕ',
quote:
'Αλλά αν δεν αλλάξετε κατεύθυνση και αν συνεχίσετε να ψάχνετε, μπορεί να καταλήξετε εκεί που πηγαίνετε.',
quote: 'Αλλά αν δεν αλλάξετε κατεύθυνση και αν συνεχίσετε να ψάχνετε, μπορεί να καταλήξετε εκεί που πηγαίνετε.',
linkLabel: 'πήγαινε στην αρχική',
linkText: 'Πήγαινε με στην αρχική',
linkText: 'Πήγαινε με στην αρχική'
},
search: {
options: {
translations: {
button: {
buttonText: 'Αναζήτηση',
buttonAriaLabel: 'Αναζήτηση',
buttonAriaLabel: 'Αναζήτηση'
},
modal: {
displayDetails: 'Εμφάνιση λεπτομερούς λίστας',
Expand All @@ -60,11 +59,11 @@ export default {
footer: {
selectText: 'επέλεξε',
navigateText: 'να πλοηγηθείς',
closeText: 'να κλείσεις',
},
},
},
},
},
},
};
closeText: 'να κλείσεις'
}
}
}
}
}
}
};
37 changes: 18 additions & 19 deletions docs/.vitepress/locales/it.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,29 +8,29 @@ export default {
nav: [
{
text: 'Inizio',
link: '/',
link: '/'
},
{
text: 'Introduzione',
link: '/intro',
link: '/intro'
},
{
text: 'Esempi',
link: '/examples',
link: '/examples'
},
{
text: 'Demo',
link: 'https://demo.dragomano.ru/',
link: 'https://demo.dragomano.ru/'
},
{
text: 'Changelog',
link: '/changelog',
},
link: '/changelog'
}
],
outline: { label: 'In questa pagina' },
docFooter: {
prev: 'Pagina precedente',
next: 'Pagina successiva',
next: 'Pagina successiva'
},
darkModeSwitchLabel: 'Aspetto',
lightModeSwitchTitle: 'Passa al tema chiaro',
Expand All @@ -40,17 +40,16 @@ export default {
langMenuLabel: 'Cambia lingua',
notFound: {
title: 'PAGINA NON TROVATA',
quote:
'Ma se non cambi direzione e se continui a guardare, potresti finire dove stai andando.',
quote: 'Ma se non cambi direzione e se continui a guardare, potresti finire dove stai andando.',
linkLabel: 'Vai alla home',
linkText: 'Vai alla Home',
linkText: 'Vai alla Home'
},
search: {
options: {
translations: {
button: {
buttonText: 'Cerca',
buttonAriaLabel: 'Cerca',
buttonAriaLabel: 'Cerca'
},
modal: {
displayDetails: 'Visualizza lista dettagliata',
Expand All @@ -60,11 +59,11 @@ export default {
footer: {
selectText: 'seleziona',
navigateText: 'naviga',
closeText: 'chiudi',
},
},
},
},
},
},
};
closeText: 'chiudi'
}
}
}
}
}
}
};
36 changes: 18 additions & 18 deletions docs/.vitepress/locales/ru.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,29 +8,29 @@ export default {
nav: [
{
text: 'Главная',
link: '/',
link: '/'
},
{
text: 'Введение',
link: '/intro',
link: '/intro'
},
{
text: 'Примеры',
link: '/examples',
link: '/examples'
},
{
text: 'Демка',
link: 'https://demo.dragomano.ru/',
text: 'Демонстрация',
link: 'https://demo.dragomano.ru/'
},
{
text: 'Обновления',
link: '/changelog',
},
link: '/changelog'
}
],
outline: { label: 'Содержание этой страницы' },
docFooter: {
prev: 'Предыдущая страница',
next: 'Следующая страница',
next: 'Следующая страница'
},
darkModeSwitchLabel: 'Оформление',
lightModeSwitchTitle: 'Переключить на светлую тему',
Expand All @@ -42,14 +42,14 @@ export default {
title: 'СТРАНИЦА НЕ НАЙДЕНА',
quote: 'Но если не менять направление и продолжать искать, то можно оказаться там, где надо.',
linkLabel: 'перейти на главную',
linkText: 'Вернуться на главную',
linkText: 'Вернуться на главную'
},
search: {
options: {
translations: {
button: {
buttonText: 'Поиск',
buttonAriaLabel: 'Поиск',
buttonAriaLabel: 'Поиск'
},
modal: {
displayDetails: 'Отобразить подробный список',
Expand All @@ -59,11 +59,11 @@ export default {
footer: {
selectText: 'выбрать',
navigateText: 'перейти',
closeText: 'закрыть',
},
},
},
},
},
},
};
closeText: 'закрыть'
}
}
}
}
}
}
};
2 changes: 1 addition & 1 deletion docs/src/el/how-to/help-to-project.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ description: Οδηγίες για το πώς να βοηθήσετε στον
- Τεκμηρίωση - μπορείτε να εξηγήσετε ένα βαρετό πράγμα με ελκυστικό τρόπο; Τότε δοκιμάστε το!
- Μεταφράσεις - οι μεταφράσεις χρειάζονται συνεχώς [αναθεώρηση, διόρθωση και βελτίωση](https://crowdin.com/project/light-portal).
- Άρθρα και κριτικές - σας αρέσει να γράφετε; Πάντα θα υπάρχουν αναγνώστες!
- Χορηγίες - [donations](https://ko-fi.com/dragomano) είναι πάντα ευπρόσδεκτες.
- Χορηγίες - [δωρεές](https://ko-fi.com/dragomano/) είναι πάντα ευπρόσδεκτες.
21 changes: 15 additions & 6 deletions docs/src/el/plugins/all-hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ public function prepareEditor(array $object): void
if ($object['type'] !== 'markdown')
return;

$this->loadLanguage('Editor');
Lang::load('Editor');

$this->loadExtCSS('https://cdn.jsdelivr.net/npm/easymde@2/dist/easymde.min.css');
Theme::loadCSSFile('https://cdn.jsdelivr.net/npm/easymde@2/dist/easymde.min.css', ['external' => true]);

$this->addInlineCss('
Theme::addInlineCss('
.editor-toolbar button {
box-shadow: none;
}');
Expand Down Expand Up @@ -345,7 +345,12 @@ public function commentButtons(array $comment, array &$buttons): void
```php
public function addSettings(array &$settings): void
{
$settings['disqus'][] = ['text', 'shortname', 'subtext' => Lang::$txt['lp_disqus']['shortname_subtext'], 'required' => true];
$settings['disqus'][] = [
'text',
'shortname',
'subtext' => Lang::$txt['lp_disqus']['shortname_subtext'],
'required' => true,
];
}
```

Expand Down Expand Up @@ -410,7 +415,10 @@ public function customLayoutExtensions(array &$extensions): void
```php
public function frontAssets(): void
{
$this->loadExtJS('https://' . Utils::$context['lp_disqus_plugin']['shortname'] . '.disqus.com/count.js');
Theme::loadJavaScriptFile(
'https://' . Utils::$context['lp_disqus_plugin']['shortname'] . '.disqus.com/count.js',
['external' => true],
);
}
```

Expand Down Expand Up @@ -440,7 +448,8 @@ public function frontTopics(array &$columns, array &$tables): void
```php
public function frontTopicsOutput(array &$topics, array $row): void
{
$topics[$row['id_topic']]['rating'] = empty($row['total_votes']) ? 0 : (number_format($row['total_value'] / $row['total_votes']));
$topics[$row['id_topic']]['rating'] = empty($row['total_votes'])
? 0 : (number_format($row['total_value'] / $row['total_votes']));
}
```

Expand Down
21 changes: 15 additions & 6 deletions docs/src/it/plugins/all-hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ public function prepareEditor(array $object): void
if ($object['type'] !== 'markdown')
return;

$this->loadLanguage('Editor');
Lang::load('Editor');

$this->loadExtCSS('https://cdn.jsdelivr.net/npm/easymde@2/dist/easymde.min.css');
Theme::loadCSSFile('https://cdn.jsdelivr.net/npm/easymde@2/dist/easymde.min.css', ['external' => true]);

$this->addInlineCss('
Theme::addInlineCss('
.editor-toolbar button {
box-shadow: none;
}');
Expand Down Expand Up @@ -345,7 +345,12 @@ public function commentButtons(array $comment, array &$buttons): void
```php
public function addSettings(array &$settings): void
{
$settings['disqus'][] = ['text', 'shortname', 'subtext' => Lang::$txt['lp_disqus']['shortname_subtext'], 'required' => true];
$settings['disqus'][] = [
'text',
'shortname',
'subtext' => Lang::$txt['lp_disqus']['shortname_subtext'],
'required' => true,
];
}
```

Expand Down Expand Up @@ -410,7 +415,10 @@ public function customLayoutExtensions(array &$extensions): void
```php
public function frontAssets(): void
{
$this->loadExtJS('https://' . Utils::$context['lp_disqus_plugin']['shortname'] . '.disqus.com/count.js');
Theme::loadJavaScriptFile(
'https://' . Utils::$context['lp_disqus_plugin']['shortname'] . '.disqus.com/count.js',
['external' => true],
);
}
```

Expand Down Expand Up @@ -440,7 +448,8 @@ public function frontTopics(array &$columns, array &$tables): void
```php
public function frontTopicsOutput(array &$topics, array $row): void
{
$topics[$row['id_topic']]['rating'] = empty($row['total_votes']) ? 0 : (number_format($row['total_value'] / $row['total_votes']));
$topics[$row['id_topic']]['rating'] = empty($row['total_votes'])
? 0 : (number_format($row['total_value'] / $row['total_votes']));
}
```

Expand Down
21 changes: 15 additions & 6 deletions docs/src/ru/plugins/all-hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ public function prepareEditor(array $object): void
if ($object['type'] !== 'markdown')
return;

$this->loadLanguage('Editor');
Lang::load('Editor');

$this->loadExtCSS('https://cdn.jsdelivr.net/npm/easymde@2/dist/easymde.min.css');
Theme::loadCSSFile('https://cdn.jsdelivr.net/npm/easymde@2/dist/easymde.min.css', ['external' => true]);

$this->addInlineCss('
Theme::addInlineCss('
.editor-toolbar button {
box-shadow: none;
}');
Expand Down Expand Up @@ -345,7 +345,12 @@ public function commentButtons(array $comment, array &$buttons): void
```php
public function addSettings(array &$settings): void
{
$settings['disqus'][] = ['text', 'shortname', 'subtext' => Lang::$txt['lp_disqus']['shortname_subtext'], 'required' => true];
$settings['disqus'][] = [
'text',
'shortname',
'subtext' => Lang::$txt['lp_disqus']['shortname_subtext'],
'required' => true,
];
}
```

Expand Down Expand Up @@ -410,7 +415,10 @@ public function customLayoutExtensions(array &$extensions): void
```php
public function frontAssets(): void
{
$this->loadExtJS('https://' . Utils::$context['lp_disqus_plugin']['shortname'] . '.disqus.com/count.js');
Theme::loadJavaScriptFile(
'https://' . Utils::$context['lp_disqus_plugin']['shortname'] . '.disqus.com/count.js',
['external' => true],
);
}
```

Expand Down Expand Up @@ -440,7 +448,8 @@ public function frontTopics(array &$columns, array &$tables): void
```php
public function frontTopicsOutput(array &$topics, array $row): void
{
$topics[$row['id_topic']]['rating'] = empty($row['total_votes']) ? 0 : (number_format($row['total_value'] / $row['total_votes']));
$topics[$row['id_topic']]['rating'] = empty($row['total_votes'])
? 0 : (number_format($row['total_value'] / $row['total_votes']));
}
```

Expand Down

0 comments on commit 30d4024

Please sign in to comment.