mirror of
https://github.com/strapi/strapi.git
synced 2025-08-11 18:27:22 +00:00
Merge pull request #4619 from strapi/revert-4614-docs-warning-alpha
Revert "Revert docs update"
This commit is contained in:
commit
24fde718db
@ -20,6 +20,18 @@
|
|||||||
>{{ $siteTitle }}</span>
|
>{{ $siteTitle }}</span>
|
||||||
</router-link>
|
</router-link>
|
||||||
|
|
||||||
|
<span
|
||||||
|
class="deprecated"
|
||||||
|
v-if="isAlpha">
|
||||||
|
Deprecated docs -
|
||||||
|
<router-link
|
||||||
|
:to="$localePath"
|
||||||
|
class="home-link"
|
||||||
|
>
|
||||||
|
current version
|
||||||
|
</router-link>
|
||||||
|
</span>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
class="links"
|
class="links"
|
||||||
:style="linksWrapMaxWidth ? {
|
:style="linksWrapMaxWidth ? {
|
||||||
@ -43,7 +55,8 @@ export default {
|
|||||||
components: { SidebarButton, NavLinks, AlgoliaSearchBox, SearchBox},
|
components: { SidebarButton, NavLinks, AlgoliaSearchBox, SearchBox},
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
linksWrapMaxWidth: null
|
linksWrapMaxWidth: null,
|
||||||
|
isAlpha: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted () {
|
mounted () {
|
||||||
@ -59,6 +72,7 @@ export default {
|
|||||||
}
|
}
|
||||||
handleLinksWrapWidth()
|
handleLinksWrapWidth()
|
||||||
window.addEventListener('resize', handleLinksWrapWidth, false)
|
window.addEventListener('resize', handleLinksWrapWidth, false)
|
||||||
|
this.isAlpha = /documentation\/3.0.0-alpha.x/.test(window.location.href)
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
algolia () {
|
algolia () {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user