Git Product home page Git Product logo

Introduction

mikesay is the source code of my blog which is based on Hexo. In order to setup the blog, install node and npm.

Do not run below hexo command to deploy the site, because it will always delete existing static site from git repo which will cause github page remove the configuration of custom domain, so that each deploy will have to re-enable the custom domain manually:

hexo clean
hexo deploy

Deploy blog site

  • Clone blog source code
git clone https://github.com/mikesay/mikeblog.git
cd mikeblog
  • Run shell scripts to install npm dependencies
./setup.sh
  • Generate static site
hexo generate

The static site will be generated in public folder

  • Add ebooks and adhoc files supporiting GitHub page
touch public/.nojekyll
echo www.mikesay.com > public/CNAME
rsync -av --delete ./ebooks ./public/

ebooks including additional static site created from docisfy

  • Clone git repo which include static site
git clone https://github.com/mikesay/mikesay.github.io.git mikesay
  • Update static site with latest generated site
cd ..
rsync -av --delete --exclude '.git*' ./public/ ./mikesay/
  • Push latest static site
cd mikesay
git add .
git commit -m "Update site."

Build additional static site created from mkdocs

Take ArgoCD document as an example.

  • Run below command to install mkdocs
pip install mkdocs
  • Clone forked ArgoCD repository of branch translate_docs
git clone -b translate_docs https://github.com/mikesay/argo-cd.git
  • Build the static site files
cd argo-cd
mkdocs build
  • Sync latest document to mike blog
cd argo-cd
rsync -a -P --delete --force site/ mikeblog/ebooks/argocd/

The github action will be used to deploy the site automatically.

云斋随笔's Projects

argo-cd icon argo-cd

Declarative continuous deployment for Kubernetes.

front-end icon front-end

Front-end application for ALL the microservices

karma icon karma

Alert dashboard for Prometheus Alertmanager

load-test icon load-test

A load-test script & container for Sock Shop

version-checker icon version-checker

Kubernetes utility for exposing image versions in use, compared to latest available upstream, as metrics.

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.