Skip to content

Commit b6907f7

Browse files
authored
chore: Remove many broken quartodoc links (#1061)
1 parent 6023c66 commit b6907f7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+540
-507
lines changed

docs/_quarto.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,9 @@ filters:
3434

3535
interlinks:
3636
sources:
37+
PIL:
38+
url: https://pillow.readthedocs.io/en/stable/
39+
matplotlib:
40+
url: https://matplotlib.org/stable/
3741
python:
3842
url: https://docs.python.org/3/

docs/_quartodoc.yml

Lines changed: 51 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ quartodoc:
9393
contents:
9494
- ui.input_file
9595
- ui.download_button
96+
- ui.download_link
9697
- title: Custom UI
9798
desc: Lower-level UI functions for creating custom HTML/CSS/JS
9899
contents:
@@ -164,27 +165,13 @@ quartodoc:
164165
- render.image
165166
- render.table
166167
- render.text
168+
- render.code
167169
- render.ui
168170
- render.express
171+
- render.download
169172
- render.data_frame
170173
- render.DataGrid
171174
- render.DataTable
172-
- kind: page
173-
path: Renderer
174-
flatten: true
175-
summary:
176-
name: "Create output renderers"
177-
desc: "Package author methods for creating new output renderers."
178-
contents:
179-
- render.renderer.Renderer
180-
- name: render.renderer.Jsonifiable
181-
dynamic: false
182-
- name: render.renderer.ValueFn
183-
dynamic: false
184-
- name: render.renderer.AsyncValueFn
185-
dynamic: false
186-
- name: render.renderer.RendererT
187-
dynamic: false
188175
- title: Reactive programming
189176
desc: ""
190177
contents:
@@ -231,12 +218,47 @@ quartodoc:
231218
- title: Developer facing tools
232219
desc: ""
233220
contents:
234-
- session.get_current_session
235-
- session.require_active_session
236-
- session.session_context
237-
- reactive.get_current_context
238-
- name: input_handler.input_handlers
239-
dynamic: true
221+
- kind: page
222+
path: Session
223+
summary:
224+
name: "Session"
225+
desc: ""
226+
flatten: true
227+
contents:
228+
- session.get_current_session
229+
- session.require_active_session
230+
- session.session_context
231+
- reactive.get_current_context
232+
- name: input_handler.input_handlers
233+
dynamic: true
234+
- kind: page
235+
path: Renderer
236+
flatten: true
237+
summary:
238+
name: "Create output renderers"
239+
desc: "Package author methods for creating new output renderers."
240+
contents:
241+
- render.renderer.Renderer
242+
- name: render.renderer.Jsonifiable
243+
dynamic: false
244+
- name: render.renderer.ValueFn
245+
dynamic: false
246+
- name: render.renderer.AsyncValueFn
247+
dynamic: false
248+
- name: render.renderer.RendererT
249+
dynamic: false
250+
- kind: page
251+
path: Htmltools
252+
flatten: true
253+
package: null
254+
summary:
255+
name: "htmltools methods"
256+
desc: ""
257+
contents:
258+
- name: htmltools.HTMLDependency
259+
dynamic: false
260+
- name: htmltools.css
261+
dynamic: false
240262
- title: Types
241263
desc: ""
242264
contents:
@@ -255,6 +277,7 @@ quartodoc:
255277
- ui.Sidebar
256278
- ui.CardItem
257279
- ui.AccordionPanel
280+
- reactive.Context
258281
- name: ui.css.CssUnit
259282
dynamic: false
260283
- ui._input_slider.SliderValueArg
@@ -277,6 +300,12 @@ quartodoc:
277300
dynamic: false
278301
- name: htmltools.TagList
279302
dynamic: false
303+
- name: htmltools.TagFunction
304+
dynamic: false
305+
- name: htmltools.Tagifiable
306+
dynamic: false
307+
- name: htmltools.MetadataNode
308+
dynamic: false
280309
- kind: page
281310
path: ExceptionTypes
282311
summary:

shiny/_app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
from ._utils import guess_mime_type, is_async_callable
3333
from .html_dependencies import jquery_deps, require_deps, shiny_deps
3434
from .http_staticfiles import FileResponse, StaticFiles
35-
from .session import Inputs, Outputs, Session, session_context
35+
from .session._session import Inputs, Outputs, Session, session_context
3636

3737
T = TypeVar("T")
3838

@@ -319,7 +319,7 @@ async def stop(self) -> None:
319319
320320
See Also
321321
--------
322-
~shiny.Session.close
322+
* :func:`~shiny.Session.close`
323323
"""
324324
# convert to list to avoid modifying the dict while iterating over it, which
325325
# throws an error

shiny/_main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ def run_app(
247247
Tip
248248
---
249249
The ``shiny run`` command-line interface (which comes installed with Shiny) provides
250-
the same functionality as :func:`~shiny.run_app`.
250+
the same functionality as `shiny.run_app()`.
251251
252252
Examples
253253
--------

shiny/_validation.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ def req(*args: T, cancel_output: bool | Literal["progress"] = False) -> T | None
2727
"""
2828
Throw a silent exception for falsy values.
2929
30-
This is a convenient shorthand for throwing :func:`~shiny.types.SilentException` /
31-
:func:`~shiny.types.SilentCancelOutputException` if any of the arguments are falsy.
30+
This is a convenient shorthand for throwing :class:`~shiny.types.SilentException` /
31+
:class:`~shiny.types.SilentCancelOutputException` if any of the arguments are falsy.
3232
3333
The term "falsy" generally indicates that a value is considered `False` when
3434
encountered in a logical context. We use the term a little loosely here; our usage
@@ -42,8 +42,8 @@ def req(*args: T, cancel_output: bool | Literal["progress"] = False) -> T | None
4242
*args
4343
Any number of arguments to check.
4444
cancel_output
45-
If ``True``, throw :func:`~shiny.types.SilentCancelOutputException` instead of
46-
:func:`~shiny.types.SilentException`.
45+
If ``True``, throw :class:`~shiny.types.SilentCancelOutputException` instead of
46+
:class:`~shiny.types.SilentException`.
4747
4848
Returns
4949
-------

shiny/experimental/ui/_card.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def card_title(
131131
resolved :class:`~htmltools.Tag` object.
132132
container
133133
Method for the returned :class:`~htmltools.Tag` object. Defaults to
134-
:func:`~shiny.ui.tags`.h5.
134+
:func:`~shiny.ui.tags.h5`.
135135
**kwargs
136136
Additional HTML attributes for the returned :class:`~htmltools.Tag` object.
137137

shiny/experimental/ui/_deprecated.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ def panel_main(
595595
# Deprecated 2023-09-12
596596
CssUnit = MainCssUnit
597597
"""
598-
Deprecated. Please use `shiny.ui.css_unit.CssUnit` instead.
598+
Deprecated. Please use `shiny.ui.css.CssUnit` instead.
599599
"""
600600

601601

@@ -612,12 +612,12 @@ def as_css_unit(value: CssUnit) -> str:
612612
# Deprecated 2023-09-12
613613
def as_css_unit(value: None | CssUnit) -> None | str:
614614
"""
615-
Deprecated. Please use :func:`~shiny.ui.css_unit.as_css_unit()` instead.
615+
Deprecated. Please use :func:`~shiny.ui.css.as_css_unit()` instead.
616616
"""
617617
warn_deprecated(
618618
"`shiny.experimental.ui.as_css_unit()` is deprecated. "
619619
"This method will be removed in a future version, "
620-
"please use `shiny.ui.css_unit.as_css_unit()` instead."
620+
"please use `shiny.ui.css.as_css_unit()` instead."
621621
)
622622
return main_as_css_unit(value)
623623

@@ -635,12 +635,12 @@ def as_css_padding(padding: None) -> None:
635635
# Deprecated 2023-09-12
636636
def as_css_padding(padding: CssUnit | list[CssUnit] | None) -> str | None:
637637
"""
638-
Deprecated. Please use :func:`~shiny.ui.css_unit.as_css_padding()` instead.
638+
Deprecated. Please use :func:`~shiny.ui.css.as_css_padding()` instead.
639639
"""
640640
warn_deprecated(
641641
"`shiny.experimental.ui.as_css_padding()` is deprecated. "
642642
"This method will be removed in a future version, "
643-
"please use `shiny.ui.css_unit.as_css_padding()` instead."
643+
"please use `shiny.ui.css.as_css_padding()` instead."
644644
)
645645
return main_as_css_padding(padding)
646646

shiny/express/_output.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ def output_args(
2222
"""
2323
Sets default UI arguments for a Shiny rendering function.
2424
25-
Each Shiny render function (like :func:`~shiny.render.plot`) can display itself when
25+
Each Shiny render function (like :class:`~shiny.render.plot`) can display itself when
2626
declared within a Shiny inline-style application. In the case of
27-
:func:`~shiny.render.plot`, the :func:`~shiny.ui.output_plot` function is called
27+
:class:`~shiny.render.plot`, the :func:`~shiny.ui.output_plot` function is called
2828
implicitly to display the plot. Use the `@ui_kwargs` decorator to specify arguments
2929
to be passed to `output_plot` (or whatever the corresponding UI function is) when
3030
the render function displays itself.

shiny/express/_run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def wrap_express_app(file: Path) -> App:
3131
Returns
3232
-------
3333
:
34-
A `shiny.App` object.
34+
A :class:`shiny.App` object.
3535
"""
3636
try:
3737
with session_context(cast(Session, MockSession())):

shiny/express/ui/_cm_components.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def layout_sidebar(
147147
This function wraps :func:`~shiny.ui.layout_sidebar`.
148148
149149
Create a sidebar layout component which can be dropped inside any Shiny UI page
150-
method (e.g. :func:`~shiny.shiny.ui.page_fillable`) or :func:`~shiny.ui.card`
150+
method (e.g. :func:`~shiny.ui.page_fillable`) or :func:`~shiny.ui.card`
151151
context.
152152
153153
The first child needs to be of class :class:`~shiny.ui.Sidebar` object created by
@@ -159,10 +159,10 @@ def layout_sidebar(
159159
----------
160160
fillable
161161
Whether or not the main content area should be wrapped in a fillable container.
162-
See :func:`~shiny.ui.as_fillable_container` for details.
162+
See :func:`~shiny.ui.fill.as_fillable_container` for details.
163163
fill
164164
Whether or not the sidebar layout should be wrapped in a fillable container. See
165-
:func:`~shiny.ui.as_fill_item` for details.
165+
:func:`~shiny.ui.fill.as_fill_item` for details.
166166
bg,fg
167167
A background or foreground color.
168168
border
@@ -370,7 +370,7 @@ def layout_columns(
370370
371371
See Also
372372
--------
373-
* :func:`~shiny.express.layout.layout_column_wrap` for laying out elements into a
373+
* :func:`~shiny.express.ui.layout_column_wrap` for laying out elements into a
374374
uniform grid.
375375
376376
Reference
@@ -1250,7 +1250,7 @@ def panel_conditional(
12501250
Tip
12511251
---
12521252
A more powerful (but slower) way to conditionally show UI content is to use
1253-
:func:`~shiny.render.ui`.
1253+
:class:`~shiny.render.ui`.
12541254
"""
12551255
return RecallContextManager(
12561256
ui.panel_conditional,
@@ -1286,8 +1286,8 @@ def panel_fixed(
12861286
Arguments passed along to :func:`~shiny.ui.panel_absolute`.
12871287
12881288
See Also
1289-
-------
1290-
:func:`~shiny.ui.panel_absolute`
1289+
--------
1290+
* :func:`~shiny.ui.panel_absolute`
12911291
"""
12921292
return RecallContextManager(
12931293
ui.panel_fixed,

0 commit comments

Comments
 (0)