Commit f5f7c5a 1 parent 7b04d7d commit f5f7c5a Copy full SHA for f5f7c5a
File tree 4 files changed +16
-6
lines changed
4 files changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -35,8 +35,8 @@ py -3 -m pip install -U hikari
35
35
## Bots
36
36
37
37
Hikari provides two different default bot implementations to suit your needs:
38
- - [ GatewayBot] ( #GatewayBot )
39
- - [ RESTBot] ( #RESTBot )
38
+ - [ GatewayBot] ( #gatewaybot )
39
+ - [ RESTBot] ( #restbot )
40
40
41
41
### GatewayBot
42
42
Original file line number Diff line number Diff line change 57
57
"sphinx.ext.intersphinx" ,
58
58
"sphinx.ext.viewcode" ,
59
59
"sphinx.ext.mathjax" ,
60
- # Docs generation
61
- "autoapi.extension" ,
62
- "numpydoc" ,
60
+ # Our extensions
63
61
"myst_parser" ,
64
- # Misc
65
62
"sphinxext.opengraph" ,
66
63
"sphinx_copybutton" ,
67
64
"sphinxcontrib.towncrier.ext" ,
68
65
]
69
66
67
+ if os .getenv ("SKIP_REFERENCE_DOCS" ) is None :
68
+ extensions .extend (
69
+ (
70
+ "autoapi.extension" ,
71
+ "numpydoc" ,
72
+ )
73
+ )
74
+
75
+
70
76
templates_path = ["_templates" ]
71
77
exclude_patterns = ["_build" , "Thumbs.db" , ".DS_Store" ]
72
78
Original file line number Diff line number Diff line change @@ -2738,6 +2738,7 @@ async def set_my_user_application_role_connection(
2738
2738
Depending on the time of the previously created application role
2739
2739
records through `set_application_role_connection_metadata_records`,
2740
2740
this mapping should contain those keys to the valid type of the record:
2741
+
2741
2742
- `INTEGER_X`: An `int`.
2742
2743
- `DATETIME_X`: A `datetime.datetime` object.
2743
2744
- `BOOLEAN_X`: A `bool`.
Original file line number Diff line number Diff line change 36
36
@nox .session (reuse_venv = True )
37
37
def sphinx (session : nox .Session ):
38
38
"""Generate docs using sphinx."""
39
+ if "--no-refs" in session .posargs :
40
+ session .env ["SKIP_REFERENCE_DOCS" ] = "1"
41
+
39
42
if not os .path .exists (config .ARTIFACT_DIRECTORY ):
40
43
os .mkdir (config .ARTIFACT_DIRECTORY )
41
44
You can’t perform that action at this time.
0 commit comments