But, often it happens we don’t have access to internet and we have time to read something then we usually go to our saved articles, guides, books, or any other content to read. In that case if we have Vue.js guide available offline we could have luxury to read that without connecting to internet. Well, that is possible.
HOW TO DOWNLOAD THE GUIDE?
To download the guide for offline access all you have to do is clone the official Git repo from GitHub and perform the following steps.
- Clone Vue.js Git repo from GitHub https://github.com/vuejs/vuejs.org
- Open terminal or command prompt
- Go to the directory/folder where you have cloned the repo
- If you have
npminstalled that is most likely if you are a developer then run the following commands:
$ npm install -g hexo-cli $ npm install $ hexo server
- Browse http://localhost:4000/v2/guide/ in your favorite browser.
That’s it! You have Vue.js guide available offline.
The next time you want to access your offline guide all you have to do is open terminal, go to repo directory and run
hexo server command.
Vue.js guide is built using Hexo blog framework. You can read more about Hexo framework on their website https://hexo.io/
What we did is just clone the repo and ran the hexo server from the
hexo-cli we installed using npm. This is not convenient as reading a PDF but still we have an option to read the guide offline.
If this helped you or if you found a better way then don’t forget to leave a comment below.
Also published on Medium.