Skip to content

Commit

Permalink
Add docs 404 page
Browse files Browse the repository at this point in the history
  • Loading branch information
tandemdude committed Jun 16, 2024
1 parent 399372d commit 0fae9e0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
5 changes: 3 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@
"sphinx_copybutton",
"sphinx_inline_tabs",
"sphinx_design",
"sphinx_prompt"
"sphinx_prompt",
"notfound.extension",
]
myst_enable_extensions = ["colon_fence"]

Expand All @@ -61,7 +62,7 @@

intersphinx_mapping = {
"python": ("https://docs.python.org/3", None),
"hikari": ("https://hikari-py.github.io/hikari", None),
"hikari": ("https://docs.hikari-py.dev/en/latest", None),
}


Expand Down
2 changes: 1 addition & 1 deletion lightbulb/commands/execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ async def some_hook(pl: lightbulb.ExecutionPipeline, ctx: lightbulb.Context) ->
.. code-block:: python
@lightbulb.hook(lightbulb.ExecutionSteps.CHECKS, skip_when_failed=True)
@lightbulb.hook(lightbulb.ExecutionSteps.CHECKS)
async def some_hook(pl: lightbulb.ExecutionPipeline, ctx: lightbulb.Context) -> None:
# Prevent the hook from running if previous hooks (or the command invocation) failed.
# Also see 'ExecutionPipeline.any_hook_failed' and 'ExecutionPipeline.invocation_failed' for
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ dev = ["nox==2024.4.15"]
"sphinx-copybutton>=0.5.2, <1",
"sphinx-inline-tabs==2023.4.21",
"sphinx_design>=0.6.0, <1",
"sphinx-prompt>=1.8.0, <2"
"sphinx-prompt>=1.8.0, <2",
"sphinx-notfound-page>=1.0.2, <2",
]
"dev.format" = ["ruff>=0.4.8, <1"]
"dev.typecheck" = ["pyright>=1.1.367, <2"]
Expand Down
2 changes: 2 additions & 0 deletions scripts/docs/api_reference_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ def write(self) -> bool:
package_name,
"=" * len(package_name),
"",
".. automodule:: " + ".".join(parts),
"",
]

if package_lines:
Expand Down

0 comments on commit 0fae9e0

Please sign in to comment.