31 lines
709 B
Vue
31 lines
709 B
Vue
<template>
|
|
<div class="editLink" v-if="editUrl">
|
|
<em>Caught a mistake or want to contribute to the documentation? <a target="_blank" :href="editUrl">Edit this page on GitHub<OutboundLink /></a></em>
|
|
</div>
|
|
</template>
|
|
|
|
<style lang="stylus">
|
|
.editLink
|
|
border-top 1px solid #eee
|
|
padding 1rem
|
|
font-size 10pt
|
|
margin-bottom -3rem
|
|
.esh-note
|
|
color #999
|
|
font-size 8pt
|
|
svg
|
|
height: 10px !important
|
|
width: 10px !important
|
|
</style>
|
|
|
|
<script>
|
|
export default {
|
|
computed: {
|
|
editUrl () {
|
|
if (!this.$page || !this.$page.frontmatter.source) return null
|
|
return this.$page.frontmatter.source.replace('/blob/', '/edit/').replace('/developer/', '/developers/')
|
|
}
|
|
}
|
|
}
|
|
</script>
|