Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
e991cc2
chore: update jest to 29.7.0 and babel to 7.26.9
Feb 3, 2026
a34eefd
test: update snapshots for jest 29 format
Feb 3, 2026
0eccef7
chore: update rollup from 2.14.0 to 4.34.8
Feb 3, 2026
fe498ae
chore: update eslint from 7.2.0 to 8.57.1
Feb 3, 2026
5928c5a
style: apply eslint 8 auto-fixes
Feb 3, 2026
cb2d4ed
chore: update lerna from 3.22.0 to 8.2.4
Feb 3, 2026
a0321e8
chore: fix commonjs remnants in esm codebase
Feb 3, 2026
c670ac5
chore: add codacy config to exclude test false positives
Feb 3, 2026
39a93ec
chore: update Node.js to 20.x LTS
Feb 3, 2026
dc678ce
chore: update Node.js to 20.x LTS
Feb 3, 2026
f0136f2
chore: migrate VuePress 1.x to 2.x
Feb 3, 2026
25710b5
fix: update Node to 20.19 and add sass-embedded
Feb 3, 2026
73d61d4
chore: update rollup from 2.14.0 to 4.34.8
Feb 3, 2026
3d0179a
chore: update eslint from 7.2.0 to 8.57.1
Feb 3, 2026
46a1406
style: apply eslint 8 auto-fixes
Feb 3, 2026
586faef
chore: update jest to 29.7.0 and babel to 7.26.9
Feb 3, 2026
5cedea0
chore: fix commonjs remnants in esm codebase
Feb 3, 2026
c2deda9
chore: add codacy config to exclude test false positives
Feb 3, 2026
db3b45e
chore: update Node.js to 20.x LTS
Feb 3, 2026
7720918
Merge branch 'main' into chore/migrate-vuepress
Feb 3, 2026
6bea879
Merge branch 'main' into chore/fix-commonjs
Feb 3, 2026
4be773b
style: lint
sarahdayan Feb 3, 2026
e64c743
Merge branch 'chore/fix-commonjs' into chore/update-node-20
sarahdayan Feb 3, 2026
30f4647
Merge branch 'chore/update-node-20' into chore/migrate-vuepress
sarahdayan Feb 3, 2026
2dfbfea
Merge branch 'main' into chore/migrate-vuepress
sarahdayan Feb 3, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 28 additions & 21 deletions website/.vuepress/config.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,27 @@
module.exports = {
import { viteBundler } from '@vuepress/bundler-vite';
import { docsearchPlugin } from '@vuepress/plugin-docsearch';
import { googleAnalyticsPlugin } from '@vuepress/plugin-google-analytics';
import { defaultTheme } from '@vuepress/theme-default';
import { defineUserConfig } from 'vuepress';

export default defineUserConfig({
base: '/shipjs/',
title: 'Ship.js',
description: 'Take control of what is going to be your next release.',
themeConfig: {
algolia: {
apiKey: '8e903cfc085194284d0f4090fb0d5e9b',
indexName: 'shipjs',
appId: 'CQ6J2YX94R',
},
nav: [

bundler: viteBundler(),

theme: defaultTheme({
navbar: [
{ text: 'Home', link: '/' },
{ text: 'Guide', link: '/guide/' },
{ text: 'GitHub', link: 'https://github.com/algolia/shipjs' },
],
sidebar: [
{
title: 'Guide', // required
path: '/guide/', // optional, which should be a absolute path.
collapsable: false, // optional, defaults to true
text: 'Guide',
link: '/guide/',
collapsible: false,
children: [
'/guide/',
'/guide/getting-started',
Expand All @@ -27,22 +31,25 @@ module.exports = {
],
},
{
title: 'Reference',
collapsable: false,
text: 'Reference',
collapsible: false,
children: [
'/reference/all-config',
'/reference/commands',
'/reference/resources',
],
},
],
},
}),

plugins: [
[
'@vuepress/google-analytics',
{
ga: 'UA-154097686-1',
},
],
docsearchPlugin({
apiKey: '8e903cfc085194284d0f4090fb0d5e9b',
indexName: 'shipjs',
appId: 'CQ6J2YX94R',
}),
googleAnalyticsPlugin({
id: 'UA-154097686-1',
}),
],
};
});
6 changes: 4 additions & 2 deletions website/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
---
home: true
actionText: Introduction →
actionLink: /guide/
actions:
- text: Introduction
link: /guide/
type: primary
features:
- title: Automated
details: Minimize your effort for release and make less mistakes.
Expand Down
15 changes: 10 additions & 5 deletions website/package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
{
"name": "website",
"version": "1.0.0",
"type": "module",
"scripts": {
"build": "NODE_OPTIONS=--openssl-legacy-provider vuepress build",
"deploy:gh": "NODE_OPTIONS=--openssl-legacy-provider node scripts/deploy-gh.js",
"dev": "NODE_OPTIONS=--openssl-legacy-provider vuepress dev",
"build": "vuepress build",
"deploy:gh": "node scripts/deploy-gh.js",
"dev": "vuepress dev",
"test": "echo \"Error: no test specified\""
},
"dependencies": {},
"devDependencies": {
"@vuepress/plugin-google-analytics": "1.9.10",
"@vuepress/bundler-vite": "2.0.0-rc.26",
"@vuepress/plugin-docsearch": "2.0.0-rc.122",
"@vuepress/plugin-google-analytics": "2.0.0-rc.122",
"@vuepress/theme-default": "2.0.0-rc.122",
"gh-pages": "6.2.0",
"vuepress": "1.9.10"
"sass-embedded": "1.86.0",
"vuepress": "2.0.0-rc.26"
},
"main": "index.js",
"author": "Algolia",
Expand Down
22 changes: 5 additions & 17 deletions website/scripts/deploy-gh.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,8 @@
#!/usr/bin/env node

const fs = require('fs');
const path = require('path');
const util = require('util');
const exec = util.promisify(require('child_process').exec);
import { execSync } from 'child_process';

(async function () {
const configPath = path.resolve(__dirname, '..', '.vuepress', 'config.js');
const originalConfig = fs.readFileSync(configPath).toString();
const configWithBase = originalConfig.replace(
'module.exports = {',
`module.exports = {\n base: "/shipjs/",`
);
fs.writeFileSync(configPath, configWithBase);
await exec('vuepress build');
await exec(`gh-pages -m "auto commit [ci skip]" -d .vuepress/dist`);

fs.writeFileSync(configPath, originalConfig);
})();
execSync('vuepress build', { stdio: 'inherit' });
execSync('gh-pages -m "auto commit [ci skip]" -d .vuepress/dist', {
stdio: 'inherit',
});
Loading