Skip to content

Commit 169d974

Browse files
committed
website first draft
1 parent 0a67b61 commit 169d974

File tree

10 files changed

+768
-2
lines changed

10 files changed

+768
-2
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,6 @@ yarn-error.log*
2222
*.sw*
2323

2424
yarn.lock
25-
yarn-error.log
25+
yarn-error.log
26+
27+
website/docs/dist

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ vue-grid-layout is a grid layout system, like [Gridster](http://dsmorse.github.i
1313

1414
<br/>
1515

16-
[**[Demo](https://jbaysolutions.github.io/vue-grid-layout/examples/01-basic.html) | [Changelog](/CHANGELOG.md)**]
16+
[**[Demo](https://jbaysolutions.github.io/vue-grid-layout/examples/01-basic.html) | [Changelog](/website/docs/changelog/README.md)**]
1717

1818
English | [简体中文](./README-zh_CN.md)
1919

File renamed without changes.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// import MyFormulateAutocomplete from './components/MyFormulateAutocomplete'
2+
//
3+
// export default function (formulateInstance) {
4+
// formulateInstance.extend({
5+
// components: {
6+
// MyFormulateAutocomplete
7+
// },
8+
// library: {
9+
// autocomplete: {
10+
// classification: 'text',
11+
// component: 'MyFormulateAutocomplete'
12+
// }
13+
// }
14+
// })
15+
// }

website/docs/.vuepress/config.js

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
const description = 'Built-in validation, error handling, grouped & repeatable fields, form generation, and more — make complex form creation a breeze.'
2+
const title = 'Vue Grid Layout - ️A grid layout system for Vue.js'
3+
4+
module.exports = ctx => ({
5+
base: "/vue-grid-layout/",
6+
title,
7+
description,
8+
head: [
9+
// ['link', { rel: "apple-touch-icon", sizes: "180x180", href: "https://vueformulate.com/assets/favicon/apple-touch-icon.png"}],
10+
// ['script', { src: 'https://polyfill.io/v3/polyfill.min.js?features=es2015%2CFunction.name' }]
11+
],
12+
port: 8081,
13+
themeConfig: {
14+
/*sidebar: [
15+
'/guide',
16+
'/changelog'
17+
],*/
18+
nav: [
19+
{ text: 'Home', link: '/' },
20+
{ text: 'Guide', link: '/guide/' },
21+
{ text: 'Changelog', link: '/changelog/' }
22+
],
23+
searchPlaceholder: 'Search...',
24+
smoothScroll: true,
25+
// logo: '/assets/img/logo.png',
26+
repo: 'jbaysolutions/vue-grid-layout',
27+
docsRepo: 'website',
28+
docsDir: 'docs',
29+
editLinks: true,
30+
editLinkText: 'Help improve this page!',
31+
/*algolia: {
32+
apiKey: 'XXX',
33+
indexName: 'vuegridlayout'
34+
}*/
35+
},
36+
plugins: [
37+
// ['live'],
38+
/*[
39+
'@vuepress/google-analytics',
40+
{
41+
'ga': 'UA-00000000-0' // UA-00000000-0
42+
}
43+
],
44+
['seo', {
45+
title: $page => `${$page.title} — Vue Grid Layout`,
46+
image: () => 'https://jbaysolutions.github.io/vue-grid-layout/assets/img/og.jpg',
47+
siteTitle: (_, $site) => $site.title,
48+
description: $page => $page.frontmatter.description || description,
49+
author: (_, $site) => $site.themeConfig.author,
50+
tags: $page => $page.frontmatter.tags,
51+
twitterCard: _ => 'summary_large_image',
52+
type: () => 'article',
53+
url: (_, $site, path) => ($site.themeConfig.___domain || '') + path,
54+
publishedAt: $page => $page.frontmatter.date && new Date($page.frontmatter.date),
55+
modifiedAt: $page => $page.lastUpdated && new Date($page.lastUpdated),
56+
}]*/
57+
],
58+
dest: 'public'
59+
})

website/docs/.vuepress/enhanceApp.js

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/**
2+
* App level enhancements. Read more here:
3+
* https://vuepress.vuejs.org/guide/basic-config.html#app-level-enhancements
4+
*/
5+
// import VueFormulate from '@braid/vue-formulate'
6+
// import pageComponents from '@internal/page-components'
7+
import Autocomplete from './Autocomplete'
8+
// import ArticleCard from './components/ArticleCard'
9+
// import GithubButton from 'vue-github-button'
10+
// import VTooltip from 'v-tooltip'
11+
12+
// import '../../node_modules/@braid/vue-formulate/themes/snow/snow.scss'
13+
14+
export default ({ Vue }) => {
15+
16+
/*Vue.use(VueFormulate, {
17+
plugins: [ Autocomplete ]
18+
})*/
19+
20+
// Vue.use(VTooltip)
21+
22+
// for (const [name, component] of Object.entries(pageComponents)) {
23+
// Vue.component(name, component)
24+
// }
25+
// Vue.component('github-button', GithubButton)
26+
// Vue.component('ArticleCard', ArticleCard)
27+
}

website/docs/README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
layout: HomeLayout
3+
home: true
4+
<!--heroImage: /logo.svg-->
5+
heroText: Vue Grid Layout
6+
tagline: A grid layout system for Vue.js
7+
actionText: Get Started →
8+
actionLink: /guide/
9+
features:
10+
- title: ✥ Draggable widgets
11+
details:
12+
- title: ⇲ Resizable widgets
13+
details:
14+
- title: Static widgets
15+
details:
16+
- title: Bounds checking for dragging and resizing
17+
details:
18+
- title: Widgets can be added or removed without rebuilding grid
19+
details:
20+
- title: Layout can be serialized and restored
21+
details:
22+
- title: Automatic RTL support (resizing not working with RTL on 2.2.0)
23+
details:
24+
- title: Responsive
25+
details:
26+
- title: Min/max w/h per item
27+
details:
28+
---
29+
30+
# Demo
31+
32+
33+
TODO (work in progress...)

CHANGELOG.md renamed to website/docs/changelog/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
---
2+
sidebar: auto
3+
---
14
# Changelog
25

36
## 2.3.9 (September 28, 2020)

0 commit comments

Comments
 (0)