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,"root","","",0,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 in the form of a tuple:\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,"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,"set_dest","","",0,null],[11,"set_src","","",0,null],[11,"set_title","","",0,null],[11,"set_author","","",0,null],[0,"bookitem","mdbook::book","",null,null],[3,"BookItem","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],[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","","",3,null],[12,"author","","",3,null],[12,"indent_spaces","","",3,null],[11,"clone","","",3,null],[11,"fmt","","",3,null],[11,"new","","",3,{"inputs":[],"output":{"name":"self"}}],[11,"read_config","","",3,null],[11,"dest","","",3,null],[11,"set_dest","","",3,null],[11,"src","","",3,null],[11,"set_src","","",3,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","","",4,null],[11,"new","mdbook::renderer","",5,{"inputs":[],"output":{"name":"self"}}],[11,"render","","",5,null],[0,"theme","mdbook","",null,null],[3,"Theme","mdbook::theme","",null,null],[12,"index","","",6,null],[12,"css","","",6,null],[12,"js","","",6,null],[12,"highlight_css","","",6,null],[12,"highlight_js","","",6,null],[11,"new","","",6,{"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_path","","This function checks for every component in a path if the directory exists,\nif it does not it is created.",null,{"inputs":[{"name":"path"}],"output":{"name":"result"}}],[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"}}]],"paths":[[3,"MDBook"],[3,"BookItem"],[3,"BookItems"],[3,"BookConfig"],[8,"Renderer"],[3,"HtmlHandlebars"],[3,"Theme"]]}; initSearch(searchIndex);