Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@ tests/test_jupyter/*.txt
.venv
docs/jupyter_execute
.DS_Store
docs/source/reference_guides/commands.md
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ repos:
mdformat-pyproject>=0.0.2,
]
files: (docs/.)
exclude: (docs/source/reference_guides/hookspecs\.md|docs/source/api/.*\.md|docs/source/how_to_guides/capture_warnings\.md|docs/source/how_to_guides/hashing_inputs_of_tasks\.md|docs/source/how_to_guides/provisional_nodes_and_task_generators\.md|docs/source/how_to_guides/remote_files\.md|docs/source/how_to_guides/writing_custom_nodes\.md|docs/source/tutorials/defining_dependencies_products\.md|docs/source/tutorials/using_a_data_catalog\.md)
exclude: (docs/source/reference_guides/hookspecs\.md|docs/source/reference_guides/api/.*\.md|docs/source/how_to_guides/capture_warnings\.md|docs/source/how_to_guides/hashing_inputs_of_tasks\.md|docs/source/how_to_guides/provisional_nodes_and_task_generators\.md|docs/source/how_to_guides/remote_files\.md|docs/source/how_to_guides/writing_custom_nodes\.md|docs/source/tutorials/defining_dependencies_products\.md|docs/source/tutorials/using_a_data_catalog\.md)
- repo: https://github.com/kynan/nbstripout
rev: 0.9.1
hooks:
Expand Down
31 changes: 31 additions & 0 deletions docs/source/_static/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,34 @@ body[data-md-color-scheme="slate"] .home-tile p {
box-shadow: 0 12px 26px rgba(2, 6, 23, 0.46);
}
}

.md-typeset dl.cli-reference {
margin: 0.75rem 0 1.25rem;
}

.md-typeset dl.cli-reference dt {
margin: 0.85rem 0 0;
font-weight: 500;
}

.md-typeset dl.cli-reference dd {
margin: 0.2rem 0 0.75rem 1.5rem;
}

.md-typeset dl.cli-reference dd p {
margin: 0;
}

.md-typeset dl.cli-reference dd p + p {
margin-top: 0.25rem;
color: var(--md-default-fg-color--light);
}

.md-typeset dl.cli-reference dt a,
.md-typeset dl.cli-reference dt a:hover,
.md-typeset dl.cli-reference dt a:focus,
.md-typeset dl.cli-reference dt a:visited {
color: inherit;
text-decoration: none;
border-bottom: 0;
}
39 changes: 0 additions & 39 deletions docs/source/commands/build.md

This file was deleted.

35 changes: 0 additions & 35 deletions docs/source/commands/clean.md

This file was deleted.

35 changes: 0 additions & 35 deletions docs/source/commands/collect.md

This file was deleted.

34 changes: 0 additions & 34 deletions docs/source/commands/dag.md

This file was deleted.

23 changes: 0 additions & 23 deletions docs/source/commands/index.md

This file was deleted.

32 changes: 0 additions & 32 deletions docs/source/commands/markers.md

This file was deleted.

34 changes: 0 additions & 34 deletions docs/source/commands/profile.md

This file was deleted.

4 changes: 2 additions & 2 deletions docs/source/how_to_guides/bp_complex_task_repetitions.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ When you are using the `.name` attributes of the dimensions and multi-dimensiona
objects like in the example above, you ensure that the names of dimensions are included
in all downstream tasks.

Thus, you can simply call [`pytask -k`](../commands/build.md#options) with the following
expression to execute all tasks related to the logit model.
Thus, you can simply call [`pytask -k`](../reference_guides/commands.md#pytask-build--k)
with the following expression to execute all tasks related to the logit model.

```console
pytask -k logit
Expand Down
4 changes: 2 additions & 2 deletions docs/source/how_to_guides/capture_warnings.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,14 @@ configured by the `filterwarnings` configuration option.
## Disabling warnings summary

Although not recommended, you can use the
[`--disable-warnings`](../commands/build.md#options) command-line option to suppress the
[`--disable-warnings`](../reference_guides/commands.md#pytask-build--disable-warnings) command-line option to suppress the
warning summary entirely from the test run output.

## Debugging warnings

Sometimes it is not clear which line of code triggered a warning. To find the location,
you can turn warnings into exceptions and then use the
[`pytask build --pdb`](../commands/build.md#options) flag to enter the debugger.
[`pytask build --pdb`](../reference_guides/commands.md#pytask-build--pdb) flag to enter the debugger.

You can use the configuration to convert warnings to errors by setting

Expand Down
9 changes: 5 additions & 4 deletions docs/source/how_to_guides/extending_pytask.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ More general information about pluggy can be found in its
There are two ways to add new
[hook implementations](../glossary.md#hook-implementation).

1. Using the [`pytask build --hook-module`](../commands/build.md#options) commandline
option or the `hook_module` configuration value.
1. Using the
[`pytask build --hook-module`](../reference_guides/commands.md#pytask-build--hook-module)
commandline option or the `hook_module` configuration value.
1. Packaging your [plugin](../glossary.md#plugin) as a Python package to publish and
share it.

Expand Down Expand Up @@ -55,8 +56,8 @@ hook_module = ["myproject.hooks"]
```

In `hooks.py` we can add another commandline option to
[`pytask build`](../commands/build.md) by providing an additional
[hook implementation](../glossary.md#hook-implementation) for the
[`pytask build`](../reference_guides/commands.md#pytask-build) by providing an
additional [hook implementation](../glossary.md#hook-implementation) for the
[hook specification](../glossary.md#hook-specification)
`_pytask.hookspecs.pytask_extend_command_line_interface`.

Expand Down
4 changes: 2 additions & 2 deletions docs/source/how_to_guides/how_to_influence_build_order.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ def task_second():
print("I'm first.")
```

The execution yields (use [`-s`](../commands/build.md#options) to make the output
visible in the terminal)
The execution yields (use [`-s`](../reference_guides/commands.md#pytask-build--s) to
make the output visible in the terminal)

--8<-- "docs/source/_static/md/try-first.md"

Expand Down
6 changes: 3 additions & 3 deletions docs/source/how_to_guides/portability.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ Use this checklist when you move a project to another machine or environment.

1. **Update state once on the source machine.**

Run a normal build with [`pytask build`](../commands/build.md) so `pytask.lock` is up to
date:
Run a normal build with [`pytask build`](../reference_guides/commands.md#pytask-build)
so `pytask.lock` is up to date:

````
```console
Expand Down Expand Up @@ -85,7 +85,7 @@ tasks run. If tasks are removed or renamed, their old entries remain as stale da
are ignored.

To clean up stale entries without deleting the file, run
[`pytask build --clean-lockfile`](../commands/build.md#options):
[`pytask build --clean-lockfile`](../reference_guides/commands.md#pytask-build--clean-lockfile):

```console
$ pytask build --clean-lockfile
Expand Down
2 changes: 0 additions & 2 deletions docs/source/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,3 @@ If you want to know more about pytask, dive into one of the following topics.
<p>API and implementation details for developers and plugin authors.</p>
</a>
</div>

For command-line usage, see the [CLI reference](commands/index.md).
12 changes: 0 additions & 12 deletions docs/source/reference_guides/api.md

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

This page documents the public CLI-related imports from `pytask`.

For command usage and options, see the [CLI reference](../commands/index.md).
For command usage and options, see the
[command reference](../commands.md).

## Command Line Entry Point

Expand Down
File renamed without changes.
File renamed without changes.
Loading