Skip to content

Commit 9b5e79b

Browse files
committed
Deployed d1f4067 with MkDocs version: 1.6.1
1 parent c53f97b commit 9b5e79b

File tree

11 files changed

+75
-56
lines changed

11 files changed

+75
-56
lines changed

changelog/index.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

insiders/changelog/index.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

insiders/goals.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,6 @@ goals:
4545
- name: Backlinks
4646
ref: /usage/configuration/general/#backlinks
4747
since: 2025/03/10
48+
- name: "Filtering method: `public`"
49+
ref: /usage/configuration/members/#option-filters-public
50+
since: 2025/03/20

insiders/index.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

llms-full.txt

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1325,7 +1325,7 @@ PythonInputOptions(
13251325
docstring_section_style: Literal["table", "list", "spacy"] = "table",
13261326
docstring_style: Literal["auto", "google", "numpy", "sphinx"] | None = "google",
13271327
extensions: list[str | dict[str, Any]] = list(),
1328-
filters: list[str] = lambda: copy()(),
1328+
filters: list[str] | Literal["public"] = lambda: copy()(),
13291329
find_stubs_package: bool = False,
13301330
group_by_category: bool = True,
13311331
heading: str = "",
@@ -1397,7 +1397,7 @@ Attributes:
13971397
- **`docstring_style`** (`Literal['auto', 'google', 'numpy', 'sphinx'] | None`) – The docstring style to use: auto, google, numpy, sphinx, or None.
13981398
- **`extensions`** (`list[str | dict[str, Any]]`) – A list of Griffe extensions to load.
13991399
- **`extra`** (`dict[str, Any]`) – Extra options.
1400-
- **`filters`** (`list[str]`) – A list of filters applied to filter objects based on their name.
1400+
- **`filters`** (`list[str] | Literal['public']`) – A list of filters, or "public".
14011401
- **`find_stubs_package`** (`bool`) – Whether to load stubs package (package-stubs) when extracting docstrings.
14021402
- **`force_inspection`** (`bool`) – Whether to force using dynamic analysis when loading data.
14031403
- **`group_by_category`** (`bool`) – Group the object's children by categories: attributes, classes, functions, and modules.
@@ -1532,14 +1532,22 @@ Extra options.
15321532
### filters
15331533

15341534
```python
1535-
filters: list[str] = field(default_factory=lambda: copy())
1535+
filters: list[str] | Literal['public'] = field(default_factory=lambda: copy())
15361536

15371537
```
15381538

1539-
A list of filters applied to filter objects based on their name.
1539+
A list of filters, or `"public"`.
1540+
1541+
**List of filters**
15401542

15411543
A filter starting with `!` will exclude matching objects instead of including them. The `members` option takes precedence over `filters` (filters will still be applied recursively to lower members in the hierarchy).
15421544

1545+
**Filtering methods**
1546+
1547+
[Sponsors only](../../insiders/) — [Insiders 1.11.0](../../insiders/changelog/#1.11.0)
1548+
1549+
The `public` method will include only public objects: those added to `__all__` or not starting with an underscore (except for special methods/attributes).
1550+
15431551
### find_stubs_package
15441552

15451553
```python
@@ -2043,7 +2051,7 @@ PythonOptions(
20432051
docstring_section_style: Literal["table", "list", "spacy"] = "table",
20442052
docstring_style: Literal["auto", "google", "numpy", "sphinx"] | None = "google",
20452053
extensions: list[str | dict[str, Any]] = list(),
2046-
filters: list[tuple[Pattern, bool]] = lambda: [
2054+
filters: list[tuple[Pattern, bool]] | Literal["public"] = lambda: [
20472055
(compile(removeprefix("!")), startswith("!")) for filtr in _DEFAULT_FILTERS
20482056
](),
20492057
find_stubs_package: bool = False,
@@ -2132,7 +2140,7 @@ Attributes:
21322140
- **`docstring_style`** (`Literal['auto', 'google', 'numpy', 'sphinx'] | None`) – The docstring style to use: auto, google, numpy, sphinx, or None.
21332141
- **`extensions`** (`list[str | dict[str, Any]]`) – A list of Griffe extensions to load.
21342142
- **`extra`** (`dict[str, Any]`) – Extra options.
2135-
- **`filters`** (`list[tuple[Pattern, bool]]`) – A list of filters applied to filter objects based on their name.
2143+
- **`filters`** (`list[tuple[Pattern, bool]] | Literal['public']`) – A list of filters, or "public".
21362144
- **`find_stubs_package`** (`bool`) – Whether to load stubs package (package-stubs) when extracting docstrings.
21372145
- **`force_inspection`** (`bool`) – Whether to force using dynamic analysis when loading data.
21382146
- **`group_by_category`** (`bool`) – Group the object's children by categories: attributes, classes, functions, and modules.
@@ -2267,15 +2275,15 @@ Extra options.
22672275
### filters
22682276

22692277
```python
2270-
filters: list[tuple[Pattern, bool]] = field(
2278+
filters: list[tuple[Pattern, bool]] | Literal["public"] = field(
22712279
default_factory=lambda: [
22722280
(compile(removeprefix("!")), startswith("!")) for filtr in _DEFAULT_FILTERS
22732281
]
22742282
)
22752283

22762284
```
22772285

2278-
A list of filters applied to filter objects based on their name.
2286+
A list of filters, or `"public"`.
22792287

22802288
### find_stubs_package
22812289

@@ -2976,7 +2984,7 @@ Returns:
29762984
do_filter_objects(
29772985
objects_dictionary: dict[str, Object | Alias],
29782986
*,
2979-
filters: Sequence[tuple[Pattern, bool]] | None = None,
2987+
filters: Sequence[tuple[Pattern, bool]] | Literal["public"] | None = None,
29802988
members_list: bool | list[str] | None = None,
29812989
inherited_members: bool | list[str] = False,
29822990
keep_no_docstrings: bool = True
@@ -2994,7 +3002,7 @@ Parameters:
29943002

29953003
- ### **`filters`**
29963004

2997-
(`Sequence[tuple[Pattern, bool]] | None`, default: `None` ) – Filters to apply, based on members' names. Each element is a tuple: a pattern, and a boolean indicating whether to reject the object if the pattern matches.
3005+
(`Sequence[tuple[Pattern, bool]] | Literal['public'] | None`, default: `None` ) – Filters to apply, based on members' names, or "public". Each element is a tuple: a pattern, and a boolean indicating whether to reject the object if the pattern matches.
29983006

29993007
- ### **`members_list`**
30003008

reference/api/index.html

Lines changed: 10 additions & 10 deletions
Large diffs are not rendered by default.

schema.json

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -380,13 +380,21 @@
380380
"type": "array"
381381
},
382382
"filters": {
383-
"description": "A list of filters applied to filter objects based on their name.\n\nA filter starting with `!` will exclude matching objects instead of including them.\nThe `members` option takes precedence over `filters` (filters will still be applied recursively\nto lower members in the hierarchy).",
384-
"items": {
385-
"type": "string"
386-
},
387-
"markdownDescription": "[DOCUMENTATION](https://mkdocstrings.github.io/python/usage/configuration/members/#filters)\n\nA list of filters applied to filter objects based on their name.\n\nA filter starting with `!` will exclude matching objects instead of including them.\nThe `members` option takes precedence over `filters` (filters will still be applied recursively\nto lower members in the hierarchy).",
388-
"title": "filters",
389-
"type": "array"
383+
"anyOf": [
384+
{
385+
"items": {
386+
"type": "string"
387+
},
388+
"type": "array"
389+
},
390+
{
391+
"const": "public",
392+
"type": "string"
393+
}
394+
],
395+
"description": "A list of filters, or `\"public\"`.\n\n**List of filters**\n\nA filter starting with `!` will exclude matching objects instead of including them.\nThe `members` option takes precedence over `filters` (filters will still be applied recursively\nto lower members in the hierarchy).\n\n**Filtering methods**\n\n[:octicons-heart-fill-24:{ .pulse } Sponsors only](../insiders/index.md){ .insiders } —\n[:octicons-tag-24: Insiders 1.11.0](../insiders/changelog.md#1.11.0)\n\nThe `public` method will include only public objects:\nthose added to `__all__` or not starting with an underscore (except for special methods/attributes).",
396+
"markdownDescription": "[DOCUMENTATION](https://mkdocstrings.github.io/python/usage/configuration/members/#filters)\n\nA list of filters, or `\"public\"`.\n\n**List of filters**\n\nA filter starting with `!` will exclude matching objects instead of including them.\nThe `members` option takes precedence over `filters` (filters will still be applied recursively\nto lower members in the hierarchy).\n\n**Filtering methods**\n\n[:octicons-heart-fill-24:{ .pulse } Sponsors only](../insiders/index.md){ .insiders } —\n[:octicons-tag-24: Insiders 1.11.0](../insiders/changelog.md#1.11.0)\n\nThe `public` method will include only public objects:\nthose added to `__all__` or not starting with an underscore (except for special methods/attributes).",
397+
"title": "filters"
390398
},
391399
"find_stubs_package": {
392400
"default": false,

search/search_index.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

sitemap.xml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,86 +2,86 @@
22
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
33
<url>
44
<loc>https://mkdocstrings.github.io/python/</loc>
5-
<lastmod>2025-03-18</lastmod>
5+
<lastmod>2025-03-20</lastmod>
66
</url>
77
<url>
88
<loc>https://mkdocstrings.github.io/python/changelog/</loc>
9-
<lastmod>2025-03-18</lastmod>
9+
<lastmod>2025-03-20</lastmod>
1010
</url>
1111
<url>
1212
<loc>https://mkdocstrings.github.io/python/code_of_conduct/</loc>
13-
<lastmod>2025-03-18</lastmod>
13+
<lastmod>2025-03-20</lastmod>
1414
</url>
1515
<url>
1616
<loc>https://mkdocstrings.github.io/python/contributing/</loc>
17-
<lastmod>2025-03-18</lastmod>
17+
<lastmod>2025-03-20</lastmod>
1818
</url>
1919
<url>
2020
<loc>https://mkdocstrings.github.io/python/credits/</loc>
21-
<lastmod>2025-03-18</lastmod>
21+
<lastmod>2025-03-20</lastmod>
2222
</url>
2323
<url>
2424
<loc>https://mkdocstrings.github.io/python/license/</loc>
25-
<lastmod>2025-03-18</lastmod>
25+
<lastmod>2025-03-20</lastmod>
2626
</url>
2727
<url>
2828
<loc>https://mkdocstrings.github.io/python/insiders/</loc>
29-
<lastmod>2025-03-18</lastmod>
29+
<lastmod>2025-03-20</lastmod>
3030
</url>
3131
<url>
3232
<loc>https://mkdocstrings.github.io/python/insiders/changelog/</loc>
33-
<lastmod>2025-03-18</lastmod>
33+
<lastmod>2025-03-20</lastmod>
3434
</url>
3535
<url>
3636
<loc>https://mkdocstrings.github.io/python/insiders/installation/</loc>
37-
<lastmod>2025-03-18</lastmod>
37+
<lastmod>2025-03-20</lastmod>
3838
</url>
3939
<url>
4040
<loc>https://mkdocstrings.github.io/python/reference/api/</loc>
41-
<lastmod>2025-03-18</lastmod>
41+
<lastmod>2025-03-20</lastmod>
4242
</url>
4343
<url>
4444
<loc>https://mkdocstrings.github.io/python/usage/</loc>
45-
<lastmod>2025-03-18</lastmod>
45+
<lastmod>2025-03-20</lastmod>
4646
</url>
4747
<url>
4848
<loc>https://mkdocstrings.github.io/python/usage/customization/</loc>
49-
<lastmod>2025-03-18</lastmod>
49+
<lastmod>2025-03-20</lastmod>
5050
</url>
5151
<url>
5252
<loc>https://mkdocstrings.github.io/python/usage/extensions/</loc>
53-
<lastmod>2025-03-18</lastmod>
53+
<lastmod>2025-03-20</lastmod>
5454
</url>
5555
<url>
5656
<loc>https://mkdocstrings.github.io/python/usage/configuration/docstrings/</loc>
57-
<lastmod>2025-03-18</lastmod>
57+
<lastmod>2025-03-20</lastmod>
5858
</url>
5959
<url>
6060
<loc>https://mkdocstrings.github.io/python/usage/configuration/general/</loc>
61-
<lastmod>2025-03-18</lastmod>
61+
<lastmod>2025-03-20</lastmod>
6262
</url>
6363
<url>
6464
<loc>https://mkdocstrings.github.io/python/usage/configuration/headings/</loc>
65-
<lastmod>2025-03-18</lastmod>
65+
<lastmod>2025-03-20</lastmod>
6666
</url>
6767
<url>
6868
<loc>https://mkdocstrings.github.io/python/usage/configuration/members/</loc>
69-
<lastmod>2025-03-18</lastmod>
69+
<lastmod>2025-03-20</lastmod>
7070
</url>
7171
<url>
7272
<loc>https://mkdocstrings.github.io/python/usage/configuration/signatures/</loc>
73-
<lastmod>2025-03-18</lastmod>
73+
<lastmod>2025-03-20</lastmod>
7474
</url>
7575
<url>
7676
<loc>https://mkdocstrings.github.io/python/usage/docstrings/google/</loc>
77-
<lastmod>2025-03-18</lastmod>
77+
<lastmod>2025-03-20</lastmod>
7878
</url>
7979
<url>
8080
<loc>https://mkdocstrings.github.io/python/usage/docstrings/numpy/</loc>
81-
<lastmod>2025-03-18</lastmod>
81+
<lastmod>2025-03-20</lastmod>
8282
</url>
8383
<url>
8484
<loc>https://mkdocstrings.github.io/python/usage/docstrings/sphinx/</loc>
85-
<lastmod>2025-03-18</lastmod>
85+
<lastmod>2025-03-20</lastmod>
8686
</url>
8787
</urlset>

sitemap.xml.gz

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)