Skip to content
/ notes-hi Public template

template repo for building site from markdown docs/notes

Notifications You must be signed in to change notification settings

hedzr/notes-hi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hedzr/notes-hi

CI

A template repository for building a docs site from markdown docs/notes.

powered by MkDocs.

fast guide:

  1. All you have to do is click the Use this template button upon this page.
  2. run!

Using command-line:

new repo

  1. clone notes-hi as a template

    # clone notes-hi as a template
    git clone https://github.com/hedzr/notes-hi.git new-repo
    cd new-repo
    git push [email protected]:yourname/new-repo.git +master:master
  2. clone the new-repo to your working directory:

    # in the working directory of your new-repo
    cd ~/work
    git clone [email protected]:yourname/new-repo.git
    cd new-repo
  3. publish as gh-pages:

    1. via build.sh:
    # ./build.sh prepare_gh_pages_branch
    git checkout --orphan gh-pages
    rm -rf * .gitignore docs site 2>/dev/null
    touch README.md && git add . && git commit -m 'initial gh-pages commit' && git push origin gh-pages
    git checkout master && \
    git branch -D gh-pages && \
    git subtree add --prefix=site origin gh-pages
    
    #rm -rf site 2>/dev/null
    #git subtree add --prefix=site origin gh-pages

    If error occurs at git subtree add ...: prefix 'site' already exists, try this:

    git subtree split --rejoin --prefix=site origin gh-pages
    1. via mkdocs gh-deploy
      mkdocs gh-deploy

Releases

No releases published

Packages

No packages published

Languages