add jex mkdocs command
This commit is contained in:
@@ -65,6 +65,7 @@ help_screen() ->
|
||||
" tree tree $HOME/.jex/\n"
|
||||
" rmpkg PKG rm -r $HOME/.jex/dev/PKG\n"
|
||||
" pull pull each dependency into src/jx_include\n"
|
||||
" mkdocs (maybe run dwim- first) npx typedoc\n"
|
||||
].
|
||||
|
||||
|
||||
@@ -86,6 +87,7 @@ dispatch(["ls"]) -> ls();
|
||||
dispatch(["tree"]) -> tree();
|
||||
dispatch(["rmpkg", Pkg]) -> rmpkg(Pkg);
|
||||
dispatch(["pull"]) -> pull();
|
||||
dispatch(["mkdocs"]) -> mkdocs();
|
||||
dispatch(_) -> help().
|
||||
|
||||
|
||||
@@ -324,6 +326,14 @@ pull_dep(Dep) ->
|
||||
_ = cmd(io_lib:format("rsync -avv ~ts/ ~ts", [Src, Dst])),
|
||||
ok.
|
||||
|
||||
%%-----------------------------------------------------------------------------
|
||||
%% jex mkdocs
|
||||
%%-----------------------------------------------------------------------------
|
||||
|
||||
mkdocs() ->
|
||||
_ = cmd("npx typedoc --entryPointStrategy expand --sort source-order src"),
|
||||
ok.
|
||||
|
||||
%%-----------------------------------------------------------------------------
|
||||
%% INTERNALS
|
||||
%%-----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user