Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add shortcut link to read the docs within app navbar #576

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 17 additions & 3 deletions src/components/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,13 @@
:state = "state"
@show-custom-modal-content = "showCustomModalContent"
/>

<!-- READ THE DOCS -->
<li>
<a target="_blank" :href="docs_url">
<i :class="g3wtemplate.getFontClass('unknow')" aria-hidden="true"></i>
<span v-t="'help'"></span>
</a>
</li>
<!-- CHANGE MAP -->
<li
v-if = "hasRelatedMaps"
Expand Down Expand Up @@ -800,6 +806,14 @@ export default {
return main_title ? `${main_title} - ${group_name}` : group_name;
},

/**
* @since 3.11.0
*/
docs_url() {
const version = window.initConfig.version.split('-')[0].split('.');
return `https://g3w-suite.readthedocs.io/en/v${version[0].replace('v','')}.${version[1]}.x/`
},

breadcrumb() {
return this.state.content.contentsdata
.filter(c => c.options.crumb)
Expand Down Expand Up @@ -1093,7 +1107,7 @@ export default {

/**
* Toggle sidebar tree items on click
*
*
* @since 3.11.0
*/
toggleSidebarItem(e) {
Expand Down Expand Up @@ -1125,7 +1139,7 @@ export default {

/**
* Add some marging to the logo
*
*
* @since 3.11.0
*/
setImgOffset() {
Expand Down
1 change: 1 addition & 0 deletions src/locales/de.js
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,7 @@ export default {
no: "No",
back: "Zurück",
backto: "Zurück zu ",
help: "Helfen",
changemap: "Karte ändern",
change_session: "Sitzung ändern",
component: "Allgemeine Komponente",
Expand Down
1 change: 1 addition & 0 deletions src/locales/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,7 @@ export default {
no: "No",
back: "Back",
backto: "Back to ",
help: "Help",
changemap: "Change Map",
change_session: "Change Session",
component: "Generic Component",
Expand Down
1 change: 1 addition & 0 deletions src/locales/fi.js
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,7 @@ export default {
no: "Ei",
back: "Palaa",
backto: "Takaisin ",
help: "Auta",
changemap: "Vaihda karttaa",
change_session: "Vaihda istuntoa",
component: "Yleinen komponentti",
Expand Down
1 change: 1 addition & 0 deletions src/locales/fr.js
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,7 @@ export default {
no: "No",
back:"Retour",
backto: "Retour à ",
help: "Aide",
changemap: "Changer de carte",
change_session: "Changer de sessuib",
component: "Composant générique",
Expand Down
1 change: 1 addition & 0 deletions src/locales/it.js
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,7 @@ export default {
no: "No",
back:"Indietro",
backto: "Torna a ",
help: "Aiuto",
changemap: "Cambia Mappa",
change_session: "Cambia Sessione",
component: "Componente Generico",
Expand Down
1 change: 1 addition & 0 deletions src/locales/ro.js
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,7 @@ export default {
no: "Nu",
back: "Înapoi",
backto: "Înapoi la ",
help: "Ajutor",
changemap: "Schimbare Hartă",
change_session: "Schimbați sesiunea",
component: "Componentă Generică",
Expand Down
1 change: 1 addition & 0 deletions src/locales/se.js
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,7 @@ export default {
no: "Nej",
back: "Gå tillbaka",
backto: "Tillbaka ",
help: "Hjälp",
changemap: "Byt karta",
change_session: "Ändra session",
component: "Allmän komponent",
Expand Down