Skip to content

metonym/svite-gh-pages

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

svite-gh-pages

Minimal Svite set-up made deployable to GitHub pages.

Customize the base directory and assets directory.

  • base should be either "" (relative path) or the public path of your repo (i.e. "/svite-gh-pages/")
  • assetsDir should not begin with an underscore (GitHub Pages ignores folders beginning with "_")
"scripts": {
-  "build": "svite build",
+  "build": "svite build --base= --assetsDir=assets",
}

Quick start

Use degit to quickly scaffold a new project:

npx degit metonym/svite-gh-pages my-app
cd my-app && yarn install

Deploying to GitHub Pages

First, build the app by running yarn build.

Then, run yarn deploy.

Additional notes

  • Incorporates MDsveX
  • Uses svelte preprocess API too replace "process.env.NAME" and "process.env.VERSION" with the name and version from package.json. This is useful for documenting component libraries.