Merge pull request #4613 from strapi/docs-warning-alpha

Fix docs build
This commit is contained in:
Jim LAURIE 2019-11-27 18:06:22 +01:00 committed by GitHub
commit f0766e5b7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,7 +55,8 @@ export default {
components: { SidebarButton, NavLinks, AlgoliaSearchBox, SearchBox},
data () {
return {
linksWrapMaxWidth: null
linksWrapMaxWidth: null,
isAlpha: false
}
},
mounted () {
@ -71,14 +72,11 @@ export default {
}
handleLinksWrapWidth()
window.addEventListener('resize', handleLinksWrapWidth, false)
this.isAlpha = /documentation\/3.0.0-alpha.x/.test(window.location.href)
},
computed: {
algolia () {
return this.$themeLocaleConfig.algolia || this.$site.themeConfig.algolia || {}
},
isAlpha () {
return /documentation\/3.0.0-alpha.x/.test(window.location.href)
}
}
}