Coder Social home page Coder Social logo

sun-zhenxing / vuepress-solid-template Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 17.26 MB

Solid: a VuePress 2 Template

Home Page: https://blog.alexsun.top/vuepress-solid-template/

Dockerfile 40.69% JavaScript 59.31%
vuepress docs github-pages pnpm typescript vuepress2 vite5

vuepress-solid-template's Introduction

Solid: a VuePress 2 Template

GitHub Workflow Status

🌐 δΈ­ζ–‡ζ–‡ζ‘£ | πŸš€ Demo Page

Solid is not Solid.js! Solid is a VuePress2-powered static site generator

Best VuePress2 Template. Get a beautiful and configured default theme document in a minute.

Features:

1. Start

git clone https://github.com/Sun-ZhenXing/vuepress-solid-template
cd vuepress-solid-template
pnpm i
pnpm dev

The only thing you need to do is to configure docs/.vuepress/config.ts:

  1. change USER_NAME to yours.
  2. change BASE_PATH to your repo name.

2. Uploading code to remote repo

Change ${YOUR_REPO} to the address of your remote repository.

cd vuepress-my-docs
rm -rf .git && git init && git add .
git commit -m "init from Sun-ZhenXing/vuepress-solid-template"
git remote add origin ${YOUR_REPO}
git branch -M main
git push -u origin main

3. Build

Build with pnpm:

pnpm i
pnpm build

You can find the generated static files in docs/.vuepress/dist.

Build with Docker:

docker build -t vuepress-solid-template .
docker run -itd -p 80:80 vuepress-solid-template

Now you can visit http://localhost to see your document.

4. How to config GitHub Pages?

If you don't want it, reomve .github/workflows/ file.

When building in GitHub Actions for the first time, an error will be reported and an email will be sent to you. Don't panic because you haven't set up GitHub Pages yet.

If you need to open GitHub Pages:

  1. Open your GitHub repo page
  2. Click Settings
  3. Click Actions, then click General
  4. Find Workflow permissions, select Read and write permissions, save
  5. If you have not successfully executed GitHub Actions at this time, you need to manually execute them once. Open the actions you just created and click re-run all jobs
  6. Click Pages on the sidebar, goto Build and deployment
  7. Config as Branch: gh-pages /(root), or force HTTPS, save

It will create GitHub Pages automatically.

vuepress-solid-template's People

Contributors

dependabot[bot] avatar sun-zhenxing avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.