Skip to content

Commit 79c5bb8

Browse files
committed
wip documentation
1 parent 4e565ee commit 79c5bb8

File tree

9 files changed

+92
-0
lines changed

9 files changed

+92
-0
lines changed

website/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.temp
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<template>
2+
<div class="definition">
3+
<h1>{{name}}</h1>
4+
<p>{{definition.description}}</p>
5+
<table style="width:100%">
6+
<tr>
7+
<th>Attribute</th>
8+
<th>Type</th>
9+
<th>Description</th>
10+
</tr>
11+
<tr v-for="value, name in definition.items[1].properties">
12+
<th>{{name}}</th>
13+
<th>{{value.type}}</th>
14+
<th>{{value.description}}</th>
15+
</tr>
16+
</table>
17+
</div>
18+
</template>
19+
20+
<script>
21+
export default {
22+
name: "Definition",
23+
props: {
24+
name: String,
25+
definition: Object
26+
},
27+
methods: {
28+
getAttributes() {
29+
return 0;
30+
}
31+
}
32+
};
33+
</script>
34+
35+
<style>
36+
</style>
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<template>
2+
<div class="definiFor recursive compotion-list">
3+
<definition
4+
v-for="definition, name in schema.definitions"
5+
:definition="definition"
6+
:name="name"
7+
/>
8+
</div>
9+
</template>
10+
11+
<script>
12+
import SCHEMA from "/home/felix/Git/nobeam/latticejson/latticejson/schema.json";
13+
import Definition from "./Definition.vue";
14+
export default {
15+
name: "DefinitionList",
16+
components: Definition,
17+
data() {
18+
return { schema: SCHEMA };
19+
}
20+
};
21+
</script>
22+
23+
<style>
24+
</style>For recursive compo

website/.vuepress/config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
title: 'LatticeJSON',
3+
description: '',
4+
temp: ".temp",
5+
ServiceWorker: true,
6+
};

website/.vuepress/public/hero.png

4.96 KB
Loading

website/.vuepress/public/hero2.png

1.58 KB
Loading

website/.vuepress/public/hero3.png

9.33 KB
Loading

website/.vuepress/public/hero3.svg

Lines changed: 4 additions & 0 deletions
Loading

website/README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
home: true
3+
heroImage: /hero.png
4+
heroText: LatticeJSON
5+
tagline: A modern lattice file format
6+
actionText: Get Started →
7+
actionLink: /definitions/
8+
features:
9+
- title: Simplicity First
10+
details: Minimal setup with markdown-centered project structure helps you focus on writing.
11+
- title: JSON-Powered
12+
details: Enjoy the dev experience of Vue + webpack, use Vue components in markdown, and develop custom themes with Vue.
13+
- title: Performant
14+
details: VuePress generates pre-rendered static HTML for each page, and runs as an SPA once a page is loaded.
15+
footer: MIT Licensed | Copyright © 2018-present Evan You
16+
---
17+
18+
# LatticeJSON
19+
20+
21+
<DefinitionList/>

0 commit comments

Comments
 (0)