var searchIndex = {}; searchIndex["mdbook"] = {"doc":"# mdBook","items":[[0,"book","mdbook","",null,null],[0,"mdbook","mdbook::book","",null,null],[3,"MDBook","mdbook::book::mdbook","",null,null],[12,"content","","",0,null],[11,"new","","Create a new `MDBook` struct with root directory `root`",0,{"inputs":[{"name":"path"}],"output":{"name":"mdbook"}}],[11,"iter","","Returns a flat depth-first iterator over the elements of the book, it returns an [BookItem enum](bookitem.html):\n`(section: String, bookitem: &BookItem)`",0,null],[11,"init","","`init()` creates some boilerplate files and directories to get you started with your book.",0,null],[11,"build","","The `build()` method is the one where everything happens. First it parses `SUMMARY.md` to\nconstruct the book's structure in the form of a `Vec<BookItem>` and then calls `render()`\nmethod of the current renderer.",0,null],[11,"copy_theme","","",0,null],[11,"read_config","","Parses the `book.json` file (if it exists) to extract the configuration parameters.\nThe `book.json` file should be in the root directory of the book.\nThe root directory is the one specified when creating a new `MDBook`",0,null],[11,"set_renderer","","You can change the default renderer to another one by using this method. The only requirement\nis for your renderer to implement the [Renderer trait](../../renderer/renderer/trait.Renderer.html)",0,null],[11,"test","","",0,null],[11,"set_dest","","",0,null],[11,"get_dest","","",0,null],[11,"set_src","","",0,null],[11,"get_src","","",0,null],[11,"set_title","","",0,null],[11,"get_title","","",0,null],[11,"set_author","","",0,null],[11,"get_author","","",0,null],[11,"set_description","","",0,null],[11,"get_description","","",0,null],[0,"bookitem","mdbook::book","",null,null],[3,"Chapter","mdbook::book::bookitem","",null,null],[12,"name","","",1,null],[12,"path","","",1,null],[12,"sub_items","","",1,null],[3,"BookItems","","",null,null],[12,"items","","",2,null],[12,"current_index","","",2,null],[12,"stack","","",2,null],[4,"BookItem","","",null,null],[13,"Chapter","","",3,null],[13,"Affix","","",3,null],[13,"Spacer","","",3,null],[11,"clone","","",3,null],[11,"fmt","","",3,null],[11,"clone","","",1,null],[11,"fmt","","",1,null],[11,"clone","","",2,null],[11,"fmt","","",2,null],[11,"new","","",1,{"inputs":[{"name":"string"},{"name":"pathbuf"}],"output":{"name":"self"}}],[11,"to_json","","",1,null],[11,"next","","",2,null],[0,"bookconfig","mdbook::book","",null,null],[3,"BookConfig","mdbook::book::bookconfig","",null,null],[12,"title","","",4,null],[12,"author","","",4,null],[12,"description","","",4,null],[12,"indent_spaces","","",4,null],[11,"clone","","",4,null],[11,"fmt","","",4,null],[11,"new","","",4,{"inputs":[{"name":"path"}],"output":{"name":"self"}}],[11,"read_config","","",4,null],[11,"get_root","","",4,null],[11,"set_root","","",4,null],[11,"get_dest","","",4,null],[11,"set_dest","","",4,null],[11,"get_src","","",4,null],[11,"set_src","","",4,null],[0,"renderer","mdbook","",null,null],[3,"HtmlHandlebars","mdbook::renderer","",null,null],[0,"renderer","","",null,null],[8,"Renderer","mdbook::renderer::renderer","",null,null],[10,"render","","",5,null],[11,"new","mdbook::renderer","",6,{"inputs":[],"output":{"name":"self"}}],[11,"render","","",6,null],[0,"theme","mdbook","",null,null],[3,"Theme","mdbook::theme","The `Theme` struct should be used instead of the static variables because the `new()` method\nwill look if the user has a theme directory in his source folder and use the users theme instead\nof the default.",null,null],[12,"index","","",7,null],[12,"css","","",7,null],[12,"favicon","","",7,null],[12,"js","","",7,null],[12,"highlight_css","","",7,null],[12,"tomorrow_night_css","","",7,null],[12,"highlight_js","","",7,null],[12,"jquery","","",7,null],[7,"INDEX","","",null,null],[7,"CSS","","",null,null],[7,"FAVICON","","",null,null],[7,"JS","","",null,null],[7,"HIGHLIGHT_JS","","",null,null],[7,"TOMORROW_NIGHT_CSS","","",null,null],[7,"HIGHLIGHT_CSS","","",null,null],[7,"JQUERY","","",null,null],[7,"FONT_AWESOME","","",null,null],[7,"FONT_AWESOME_EOT","","",null,null],[7,"FONT_AWESOME_SVG","","",null,null],[7,"FONT_AWESOME_TTF","","",null,null],[7,"FONT_AWESOME_WOFF","","",null,null],[7,"FONT_AWESOME_WOFF2","","",null,null],[7,"FONT_AWESOME_OTF","","",null,null],[11,"new","","",7,{"inputs":[{"name":"path"}],"output":{"name":"self"}}],[0,"utils","mdbook","",null,null],[5,"path_to_root","mdbook::utils","Takes a path and returns a path containing just enough `../` to point to the root of the given path.",null,{"inputs":[{"name":"path"}],"output":{"name":"string"}}],[5,"create_file","","This function creates a file and returns it. But before creating the file it checks every\ndirectory in the path to see if it exists, and if it does not it will be created.",null,{"inputs":[{"name":"path"}],"output":{"name":"result"}}],[5,"remove_dir_content","","Removes all the content of a directory but not the directory itself",null,{"inputs":[{"name":"path"}],"output":{"name":"result"}}],[5,"copy_files_except_ext","","",null,null],[5,"render_markdown","","",null,{"inputs":[{"name":"str"}],"output":{"name":"string"}}]],"paths":[[3,"MDBook"],[3,"Chapter"],[3,"BookItems"],[4,"BookItem"],[3,"BookConfig"],[8,"Renderer"],[3,"HtmlHandlebars"],[3,"Theme"]]}; initSearch(searchIndex);