Skip to content

Commit

Permalink
update vitepress and sponsorz
Browse files Browse the repository at this point in the history
  • Loading branch information
pirog committed Feb 2, 2024
1 parent a845c58 commit 74f48cd
Show file tree
Hide file tree
Showing 8 changed files with 221 additions and 39 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## v1.0.0-beta.24 - [February 2, 2024](https://github.com/lando/vitepress-theme-default-plus/releases/tag/v1.0.0-beta.24)

* Updated to `[email protected]`
* Updated `sponsors.yaml`

## v1.0.0-beta.23 - [February 1, 2024](https://github.com/lando/vitepress-theme-default-plus/releases/tag/v1.0.0-beta.23)

* Fixed collection `WSOD` in some `undefined` id situations
Expand Down
5 changes: 4 additions & 1 deletion config/landov3.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import {fileURLToPath} from 'node:url';
import yaml from 'js-yaml';

const __dirname = dirname(fileURLToPath(import.meta.url));
const sponsors = yaml.load(readFileSync(resolve(__dirname, '..', 'sponsors.yaml'), 'utf8'));
const patriots = sponsors.filter(sponsor => sponsor.tier === 'patriot');

export default function({landoPlugin, version}) {
const baseUrl = landoPlugin ? `https://docs.lando.dev/${landoPlugin}` : 'https://docs.lando.dev';
Expand Down Expand Up @@ -203,7 +205,8 @@ export default function({landoPlugin, version}) {
sponsors: {
text: 'your logo?',
link: 'https://lando.dev/sponsor',
data: yaml.load(readFileSync(resolve(__dirname, '..', 'sponsors.yml'), 'utf8')),
data: patriots,
all: sponsors,
},
team: [],
},
Expand Down
6 changes: 4 additions & 2 deletions config/landov4.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import {fileURLToPath} from 'node:url';
import yaml from 'js-yaml';

const __dirname = dirname(fileURLToPath(import.meta.url));
const sponsors = yaml.load(readFileSync(resolve(__dirname, '..', 'sponsors.yaml'), 'utf8'));
const patriots = sponsors.filter(sponsor => sponsor.tier === 'patriot');

export default function({landoPlugin, version}) {
const baseUrl = landoPlugin ? `https://docs.lando.dev/${landoPlugin}` : 'https://docs.lando.dev';
Expand All @@ -18,7 +20,6 @@ export default function({landoPlugin, version}) {
],
} : false;


return {
base,
collections: {},
Expand Down Expand Up @@ -204,7 +205,8 @@ export default function({landoPlugin, version}) {
sponsors: {
text: 'your logo?',
link: 'https://lando.dev/sponsor',
data: yaml.load(readFileSync(resolve(__dirname, '..', 'sponsors.yml'), 'utf8')),
data: patriots,
all: sponsors,
},
team: [],
},
Expand Down
1 change: 1 addition & 0 deletions docs/.vitepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export default defineConfig({
description: 'The VitePress default theme with some MOARPOWAH!',
base: '/',
lang: 'en-US',
landoDocs: 3,
head: [
['link', {rel: 'icon', type: 'image/png', href: '/images/vitepress-lando-logo-mini.png'}],
['meta', {name: 'og:type', content: 'website'}],
Expand Down
117 changes: 87 additions & 30 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
"node-html-parser": "^6.1.12",
"sass": "^1.69.7",
"timeago.js": "^4.0.2",
"vitepress": "^1.0.0-rc.40",
"vitepress-plugin-tabs": "^0.5.0",
"vue": "^3.3.12"
},
Expand All @@ -54,6 +53,7 @@
"eslint": "^7.32.0",
"eslint-config-google": "^0.9.1",
"eslint-plugin-vue": "^8.0.3",
"vitepress": "^1.0.0-rc.41",
"vue-eslint-parser": "^9.3.2"
}
}
Loading

0 comments on commit 74f48cd

Please sign in to comment.