Skip to content

Commit

Permalink
fix: download modal api docs link (#805)
Browse files Browse the repository at this point in the history
#699

Fixes the links for the API docs tab so that it points to the [quick
start](https://chanzuckerberg.github.io/cryoet-data-portal/cryoet_data_portal_docsite_quick_start.html)
docs as intended
  • Loading branch information
codemonkey800 authored Jun 14, 2024
1 parent bab6036 commit de97381
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,6 @@ export function APIDownloadTab() {
i18nKey={
fileFormat ? 'preferToDownloadViaApiCode' : 'preferToDownloadViaApi'
}
values={{
url: `https://chanzuckerberg.github.io/cryoet-data-portal/python-api.html#${
annotationId ? 'annotation' : 'tomogram'
}`,
}}
tOptions={{
interpolation: { escapeValue: false },
}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"annotationSoftware": "Annotation Software",
"annotations": "Annotations",
"api": "API",
"apiDocLink": "https://chanzuckerberg.github.io/cryoet-data-portal",
"apiDocLink": "https://chanzuckerberg.github.io/cryoet-data-portal/cryoet_data_portal_docsite_quick_start.html",
"apply": "Apply",
"askOnGithub": "Ask a Question on GitHub",
"author": "Author",
Expand Down Expand Up @@ -225,7 +225,7 @@
"precision": "Precision",
"precisionTooltip": "<semibold>Precision:</semibold> Percentage of true positives among the total number of positive predictions. A value of 100% means everything found is actually the object of interest. <url to='/faq?accordion=tilt-series'>Learn More</url>",
"preferToDownloadViaApi": "<semibold>Prefer to download via our API?</semibold> Record the IDs below and visit our <url to='$t(apiDocLink)'>API documentation</url> to learn how.",
"preferToDownloadViaApiCode": "<semibold>Prefer to download via our API?</semibold> Record the code snippet below and visit our <url to='{{url}}'>API documentation</url> to learn how.",
"preferToDownloadViaApiCode": "<semibold>Prefer to download via our API?</semibold> Record the code snippet below and visit our <url to='$t(apiDocLink)'>API documentation</url> to learn how.",
"primaryAuthor": "Primary Author",
"privacy": "Privacy",
"privacyPolicy": "Privacy Policy",
Expand Down

0 comments on commit de97381

Please sign in to comment.