1
- # get_object {#sec- get_object}
1
+ # get_object {#get_object}
2
2
3
3
` get_object(module: str, object_name: str, parser: str = 'numpy') `
4
4
@@ -23,21 +23,21 @@ get_function: a deprecated function.
23
23
< Function(' get_function' , ...
24
24
```
25
25
26
- # create_inventory {#sec- create_inventory}
26
+ # create_inventory {#create_inventory}
27
27
28
- `create_inventory(project: str , version: str , items: list[dc.Object | dc.Alias], uri: str | Callable[dc.Object, str ] = < function < lambda > at 0x105878700> , dispname : str | Callable[dc.Object, str ] = ' -' )`
28
+ `create_inventory(project: str , version: str , items: list[dc.Object | dc.Alias], uri: str | Callable[dc.Object, str ] = lambda s : f ' { s.canonical_path } .html ' , dispname: str | Callable[dc.Object, str ] = ' -' )`
29
29
30
30
Return a sphinx inventory file .
31
31
32
32
# # Parameters
33
33
34
- | Name | Type | Description | Default |
35
- | ------------ | -------------------------------- | ---------------------------------------------------------------- | -------------------------------------- |
36
- | `project` | str | Name of the project (often the package name). | required |
37
- | `version` | str | Version of the project (often the package version). | required |
38
- | `items` | list[dc.Object | dc.Alias] | A docstring parser to use. | required |
39
- | `uri` | str | Callable[dc.Object, str ] | Link relative to the docs where the items documentation lives. | `< function < lambda > at 0x105878700> ` |
40
- | `dispname` | str | Callable[dc.Object , str] | Name to be shown when a link to the item is made. | `' -' ` |
34
+ | Name | Type | Description | Default |
35
+ | ------------ | -------------------------------- | ---------------------------------------------------------------- | ---------------------------------------- |
36
+ | `project` | str | Name of the project (often the package name). | required |
37
+ | `version` | str | Version of the project (often the package version). | required |
38
+ | `items` | list[dc.Object | dc.Alias] | A docstring parser to use. | required |
39
+ | `uri` | str | Callable[dc.Object, str ] | Link relative to the docs where the items documentation lives. | `lambda s : f ' { s.canonical_path } .html ' ` |
40
+ | `dispname` | str | Callable[dc.Object, str ] | Name to be shown when a link to the item is made. | `' -' ` |
41
41
42
42
# # Examples
43
43
@@ -63,7 +63,7 @@ To preview the inventory, we can convert it to a dictionary:
63
63
' dispname' : ' -' }]}
64
64
```
65
65
66
- # convert_inventory {#sec- convert_inventory}
66
+ # convert_inventory {#convert_inventory}
67
67
68
68
`convert_inventory(in_name: Union[str , soi.Inventory], out_name = None )`
69
69
@@ -76,7 +76,7 @@ Convert a sphinx inventory file to json.
76
76
| `in_name` | Union[str , soi.Inventory] | Name of inventory file . | required |
77
77
| `out_name` | | Output file name. | `None ` |
78
78
79
- # MdRenderer {#sec- MdRenderer}
79
+ # MdRenderer {#MdRenderer}
80
80
81
81
`MdRenderer(self , header_level: int = 2 , show_signature: bool = True , hook_pre = None )`
82
82
0 commit comments