Big_Cake

晓雨杂记

也许我们会分别,但我们将永远不会忘记彼此
bilibili
github
twitter
zhihu
telegram
tg_channel

Valaxy - A brand new static blog framework with no boundaries

Preface#

I have been following Valaxy by Yun YouJun for a long time, but unfortunately, I could only use Hexo due to certain conditions.

Recently, I got a computer for online classes and thought, "Why not migrate my blog to Valaxy?" So, I opened the Valaxy documentation and started the process. After setting it up, it was almost ready for production use.

I also experienced its super-fast speed and native page hot reload, so I decided to introduce it to everyone.

Getting Started#

⚡️ Vue 3, Vite 2, pnpm, ESBuild - born with fastness

Local Initialization#

Project Repository

Create a new folder, then open the terminal in this folder and enter the following to initialize:

npm init valaxy
# `pnpm create valaxy` is recommended by the author

Follow the command line prompts to complete the project initialization. It defaults to using the Yun theme, but you can also choose the documentation theme (theme-press).

Navigate to the generated project folder, enter the command to install dependencies and start the local preview:

npm install 
# yarn
npm run dev
# yarn dev

Once the local preview is running, you can visit http://localhost:4859 to see the effect. Then you can customize your blog by modifying valaxy.config.ts.

Automatic Deployment#

You can use GitHub Pages/Netlify/Vercel/Cloudflare Pages.

.github/workflows/gh-pages.yml will automatically deploy to GitHub Pages, for others please refer to the documentation.

Manual Deployment#

Enter the following command to generate static files, then you can deploy the contents of the dist folder to your server:

npm run build
# npm run build:spa for SPA

Notes#

Valaxy is currently in the early stages of development, and the Yun theme only replicates the main features of the Hexo version. You can support the development of Valaxy by providing feedback or donating to Yun YouJun.

Using it now makes you a noble beta tester

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.