shane0 / workflow

my current workflow
https://shane0.github.io/workflow/
MIT License
0 stars 0 forks source link

mike it up #15

Open shane0 opened 11 months ago

shane0 commented 11 months ago

mike

usage: mike [-h] [--version] COMMAND ...

mike is a utility to make it easy to deploy multiple versions of your MkDocs-
powered docs to a Git branch, suitable for deploying to Github via gh-pages.
It's designed to produce one version of your docs at a time. That way, you can
easily deploy a new version without touching any older versions of your docs.

positional arguments:
  COMMAND
    deploy             build docs and deploy them to a branch
    delete             delete docs from a branch
    alias              alias docs from a branch
    retitle            change the title of a version
    list               list deployed docs on a branch
    set-default        set the default version for your docs
    serve              serve docs locally for testing
    help               show this help message and exit
    generate-completion
                       print shell completion script

optional arguments:
  -h, --help           show this help message and exit
  --version            show program's version number and exit
shane0 commented 11 months ago
mike deploy 2023
mike list
mike serve
mike deploy --push --update-aliases 2023 latest
# mike set-default --push 2023
 2001  mike list
 2002  mike set-default 2023
 2003  git fetch origin gh-pages --depth=1
 2004  mike deploy --push --update-aliases 2023 latest
 2005  mike deploy --push --ignore  --update-aliases 2023 latest
 2006  git pull --no-ff
 2007  git status
 2008  ./push.sh 
 2009  mike deploy --push --ignore  --update-aliases 2023 latest
 2010  history 
shane0 commented 11 months ago

its there but default has no dropdown

https://shanenull.com/buddhism/2023/

shane0 commented 9 months ago

https://pypi.org/project/mike/

shane0 commented 9 months ago

make a test site and see if i can change topics like cheatsheets dropdown a language and determine if this is easy enough to change branches edit one and push changes, checkout another language from a branch push and see if they are easy to maintain or if it collapses under complexity

shane0 commented 8 months ago

found a bug 404 on versions.json happens when. you first deploy this, delayed it weeks, this currently works on the buddhism/ site do not use mkdocs gh-deploy just use branches and mike deploy then push and let the action deploy