Skip to content

Commit

Permalink
DOCS-2426: Merge autogen: nav,slam,viz (#3040)
Browse files Browse the repository at this point in the history
  • Loading branch information
andf-viam authored Jun 27, 2024
1 parent 8b95dd5 commit 9b17e23
Show file tree
Hide file tree
Showing 43 changed files with 1,725 additions and 1,318 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/update_sdk_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@ def parse(type, names):
go_code_samples_raw = soup.find_all(
lambda code_sample_tag: code_sample_tag.name == 'p'
and code_sample_tag.text.startswith(method_name)
and " example:" in code_sample_tag.text)
and code_sample_tag.text.endswith(method_name + ' example:\n'))

## Determine if a code sample is provided for this method:
if len(go_code_samples_raw) == 1:
Expand Down Expand Up @@ -1694,13 +1694,13 @@ def write_markdown(type, names, methods):
## Replace underscores, and convert generic_component to just generic:
resource_adjusted = resource.replace('generic_component', 'generic').replace('_','-')
proto_anchor_link = '/' + type_filepath_name + '/' + resource_adjusted + '/#' + proto_link
elif type == 'service' and resource in ['base_remote_control', 'motion', 'navigation', 'slam']:
elif type == 'service' and resource in ['base_remote_control', 'motion', 'navigation', 'slam', 'vision']:
proto_anchor_link = '/services/' + resource.replace('base_remote_control', 'base_rc') + '/#' + proto_link
elif type == 'service' and resource == 'data_manager':
proto_anchor_link = 'services/data/#' + proto_link
elif type == 'service' and resource == 'generic_service':
proto_anchor_link = '/services/generic/#' + proto_link
elif type == 'service' and resource in ['mlmodel', 'vision']:
elif type == 'service' and resource == 'mlmodel':
proto_anchor_link = '/services/ml/' + resource.replace('mlmodel', 'deploy') + '/#' + proto_link
elif type == 'app' and resource == 'app':
proto_anchor_link = '/appendix/apis/fleet/#' + proto_link
Expand Down
6 changes: 3 additions & 3 deletions docs/appendix/apis/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,19 +186,19 @@ The [motion service](/services/motion/) supports the following methods:

The [navigation service](/services/navigation/) supports the following methods:

{{< readfile "/static/include/services/apis/navigation.md" >}}
{{< readfile "/static/include/services/apis/generated/navigation-table.md" >}}

### SLAM

The [Simultaneous Localization And Mapping (SLAM) service](/services/slam/) supports the following methods:

{{< readfile "/static/include/services/apis/slam.md" >}}
{{< readfile "/static/include/services/apis/generated/slam-table.md" >}}

### Vision

Different [vision service](/services/vision/) models support different methods:

{{< readfile "/static/include/services/apis/vision.md" >}}
{{< readfile "/static/include/services/apis/generated/vision-table.md" >}}

## Signaling APIs

Expand Down
Loading

0 comments on commit 9b17e23

Please sign in to comment.