nbdev/cli.py
def create_default_sidebar():
    "Create the default sidebar for the docs website"
    dic = {"Overview": "/"}
    files = [f for f in Config().nbs_path.glob('*.ipynb') if not f.name.startswith('_')]
    fnames = [_nb2htmlfname(f) for f in sorted(files)]
    dic.update({_get_title(f):f'/{f.stem}' for f in fnames if f.stem!='index'})
    dic = {Config().lib_name: dic}
    json.dump(dic, open(Config().doc_path/'sidebar.json', 'w'), indent=2)
Create the default sidebar for the docs website
Create the default sidebar for the docs website
Create the default sidebar for the docs website
def create_default_sidebar():
    dic = {"Overview": "/"}
    files = [f for f in Config().nbs_path.glob('*.ipynb') if not f.name.startswith('_')]
    fnames = [_nb2htmlfname(f) for f in sorted(files)]
    dic.update({_get_title(f):f'/{f.stem}' for f in fnames if f.stem!='index'})
    dic = {Config().lib_name: dic}
    json.dump(dic, open(Config().doc_path/'sidebar.json', 'w'), indent=2)
def create_default_sidebar ( ) : dic = { "Overview" : "/" } files = [ f for f in Config ( ) . nbs_path . glob ( '*.ipynb' ) if not f . name . startswith ( '_' ) ] fnames = [ _nb2htmlfname ( f ) for f in sorted ( files ) ] dic . update ( { _get_title ( f ) : f'/{f.stem}' for f in fnames if f . stem != 'index' } ) dic = { Config ( ) . lib_name : dic } json . dump ( dic , open ( Config ( ) . doc_path / 'sidebar.json' , 'w' ) , indent = 2 )
Create the default sidebar for the docs website
Create the default sidebar for the docs website
"Create the default sidebar for the docs website"