Skip to content

Fix broken/out-of-date docs links #68

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 20, 2025
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
4 changes: 2 additions & 2 deletions web/src/components/AppBar/AppBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ import {
user,
} from '@/rest';
import {
emberAboutUrl, dandiDocumentationUrl,
emberAboutUrl, emberDocumentationUrl,
} from '@/utils/constants';
import UserMenu from '@/components/AppBar/UserMenu.vue';
import logo from '@/assets/ember-logo.png';
Expand Down Expand Up @@ -184,7 +184,7 @@ const navItems: NavigationItem[] = [
},
{
text: 'Documentation',
to: dandiDocumentationUrl,
to: emberDocumentationUrl,
external: true,
},
// {
Expand Down
6 changes: 3 additions & 3 deletions web/src/components/DandiFooter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
<a
target="_blank"
rel="noopener"
href="https://docs.dandiarchive.org/about/terms/"
:href="`${dandiDocumentationUrl}/about/terms/`"
class="text-primary"
>Terms</a>
<v-icon size="x-small">
mdi-open-in-new
</v-icon> / <a
target="_blank"
rel="noopener"
href="https://docs.dandiarchive.org/about/policies/"
:href="`${dandiDocumentationUrl}/about/policies/`"
class="text-primary"
>Policies</a>
<v-icon size="x-small">
Expand Down Expand Up @@ -132,7 +132,7 @@

<script setup lang="ts">
import CookieBanner from './CookieBanner.vue';
import { dandiUrl } from '@/utils/constants';
import { dandiUrl, dandiDocumentationUrl } from '@/utils/constants';

const version = import.meta.env.VITE_APP_VERSION;
const githubLink = import.meta.env.VITE_APP_GIT_REVISION ? `https://github.com/aplbrain/dandi-archive/commit/${import.meta.env.VITE_APP_GIT_REVISION}` : 'https://github.com/aplbrain/dandi-archive';
Expand Down
3 changes: 2 additions & 1 deletion web/src/components/FileBrowser/FileUploadInstructions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<span class="text-body-2 text-grey-darken-1">
<span class="text-body-2 text-grey-darken-1">
Follow the installation instructions in the
<a href="https://docs.dandiarchive.org/user-guide-sharing/uploading-data">
<a :href="`${dandiDocumentationUrl}/user-guide-sharing/uploading-data`">
DANDI Docs
</a> .
</span>
Expand All @@ -50,6 +50,7 @@
<script setup lang="ts">
import { computed } from 'vue';
import { useDandisetStore } from '@/stores/dandiset';
import { dandiDocumentationUrl } from '@/utils/constants';

const store = useDandisetStore();
const dandisetIdentifier = computed(() => store.dandiset?.dandiset.identifier);
Expand Down
4 changes: 3 additions & 1 deletion web/src/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ const dandiUrl = 'https://dandiarchive.org';
const emberHomeUrl = 'https://emberarchive.org';
const emberAboutUrl = 'https://emberarchive.org/about';
const emberGitHubUrl = 'https://github.com/aplbrain/dandi-archive';
const dandiDocumentationUrl = 'https://emberarchive.org/documentation';
const emberDocumentationUrl = 'https://emberarchive.org/documentation';
const dandiDocumentationUrl = 'https://docs.dandiarchive.org/documentation';
// const dandiAboutUrl = 'https://about.dandiarchive.org/';
const dandiHelpUrl = 'https://github.com/dandi/helpdesk/issues/new/choose';
const dandihubUrl = 'https://hub.dandiarchive.org/';
Expand Down Expand Up @@ -61,6 +62,7 @@ export {
emberHomeUrl,
emberAboutUrl,
emberGitHubUrl,
emberDocumentationUrl,
dandiDocumentationUrl,
dandihubUrl,
sandboxDocsUrl,
Expand Down
4 changes: 2 additions & 2 deletions web/src/views/CreateDandisetView/CreateDandisetView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
<div>
Select a license under which to share the contents of this Dandiset.
You can learn more about <a
href="https://docs.dandiarchive.org/35_data_licenses/"
:href="`${dandiDocumentationUrl}/user-guide-sharing/data-licenses`"
target="_blank"
rel="noopener"
>
Expand Down Expand Up @@ -155,7 +155,7 @@ import { useRouter } from 'vue-router';
import type { ComputedRef } from 'vue';
import { dandiRest, loggedIn } from '@/rest';
import { useDandisetStore } from '@/stores/dandiset';
import { sandboxDocsUrl } from '@/utils/constants';
import { dandiDocumentationUrl, sandboxDocsUrl } from '@/utils/constants';

import type { IdentifierForAnAward, LicenseType, License } from '@/types';

Expand Down
3 changes: 2 additions & 1 deletion web/src/views/DandisetLandingView/DownloadDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<v-tooltip location="right">
<template #activator="{ props }">
<v-btn
href="https://docs.dandiarchive.org/12_download/"
:href="`${dandiDocumentationUrl}/user-guide-using/accessing-data/downloading`"
target="_blank"
rel="noopener"
variant="text"
Expand Down Expand Up @@ -136,6 +136,7 @@
import { computed, ref } from 'vue';
import { useDandisetStore } from '@/stores/dandiset';
import CopyText from '@/components/CopyText.vue';
import { dandiDocumentationUrl } from '@/utils/constants';

function downloadCommand(identifier: string, version: string): string {
// Use the special 'DANDI:' url prefix if appropriate.
Expand Down
Loading