Skip to content

Commit 65451d4

Browse files
committed
Upgrade from vuepress to vitepress
1 parent b989a24 commit 65451d4

File tree

242 files changed

+6771
-42528
lines changed

Some content is hidden

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

242 files changed

+6771
-42528
lines changed

.babelrc

Lines changed: 0 additions & 12 deletions
This file was deleted.

.eslintignore

Lines changed: 0 additions & 8 deletions
This file was deleted.

.eslintrc.js

Lines changed: 0 additions & 48 deletions
This file was deleted.

.github/workflows/build-and-deploy.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- master
7+
78
jobs:
89
build-and-deploy:
910
runs-on: ubuntu-latest
@@ -13,9 +14,9 @@ jobs:
1314
- uses: actions/checkout@v1
1415
- uses: actions/setup-node@v1
1516
with:
16-
node-version: 16
17+
node-version: '22'
1718
- run: npm ci
18-
- run: npm run test-and-build
19+
- run: npm run docs:build
1920

2021
- name: Deploy to ${{ env.TARGET_URL }}
2122
uses: peaceiris/actions-gh-pages@v3

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Setup Node.js
1818
uses: actions/setup-node@v2
1919
with:
20-
node-version: '16'
20+
node-version: '22'
2121

2222
- name: Install dependencies
2323
run: npm ci

.gitignore

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
node_modules
2-
target
3-
.idea
4-
/*.iml
1+
/src/.vitepress/.temp
2+
/src/.vitepress/cache
3+
/src/.vitepress/dist
4+
/node_modules
5+
/target

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npm run lint-staged

.prettierignore

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
node_modules
2-
target
3-
.idea
4-
!.vuepress
5-
/src/usage-examples/precompilation/example.precompiled.js
6-
/src/usage-examples/precompilation/precompile-in-nodejs.output.js
7-
/src/*/usage-examples/precompilation/example.precompiled.js
8-
/src/*/usage-examples/precompilation/precompile-in-nodejs.output.js
1+
!.vitepress
2+
/src/snippets/precompilation/example.precompiled.js
3+
/src/snippets/precompilation/precompile-in-nodejs.output.js

.vscode/launch.json

Lines changed: 0 additions & 15 deletions
This file was deleted.

CONTRIBUTING.md

Lines changed: 15 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
# Development setup
22

3-
This site uses [VuePress](https://v1.vuepress.vuejs.org/) as static page generator. It is a static page generator based
3+
This site uses [VitePress](https://vitepress.dev/) as static page generator. It is a static page generator based
44
on [Vue.js](https://vuejs.org/) and created to write the documentation of that framework.
55

6-
VuePress is based on markdown files. Each HTML-page on the site has a corresponding markdown file in this repository.
6+
VitePress is based on markdown files. Each HTML-page on the site has a corresponding markdown file in this repository.
77

88
# Requirements and recommended tools
99

1010
The following tools are required to build and develop the site.
1111

12-
- NodeJS (latest LTS) and the corresponding version of `npm`
12+
- Node.js (latest LTS) and the corresponding version of `npm`
1313

1414
The following tools will help you developing
1515

@@ -24,25 +24,23 @@ The following tools will help you developing
2424
After cloning the repository you probaby want to run the following commands:
2525

2626
- `npm install` (required) installs the dependencies libraries and is required for building the site.
27-
- `npm run dev` runs a webpack-dev-server, usually on port 8080. This server features live-reloading. Styles will
27+
- `npm run docs:dev` runs a vite-dev-server. This server features live-reloading. Styles will
2828
automatically be updated when you change the source files. Changes in markdown changes and Vue.js components will be
29-
visible immediately. _Note that changes to the file `src/.vuepress/config.js` are not part of the live-reload and
29+
visible immediately. _Note that changes to the file `src/.vitepress/config.js` are not part of the live-reload and
3030
require a restart of the command._
31-
- `npm run preview` should be run prior to creating a pull-request. It will clean the build-directories, run tests and
31+
- `npm run docs:preview` should be run prior to creating a pull-request. It will clean the build-directories, run tests and
3232
linters, the site. A production-like preview of the site can be viewed at port 9080
3333

3434
Other commands are not needed as often:
3535

3636
- `npm run fix` trys to fix all `eslint` errors and runs `prettier` to format everything. This is also done in a
3737
pre-commit hook so it should not be necessary to run this command manually.
38-
- `npm run clean` removes all cached and built files. This can be helpful if you have errors that you cannot explain and
39-
that just won't go away.
40-
- The scripts `test`,`lint`, `format` and `build` just exist to make the other commands in the `package.json` more
38+
- The scripts `test`,`lint`, `format` and `docs:build` just exist to make the other commands in the `package.json` more
4139
readable.
4240

4341
## Differences between dev-server and production
4442

45-
The VuePress site is a Vue.js application. While the dev-server runs the whole application in the browser, the
43+
The VitePress site is a Vue.js application. While the dev-server runs the whole application in the browser, the
4644
production site is pre-rendered with subsequent changes running in the browser.
4745

4846
Vue.js components that only work in the browser will work correctly in the dev-server, but will fail in production.
@@ -60,24 +58,13 @@ A few notes on the site and the build processes
6058

6159
The `src` folder contains all sources of the page. That includes
6260

63-
- `src/**/*.md`: Markdown files, one for each HTML files containing the actual content.
64-
- `src/.vuepress/styles`: [stylus](http://stylus-lang.com/) files that adjust the CSS styles of the website (TODO add
65-
documentation link)
66-
- `src/.vuepress/components`: custom Vue.js components and Layouts created for this site (TODO add documentation link)
67-
- `src/.vuepress/public/`: root directory for public files that are copied to the site as-is.
68-
- `src/.vuepress/plugins/`: VuePress-plugins created for this site.
61+
- `src/**/*.md`: Markdown files, one for each HTML files containing the actual content
62+
- `src/.vitepress/styles`: CSS files that adjust the styles of the website
63+
- `src/.vitepress/components`: custom Vue.js components and Layouts created for this site
64+
- `src/.vitepress/public/`: root directory for public files that are copied to the site as-is
65+
- `src/.vitepress/plugins/`: VitePress-plugins created for this site
6966

7067
# Deployment
7168

72-
The deployment has two phases:
73-
74-
- The preview site at https://handlebars-draft.knappi.org is automatically updated when changes are pushed to the
75-
`master`-branch. The Github-pages are hosted in the `gh-pages`-branch of this repository.
76-
- The production site (currently the temporary site https://handlebars-prod.knappi.org) is updated when changes are
77-
pushed to the `production`-branch. The Github-pages for the production site are hosted in the `master`-branch of the
78-
[docs-prod-ghpages](https://github.com/handlebars-lang/docs-prod-ghpages) repository.
79-
80-
In both cases, the deployment itself is performed via [Travis-CI job](https://travis-ci.org/handlebars-lang/docs)
81-
82-
The Travis-CI job uses the [handlebars-site-bot](https://github.com/handlebars-site-bot) account to update the
83-
github-pages of this repository.
69+
The site at https://handlebarsjs.com is automatically updated when changes are pushed to the
70+
`master`-branch. The Github-pages are hosted in the `gh-pages`-branch of this repository.

0 commit comments

Comments
 (0)