GithubHelp home page GithubHelp logo

cnpcshangbo / vuepress-docker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from superj80820/vuepress-docker

0.0 1.0 0.0 12.9 MB

把docker都設定好了 只要有docker就直接開始vuepress寫作吧! 實際網頁👉

Home Page: http://superj80820.github.io

Dockerfile 0.11% Shell 1.36% HTML 69.14% JavaScript 27.14% Python 2.05% CSS 0.21%

vuepress-docker's Introduction

vuepress-docker

Hi 這是我自己的部落格 採用vuepress製作

寫到後來想說 我都把環境設定好了 那就分享給大家一起用吧

所以 來寫文章ㄅ

需求

  • docker
  • docker-compose

目前有的Components

  • Disqus: 可使用FB, Google, Twitter登入留言的留言板
  • fbChat: 讓瀏覽部落格的人可以直接透過FB與你的粉專交談

資料夾結構

.
├── another # 其他網頁 你可以放其他靜態網頁在此資料夾 便可依照https://<USERNAME>.github.io/another/<資料夾名稱> 來瀏覽
├── deploy.sh
├── docker-compose.yaml
├── Dockerfile
├── docs # 部落格資料夾 詳細配置可參考官網: https://vuepress.vuejs.org/zh/
│   ├── .vuepress
│   ├─├── components # vue組件 可引用置全局
│   ├─├── dist # 打包檔案
│   ├─├── public # 公用檔案
│   ├─├── config.js # vue設定
│   ├─├── enhanceApp.js # 引入模組
│   ├── <文章群組>
│   │   └── README.md # 文章
│   └── README.md # 部落格根目錄
├── package.json
├── package-lock.json
└── README.md

環境變數

請複製 .env.example.env 檔案

並依照以下資訊編輯

//.env
# Github info
GITHUB_USERNAME= //請輸入你的Github帳號名稱

# FB customer chat
PAGE_ID= //請輸入FB customer chat的page id

# Disqus
DISQUA_USERNAME= //請輸入Disqus的使用者名稱

初始化

docker-compose build &&\
docker-compose run web npm install

開始寫作!

docker-compose up

打開localhost:8080

開始寫作時會即時預覽在網頁上

打包

docker-compose run web npm run docs:build

部屬

./deploy.sh

測試

在tests資料夾新增你要的python測試檔 然後運行以下即可

docker-compose run web npm run tests:python

vuepress-docker's People

Contributors

superj80820 avatar

Watchers

James Cloos 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.