Skip to content

Commit

Permalink
Use tags for references
Browse files Browse the repository at this point in the history
  • Loading branch information
sdiazlor committed Aug 12, 2024
1 parent e101eae commit 4c2fac9
Show file tree
Hide file tree
Showing 18 changed files with 20 additions and 85 deletions.
2 changes: 0 additions & 2 deletions argilla/docs/reference/argilla/client.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,4 @@ for dataset in my_workspace.datasets:

---

## `rg.Argilla`

::: src.argilla.client.Argilla
2 changes: 0 additions & 2 deletions argilla/docs/reference/argilla/datasets/dataset_records.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,4 @@ Check out the [`rg.Record`](../records/records.md) class reference for more info

---

## `rg.Dataset.records`

::: src.argilla.records._dataset_records.DatasetRecords
4 changes: 0 additions & 4 deletions argilla/docs/reference/argilla/datasets/datasets.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,9 @@ dataset = client.datasets("my_dataset")

---

## `rg.Dataset`

::: src.argilla.datasets._resource.Dataset

::: src.argilla.datasets._export._disk.DiskImportExportMixin
options:
show_root_heading: false

::: src.argilla.datasets._export._hub.HubImportExportMixin

Expand Down
22 changes: 11 additions & 11 deletions argilla/docs/reference/argilla/records/metadata.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,36 +40,36 @@ dataset_with_metadata.records.log(

Depending on the `MetadataProperty` type, metadata might need to be formatted in a slightly different way.

=== "For `FloatMetadataProperty`"
=== "For `TermsMetadataProperty`"

```python
rg.Records(
fields={"text": "example"},
metadata={"category": 2.1}
metadata={"category": "A"}
)
```

=== "For `IntegerMetadataProperty`"
# with multiple terms

```python
rg.Records(
fields={"text": "example"},
metadata={"category": 42}
metadata={"category": ["A", "B"]}
)
```

=== "For `TermsMetadataProperty`"
=== "For `FloatMetadataProperty`"

```python
rg.Records(
fields={"text": "example"},
metadata={"category": "A"}
metadata={"category": 2.1}
)
```

# with multiple terms
=== "For `IntegerMetadataProperty`"

```python
rg.Records(
fields={"text": "example"},
metadata={"category": ["A", "B"]}
metadata={"category": 42}
)
```
```
5 changes: 1 addition & 4 deletions argilla/docs/reference/argilla/records/records.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,5 @@ For changes to take effect, the user must call the `update` method on the `Datas

---

## `rg.Record`

::: src.argilla.records._resource.Record
options:
heading_level: 3

5 changes: 1 addition & 4 deletions argilla/docs/reference/argilla/records/responses.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,5 @@ Depending on the `Question` type, responses might need to be formatted in a slig

---

## `rg.Response`

::: src.argilla.responses.Response
options:
heading_level: 3

5 changes: 1 addition & 4 deletions argilla/docs/reference/argilla/records/suggestions.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,5 @@ Depending on the `Question` type, responses might need to be formatted in a slig

---

## `rg.Suggestion`

::: src.argilla.suggestions.Suggestion
options:
heading_level: 3

5 changes: 1 addition & 4 deletions argilla/docs/reference/argilla/records/vectors.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,5 @@ dataset.records.log(

---

## `rg.Vector`

::: src.argilla.vectors.Vector
options:
heading_level: 3

10 changes: 1 addition & 9 deletions argilla/docs/reference/argilla/search.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,6 @@ for record in dataset.records(query=query):

---

## `rg.Query`

::: src.argilla.records._search.Query
options:
heading_level: 3

## `rg.Filter`

::: src.argilla.records._search.Filter
options:
heading_level: 3
::: src.argilla.records._search.Filter
1 change: 0 additions & 1 deletion argilla/docs/reference/argilla/settings/fields.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,5 @@ data = rg.Dataset(
---

## `rg.TextField`

::: src.argilla.settings._field.TextField
8 changes: 0 additions & 8 deletions argilla/docs/reference/argilla/settings/metadata_property.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,8 @@ dataset = rg.Dataset(
---

## `rg.FloatMetadataProperty`

::: src.argilla.settings._metadata.FloatMetadataProperty


## `rg.IntegerMetadataProperty`

::: src.argilla.settings._metadata.IntegerMetadataProperty


## `rg.TermsMetadataProperty`

::: src.argilla.settings._metadata.TermsMetadataProperty
16 changes: 0 additions & 16 deletions argilla/docs/reference/argilla/settings/questions.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,30 +49,14 @@ dataset = rg.Dataset(
---

## `rg.LabelQuestion`

::: src.argilla.settings._question.LabelQuestion


## `rg.MultiLabelQuestion`

::: src.argilla.settings._question.MultiLabelQuestion


## `rg.RankingQuestion`

::: src.argilla.settings._question.RankingQuestion

## `rg.TextQuestion`

::: src.argilla.settings._question.TextQuestion


## `rg.RatingQuestion`

::: src.argilla.settings._question.RatingQuestion


## `rg.SpanQuestion`

::: src.argilla.settings._question.SpanQuestion
4 changes: 0 additions & 4 deletions argilla/docs/reference/argilla/settings/settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,4 @@ dataset.create()
---

## `rg.Settings`

::: src.argilla.settings._resource.Settings
options:
heading_level: 3
2 changes: 0 additions & 2 deletions argilla/docs/reference/argilla/settings/task_distribution.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,4 @@ dataset = rg.Dataset(

---

## `rg.TaskDistribution`

::: src.argilla.settings._task_distribution.OverlapTaskDistribution
2 changes: 0 additions & 2 deletions argilla/docs/reference/argilla/settings/vectors.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,4 @@ settings = rg.Settings(
---

## `rg.VectorField`

::: src.argilla.settings._vector.VectorField
2 changes: 0 additions & 2 deletions argilla/docs/reference/argilla/users.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,4 @@ client.me

---

## `rg.User`

::: src.argilla.users._resource.User
2 changes: 0 additions & 2 deletions argilla/docs/reference/argilla/workspaces.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ workspace = client.workspaces("my_workspace")

---

## `rg.Workspace`

::: src.argilla.workspaces._resource.Workspace
options:
heading_level: 4
8 changes: 4 additions & 4 deletions argilla/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,12 @@ plugins:
show_source: true # include source code
# Headings
heading_level: 3
show_root_heading: false # show the python path of the class
show_root_toc_entry: false # show the toc entry for the root class
show_root_heading: true # show the python path of the class
show_root_toc_entry: true # show the toc entry for the root class
show_root_full_path: false # display "diffrax.asdf" not just "asdf"
show_object_full_path: false # display "diffrax.asdf" not just "asdf"
show_symbol_type_heading: false
show_symbol_type_toc: false
show_symbol_type_heading: true
show_symbol_type_toc: true
# Members
inherited_members: true # allow looking up inherited methods
members_order: source # order methods according to their order of definition in the source code, not alphabetical order
Expand Down

0 comments on commit 4c2fac9

Please sign in to comment.