Skip to content

Commit

Permalink
docs: basic
Browse files Browse the repository at this point in the history
  • Loading branch information
vclemenzi committed Mar 20, 2024
1 parent ef88348 commit 92e6759
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
src/
examples/
docs/
.gitignore
.prettierignore
.prettierrc
4 changes: 4 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# vite-plugin-multip docs
Documentation of the plugin (web version in arrtive) vite-plugin-multip

- [custom html](https://github.com/vclemenzi/vite-plugin-multip/blob/main/docs/custom-html.md)
28 changes: 28 additions & 0 deletions docs/custom-html.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# HTML Customization with vite-plugin-multip

With the `vite-plugin-multip` plugin, you have the ability to fully customize the HTML structure using a custom HTML template.

Configuration:
```ts
multipage({ customHtml: "path/to/your/template.html" })
```

Example of the custom HTML template:
```html
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>My Custom HTML</title>
</head>
<body>
{% body %}
</body>
</html>
```

`{% body %}` will be replaced with the content of the specific page's body. This feature allows you to completely tailor the appearance and structure of your multipage setup, offering greater flexibility in design.

*You can find an example [here](https://github.com/vclemenzi/vite-plugin-multip/tree/main/examples/custom-html)*

0 comments on commit 92e6759

Please sign in to comment.