Skip to content

Commit 0c2317b

Browse files
committed
chore: set base path
1 parent 7ea1a6c commit 0c2317b

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

.github/workflows/deploy.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Sample workflow for building and deploying a VitePress site to GitHub Pages
22
#
3-
name: Deploy VitePress site to Pages
3+
name: Deploy Docs site to Pages
44

55
on:
66
# Runs on pushes targeting the `main` branch. Change this to `master` if you're

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ pnpm / yarn add html2canvas-pro
2929
import html2canvas from 'html2canvas-pro';
3030
```
3131

32-
To render an `element` with html2canvas with some (optional) [options](/docs/configuration.md), simply call `html2canvas(element, options);`
32+
To render an `element` with html2canvas-pro with some (optional) [options](/docs/configuration.md), simply call `html2canvas(element, options);`
3333

3434
```javascript
3535
html2canvas(document.body).then(function(canvas) {

docs/.vitepress/config.mts

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { defineConfig } from 'vitepress'
33
// https://vitepress.dev/reference/site-config
44
export default defineConfig({
55
title: "html2canvas-pro",
6+
base: "/html2canvas-pro/",
67
description: "Next generation JavaScript Screenshots Tooling",
78
themeConfig: {
89
// https://vitepress.dev/reference/default-theme-config

docs/getting-started.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import html2canvas from 'html2canvas-pro';
1414

1515
## Usage
1616

17-
To render an `element` with html2canvas with some (optional) [options](./configuration), simply call `html2canvas(element, options);`
17+
To render an `element` with html2canvas-pro with some (optional) [options](./configuration), simply call `html2canvas(element, options);`
1818

1919
```javascript
2020
html2canvas(document.body).then(function(canvas) {

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"engines": {
2020
"node": ">=8.0.0"
2121
},
22-
"homepage": "https://yorickshan.github.io/html2canvas-pro",
22+
"homepage": "https://yorickshan.github.io/html2canvas-pro/",
2323
"repository": {
2424
"type": "git",
2525
"url": "https://github.com/yorickshan/html2canvas-pro"

0 commit comments

Comments
 (0)