Skip to content

Commit e8e8c7b

Browse files
author
Lupacescu Eduard
authored
Exclude Eloquent Collection (#102)
* Move custom routes definition from console to app * Apply fixes from StyleCI (#94) * Stop using Eloquent Collection API * Apply fixes from StyleCI (#96) * Policies fix * Apply fixes from StyleCI (#98) * Model JSON:API * Apply fixes from StyleCI (#99) * Custom routes modifier * Apply fixes from StyleCI (#100) * Adapt integration tests * Apply fixes from StyleCI (#101) * Update documentation
1 parent 02c7e2f commit e8e8c7b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+2457
-741
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Laravel magic REST API builder
1+
<p align="center"><img src="https://binaryk.github.io/laravel-restify/assets/img/logo.png"></p>
22

33
<p align="center">
44
<a href="https://travis-ci.org/binaryk/laravel-restify"><img src="https://travis-ci.org/binaryk/laravel-restify.svg" alt="Build Status"></a>

docs/.vuepress/1.0.js

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
module.exports = [
2+
{
3+
title: "Quick Start",
4+
collapsable: false,
5+
children: ['quickstart']
6+
},
7+
{
8+
title: "Repository",
9+
collapsable: false,
10+
children: ['repository-pattern/repository-pattern']
11+
},
12+
{
13+
title: 'Field',
14+
collapsable: false,
15+
children: ['repository-pattern/field'],
16+
},
17+
{
18+
title: 'Rest Controller',
19+
collapsable: false,
20+
children: ['rest-methods/rest-methods'],
21+
},
22+
{
23+
title: 'Filtering',
24+
collapsable: false,
25+
children: ['search/search'],
26+
},
27+
{
28+
title: 'Auth service',
29+
collapsable: false,
30+
children: ['auth/auth'],
31+
},
32+
{
33+
title: 'Error handler',
34+
collapsable: false,
35+
children: ['exception-handler/exception-handler'],
36+
},
37+
];

docs/.vuepress/2.0.js

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
module.exports = [
2+
{
3+
title: "Quick Start",
4+
collapsable: false,
5+
children: ['quickstart']
6+
},
7+
{
8+
title: "Repository",
9+
collapsable: false,
10+
children: ['repository-pattern/repository-pattern']
11+
},
12+
{
13+
title: 'Field',
14+
collapsable: false,
15+
children: ['repository-pattern/field'],
16+
},
17+
{
18+
title: 'Rest Controller',
19+
collapsable: false,
20+
children: ['rest-methods/rest-methods'],
21+
},
22+
{
23+
title: 'Filtering',
24+
collapsable: false,
25+
children: ['search/search'],
26+
},
27+
{
28+
title: 'Auth service',
29+
collapsable: false,
30+
children: ['auth/auth'],
31+
},
32+
{
33+
title: 'Error handler',
34+
collapsable: false,
35+
children: ['exception-handler/exception-handler'],
36+
},
37+
];

docs/.vuepress/config.js

Lines changed: 30 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,48 @@
1+
var versions = ["1.0", "2.0"];
2+
13
module.exports = {
24
title: 'Laravel Restify',
35
description: 'A package to start the REST API',
46
serviceWorker: true,
5-
base: '/laravel-restify/',
7+
base: '/',
68
themeConfig: {
7-
logo: '/assets/img/logo.svg',
9+
logo: '/assets/img/icon.png',
810
displayAllHeaders: true,
911
sidebarDepth: 2,
1012

1113
nav: [
12-
{ text: 'Home', link: '/' },
13-
{ text: 'Guide', link: '/docs/' },
14+
{ text: 'Docs', link: '/docs/2.0/' },
15+
{
16+
text: "Version",
17+
link: "/",
18+
items: [{ text: "1.0", link: "/docs/1.0/" }, { text: "2.0", link: "/docs/2.0/" }]
19+
},
1420
{ text: 'About us', link: 'https://binarcode.com', target: '_blank' }
1521
],
1622

17-
sidebar: [
18-
{
19-
title: 'Quick Start',
20-
path: '/docs/'
21-
},
22-
{
23-
title: 'Repository',
24-
path: '/docs/repository-pattern/repository-pattern',
25-
},
26-
{
27-
title: 'Field',
28-
path: '/docs/repository-pattern/field',
29-
},
30-
{
31-
title: 'Rest Controller',
32-
path: '/docs/rest-methods/rest-methods',
33-
},
34-
{
35-
title: 'Filtering',
36-
path: '/docs/search/search',
37-
},
38-
{
39-
title: 'Auth service',
40-
path: '/docs/auth/auth',
41-
},
42-
{
43-
title: 'Error handler',
44-
path: '/docs/exception-handler/exception-handler',
45-
},
46-
]
23+
sidebar: {
24+
"/docs/1.0/": require("./1.0"),
25+
"/docs/2.0/": require("./2.0")
26+
},
4727
},
4828
plugins: [
4929
'@vuepress/pwa',
30+
(options = {}, context) => ({
31+
extendPageData($page) {
32+
const { regularPath, frontmatter } = $page;
33+
34+
frontmatter.meta = [];
35+
36+
versions.forEach(function(version) {
37+
if ($page.regularPath.includes("/" + version + "/")) {
38+
frontmatter.meta.push({
39+
name: "docsearch:version",
40+
content: version + ".0"
41+
});
42+
}
43+
});
44+
}
45+
})
5046
],
5147
head: [
5248
// Used for PWA
6.09 KB
Loading
2.99 KB
Loading
16.2 KB
Loading
37.3 KB
Loading

0 commit comments

Comments
 (0)