{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "## Documentation generator" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "hide_input": true }, "outputs": [], "source": [ "from fastai.gen_doc.nbdoc import *" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Generates documentation for `fastai` classes, functions, types. \n", "View documentation inside a Jupyter Notebook with [`show_doc`](/gen_doc.nbdoc.html#show_doc) or at [`docs.fast.ai`](http://docs.fast.ai)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Show the documentation of a function" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "hide_input": true }, "outputs": [ { "data": { "text/markdown": [ "
show_doc[source][test]show_doc(**`elt`**, **`doc_string`**:`bool`=***`True`***, **`full_name`**:`str`=***`None`***, **`arg_comments`**:`dict`=***`None`***, **`title_level`**=***`None`***, **`alt_doc_string`**:`str`=***`''`***, **`ignore_warn`**:`bool`=***`False`***, **`markdown`**=***`True`***, **`show_tests`**=***`True`***)\n",
"\n",
"No tests found for show_doc. To contribute a test please refer to this guide and this discussion.
get_source_link[source][test]get_source_link(**`file`**, **`line`**, **`display_text`**=***`'[source]'`***, **\\*\\*`kwargs`**) → `str`\n",
"\n",
"No tests found for get_source_link. To contribute a test please refer to this guide and this discussion.
show_video[source][test]show_video(**`url`**)\n",
"\n",
"No tests found for show_video. To contribute a test please refer to this guide and this discussion.
show_video_from_youtube[source][test]show_video_from_youtube(**`code`**, **`start`**=***`0`***)\n",
"\n",
"No tests found for show_video_from_youtube. To contribute a test please refer to this guide and this discussion.
get_exports[source][test]get_exports(**`mod`**)\n",
"\n",
"No tests found for get_exports. To contribute a test please refer to this guide and this discussion.
get_fn_link[source][test]get_fn_link(**`ft`**) → `str`\n",
"\n",
"No tests found for get_fn_link. To contribute a test please refer to this guide and this discussion.
get_ft_names[source][test]get_ft_names(**`mod`**, **`include_inner`**=***`False`***) → `List`\\[`str`\\]\n",
"\n",
"No tests found for get_ft_names. To contribute a test please refer to this guide and this discussion.
is_enum[source][test]is_enum()\n",
"\n",
"No tests found for is_enum. To contribute a test please refer to this guide and this discussion.
import_mod[source][test]import_mod(**`mod_name`**:`str`, **`ignore_errors`**=***`False`***)\n",
"\n",
"No tests found for import_mod. To contribute a test please refer to this guide and this discussion.
link_docstring[source][test]link_docstring(**`modules`**, **`docstring`**:`str`, **`overwrite`**:`bool`=***`False`***) → `str`\n",
"\n",
"No tests found for link_docstring. To contribute a test please refer to this guide and this discussion.
jekyll_important[source][test]jekyll_important(**`s`**)\n",
"\n",
"No tests found for jekyll_important. To contribute a test please refer to this guide and this discussion.
jekyll_warn[source][test]jekyll_warn(**`s`**)\n",
"\n",
"No tests found for jekyll_warn. To contribute a test please refer to this guide and this discussion.
jekyll_note[source][test]jekyll_note(**`s`**)\n",
"\n",
"No tests found for jekyll_note. To contribute a test please refer to this guide and this discussion.
doc[source][test]doc(**`elt`**)\n",
"\n",
"No tests found for doc. To contribute a test please refer to this guide and this discussion.