Skip to content

Commit

Permalink
Enable v8.x in the docs and README
Browse files Browse the repository at this point in the history
  • Loading branch information
santigarcor committed Mar 28, 2023
1 parent 8dd2b58 commit 2cd62ba
Show file tree
Hide file tree
Showing 16 changed files with 184 additions and 184 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

| Laravel | Laratrust |
| :------------ | :-------------------------------------------------- |
| 10.x | [8.x](//laratrust.santigarcor.me/docs/8.x/) |
| 9.x-10.x | [7.x](//laratrust.santigarcor.me/docs/7.x/) |
| 8.x | [6.x](//laratrust.santigarcor.me/docs/6.x/) |
| 7.x | [6.x](//laratrust.santigarcor.me/docs/6.x/) |
Expand Down
9 changes: 4 additions & 5 deletions config/laratrust.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
| This is the array that contains the information of the user models.
| This information is used in the add-trait command, for the roles and
| permissions relationships with the possible user models, and the
| administration panel to attach roles and permissions to the users.
| administration panel to add roles and permissions to the users.
|
| The key in the array is the name of the relationship inside the roles and permissions.
|
Expand Down Expand Up @@ -246,10 +246,9 @@
| Strict check for roles/permissions inside teams
|--------------------------------------------------------------------------
|
| Determines if a strict check should be done when checking if a role or permission
| is attached inside a team.
| Determines if a strict check should be done when checking if a role or permission is added inside a team.
| If it's false, when checking a role/permission without specifying the team,
| it will check only if the user has attached that role/permission ignoring the team.
| it will check only if the user has added that role/permission ignoring the team.
|
*/
'strict_check' => false,
Expand Down Expand Up @@ -322,7 +321,7 @@
| Laratrust Panel Route Middleware
|--------------------------------------------------------------------------
|
| These middleware will get attached onto each Laratrust panel route.
| These middleware will get added onto each Laratrust panel route.
|
*/
'middleware' => ['web'],
Expand Down
25 changes: 0 additions & 25 deletions deploy.sh

This file was deleted.

87 changes: 56 additions & 31 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
@@ -1,54 +1,79 @@
const { getDocsNavBar, getVersionsLinks, getActiveVersion } = require('./utils');
const {
getDocsNavBar,
getVersionsLinks,
getActiveVersion,
} = require("./utils");

module.exports = {
title: 'Laratrust',
ga: 'UA-84408499-3',
description: 'Laratrust is an easy and flexible way to add roles, permissions and teams authorization to your Laravel application',
title: "Laratrust",
ga: "UA-84408499-3",
description:
"Laratrust is an easy and flexible way to add roles, permissions and teams authorization to your Laravel application",
head: [
['link', { rel: 'icon', href: '/favicon.ico' }],
['meta', { name: 'robots', content: 'index, follow' }],
['meta', { property: 'og:image', content: 'https://laratrust.santigarcor.me/logo.png'}],
['meta', { property: 'og:description', content: 'Laratrust is an easy and flexible way to add roles, permissions and teams authorization to your Laravel application'}],
['meta', { property: 'twitter:description', content: 'Laratrust is an easy and flexible way to add roles, permissions and teams authorization to your Laravel application'}]
["link", { rel: "icon", href: "/favicon.ico" }],
["meta", { name: "robots", content: "index, follow" }],
[
"meta",
{
property: "og:image",
content: "https://laratrust.santigarcor.me/logo.png",
},
],
[
"meta",
{
property: "og:description",
content:
"Laratrust is an easy and flexible way to add roles, permissions and teams authorization to your Laravel application",
},
],
[
"meta",
{
property: "twitter:description",
content:
"Laratrust is an easy and flexible way to add roles, permissions and teams authorization to your Laravel application",
},
],
],
themeConfig: {
logo: '/logo.svg',
logo: "/logo.svg",
activeVersion: getActiveVersion(),
algolia: {
apiKey: 'feb79d4f7397b8f410909711f924d524',
indexName: 'laratrust',
algoliaOptions: { facetFilters: [ "version:$VERSION$"] },
apiKey: "feb79d4f7397b8f410909711f924d524",
indexName: "laratrust",
algoliaOptions: { facetFilters: ["version:$VERSION$"] },
},
lastUpdated: 'Last Updated',
lastUpdated: "Last Updated",
// Assumes GitHub. Can also be a full GitLab url.
repo: 'santigarcor/laratrust',
repo: "santigarcor/laratrust",
// Customising the header label
// Defaults to "GitHub"/"GitLab"/"Bitbucket" depending on `themeConfig.repo`
repoLabel: 'Contribute!',
repoLabel: "Contribute!",

// Optional options for generating "Edit this page" link

// if your docs are in a different repo from your main project:
docsRepo: 'santigarcor/laratrust',
docsRepo: "santigarcor/laratrust",
// if your docs are not at the root of the repo:
docsDir: 'docs',
docsDir: "docs",
// if your docs are in a specific branch (defaults to 'master'):
docsBranch: 'master',
docsBranch: "master",
// defaults to false, set to true to enable
editLinks: true,
// custom text for edit link. Defaults to "Edit this page"
editLinkText: 'Help us improve this page!',
editLinkText: "Help us improve this page!",
sidebar: {
'/docs/5.0/': getDocsNavBar('5.0'),
'/docs/5.1/': getDocsNavBar('5.1'),
'/docs/5.2/': getDocsNavBar('5.2'),
'/docs/6.x/': getDocsNavBar('6.x'),
'/docs/7.x/': getDocsNavBar('7.x'),
'/docs/8.x/': getDocsNavBar('8.x'),
"/docs/5.0/": getDocsNavBar("5.0"),
"/docs/5.1/": getDocsNavBar("5.1"),
"/docs/5.2/": getDocsNavBar("5.2"),
"/docs/6.x/": getDocsNavBar("6.x"),
"/docs/7.x/": getDocsNavBar("7.x"),
"/docs/8.x/": getDocsNavBar("8.x"),
},
nav: [
{ text: 'Docs', link: getActiveVersion().link },
{ text: 'Version', items: getVersionsLinks() },
]
}
}
{ text: "Docs", link: getActiveVersion().link },
{ text: "Version", items: getVersionsLinks() },
],
},
};
Loading

0 comments on commit 2cd62ba

Please sign in to comment.