Skip to content
This repository was archived by the owner on Jan 23, 2020. It is now read-only.
Open
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
2 changes: 0 additions & 2 deletions README.md

This file was deleted.

9 changes: 6 additions & 3 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ module.exports = {
{ text: 'Hello', link: '/hello' },
{ text: 'Articles', link: '/articles' },
{ text: 'Media', link: '/media' },
]

],
logo: '/artris_logo.svg',
search: false,
githubIcon: '/github_icon.svg',
twitterIcon: '/twitter_icon.svg'
}
}
}
16 changes: 16 additions & 0 deletions docs/.vuepress/public/artris_logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions docs/.vuepress/public/github_icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions docs/.vuepress/public/twitter_icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
46 changes: 46 additions & 0 deletions docs/.vuepress/theme/Icons.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<template>
<ul style="list-style: none;">
<li>
<a href="https://github.com/Artris">
<img class="icon-github"
v-if="$site.themeConfig.githubIcon"
:src="$withBase($site.themeConfig.githubIcon)">
</a>
</li>
<li>
<a href="https://twitter.com/artris_code">
<img class="icon-twitter"
v-if="$site.themeConfig.githubIcon"
:src="$withBase($site.themeConfig.twitterIcon)">
</a>
</li>
</ul>
</template>

<style lang="stylus">
@import './styles/config.styl';

.icon-github {
position: relative;
min-width: $navbarHeight - 1.4rem;
top: -10 rem;
left: 100 rem;
width: 30px;
height: 30px;
margin-bottom: 1 rem;
}

.icon-twitter {
position: relative;
min-width: $navbarHeight - 1.4rem;
top: -10 rem;
left: 100 rem;
width: 30px;
height: 30px;
margin-bottom: 1 rem;
}

.ul {
list-style: none;
}
</style>
41 changes: 21 additions & 20 deletions docs/.vuepress/theme/Layout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<slot name="sidebar-top" slot="top"/>
<slot name="sidebar-bottom" slot="bottom"/>
</Sidebar>

<div class="custom-layout" v-if="$page.frontmatter.layout">
<component :is="$page.frontmatter.layout"/>
</div>
Expand All @@ -17,45 +18,45 @@
<slot name="page-top" slot="top"/>
<slot name="page-bottom" slot="bottom"/>
</Page>
<Icons/>
</div>
</template>

<script>
import Vue from 'vue'
import nprogress from 'nprogress'
import Home from './Home.vue'
import Navbar from './Navbar.vue'
import Page from './Page.vue'
import Sidebar from './Sidebar.vue'
import { resolveSidebarItems } from './util'
import Vue from "vue";
import nprogress from "nprogress";
import Home from "./Home.vue";
import Navbar from "./Navbar.vue";
import Page from "./Page.vue";
import Sidebar from "./Sidebar.vue";
import Icons from "./Icons.vue";
import { resolveSidebarItems } from "./util";

export default {
components: { Home, Page, Sidebar, Navbar },
data () {
components: { Home, Page, Sidebar, Navbar, Icons },
data() {
return {
isSidebarOpen: false
}
};
},

computed: {
shouldShowNavbar () {
const { themeConfig } = this.$site
const { frontmatter } = this.$page
if (
frontmatter.navbar === false ||
themeConfig.navbar === false) {
return false
shouldShowNavbar() {
const { themeConfig } = this.$site;
const { frontmatter } = this.$page;
if (frontmatter.navbar === false || themeConfig.navbar === false) {
return false;
}
return (
this.$title ||
themeConfig.logo ||
themeConfig.repo ||
themeConfig.nav ||
this.$themeLocaleConfig.nav
)
);
},
shouldShowSidebar () {
const { frontmatter } = this.$page
shouldShowSidebar() {
const { frontmatter } = this.$page;
return (
!frontmatter.layout &&
!frontmatter.home &&
Expand Down
2 changes: 1 addition & 1 deletion docs/.vuepress/theme/Navbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default {
.logo
height $navbarHeight - 1.4rem
min-width $navbarHeight - 1.4rem
margin-right 0.8rem
margin-left 50rem
vertical-align top
.site-name
font-size 1.3rem
Expand Down
1 change: 1 addition & 0 deletions docs/lazy-jar/lazy-jar-article-1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<app></app>