
    7jO                         d Z ddlZddlmZmZmZ ddlmZ  ej                  ddddd	
       ej                  dej                  j                  j                  rdnd      d               Zy)z Build QMK documentation locally
    N)prepare_docs_build_arearun_docs_commandBUILD_DOCS_PATHcliz-sz--serveT
store_truez%Serves the generated docs once built.)arg_onlyactionhelpzBuild QMK documentation.F)hiddenc                    t        j                  d      s| j                  j                  d       yt        j                  d      s| j                  j                  d       yt	        d      sy| j                  j                  d	       t        d
dg       | j                  j                  dt               | j                  j                  rt        d
dg       yy)zzInvoke the docs generation process

    TODO(unclaimed):
        * [ ] Add a real build step... something static docs
    doxygenz:doxygen is not installed. Please install it and try again.Nyarnz7yarn is not installed. Please install it and try again.T)is_productionFzBuilding vitepress docsrunz
docs:buildz"Successfully generated docs to %s.zdocs:preview)
shutilwhichlogerrorr   infor   r   argsserver   s    N/home/hanthebot/chat/keyboard/qmk_firmware/lib/python/qmk/cli/generate/docs.pygenerate_docsr   	   s     <<	"RS<<OP"6GGLL*+U\N+GGLL5G
xx~~ 01     )__doc__r   qmk.docsr   r   r   milcr   argument
subcommandconfiguser	developerr    r   r   <module>r%      si     O O  dI\Hop*CJJOO<U<U5[_`2 a q2r   