Hongbin's Blog

vuePress-theme-reco Hongbin's Blog    2021
Hongbin's Blog Hongbin's Blog

Choose mode

  • dark
  • auto
  • light
GitHub
Category
  • article
  • note
  • tip
  • draft
  • log
  • recette
Tag
Home
TimeLine

Hongbin's Blog

13

Article

13

Tag

GitHub
Category
  • article
  • note
  • tip
  • draft
  • log
  • recette
Tag
Home
TimeLine
  • A tip - vuepress write and push process

A tip - vuepress write and push process

vuePress-theme-reco Hongbin's Blog    2021

A tip - vuepress write and push process


Hongbin 2020-09-27 vuepressgh-pages

# Summary

1. write doc in /docs/
2. check `config.js` in /docs/.vuepress
	a. base address
	b. remove proxy setting
3. run build script in /
4. go to the built folder /public/, init a repo
5. check who is the current git committer
6. add and commit
7. push all
	git push -f <remote-repo-url> <local-branch>:<remote-branch>
1
2
3
4
5
6
7
8
9
10

# Words

Normally, writing a blog should be easy and smooth... until I started to use static blog engine like Jekyll and VuePress. Jekyll has heavier burden than VuePress which makes me have no desire to put any article on it even till now. The configuration of it made me suffer.

VuePress is better. Even time I read their doc and I got those steps back to my memory in a short time because the process is just a few steps. But you still need to pick things out of a bunch of deployment methods of different platforms, after searching which section contains deployment.

A script for deployment is essential but you cannot fully rely on it because the environment can change. A short tip is still needed so... this tip comes.

And during the time after I set up this blog but had pushed no blog, I wrote blogs in different platforms such as CnBlogs, markdown or word document in my computer. I was thinking, same blogs can be put everywhere but in the end, why a certain platform is chosen? And I had the answer, you choose a platform because of the readers you have.

I think currently the method is not the best one for compiling a blog. Everytime when you update a blog, write a new blog or delete a blog, the script will compile all documents, and you have to wait a time (30s !). I think there should be available to specify the input document, if I only update one document, then just compile that one to the relative path.

Hope that they provide parameters. And... I really need to set up my CI/CD to liberate myself from these repetitive jobs.