Skip to content

Commit 392e6e8

Browse files
committed
fix internal links
- use `useBaseUrl` where possible - as recommended by docusaurus - also one external link
1 parent d3ca505 commit 392e6e8

File tree

8 files changed

+26
-16
lines changed

8 files changed

+26
-16
lines changed

docs/eln/ui/collections/tabs.mdx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ title: Using Collection Tabs
33
sidebar_label: Collection Tabs
44
---
55

6+
import useBaseUrl from "@docusaurus/useBaseUrl";
7+
68
:::info
79

810
Feature available in ELN version 1.7.0 or later
@@ -36,15 +38,15 @@ The main idea behind this is for users to be able to define tabs per collection,
3638

3739
<div>
3840
<video width="100%" height="100%" playsinline muted controls>
39-
<source src="/img/collection_tabs/tab4.webm" type="video/webm" />
41+
<source src={useBaseUrl("/img/collection_tabs/tab4.webm")} type="video/webm" />
4042
</video>
4143
</div>
4244

4345
- The order of this saved collection tabs is then visible on selecting any element from the collection list. Users can view a different arrangement of tabs per collection if the data is saved.
4446

4547
<div>
4648
<video width="100%" height="100%" playsinline muted controls>
47-
<source src="/img/collection_tabs/tab5.webm" type="video/webm" />
49+
<source src={useBaseUrl("/img/collection_tabs/tab5.webm")} type="video/webm" />
4850
</video>
4951
</div>
5052

@@ -56,6 +58,6 @@ The main idea behind this is for users to be able to define tabs per collection,
5658
- The whole workflow is demonstrated below.
5759
<div>
5860
<video width="100%" height="100%" playsinline muted controls>
59-
<source src="/img/collection_tabs/tab-selection.webm" type="video/webm" />
61+
<source src={useBaseUrl("/img/collection_tabs/tab-selection.webm")} type="video/webm" />
6062
</video>
6163
</div>

docs/eln/ui/elements/samples/index.mdx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ import {
1111
faSortDown,
1212
} from "@fortawesome/free-solid-svg-icons";
1313
import { Btn } from "@site/src/js/btn.js";
14+
import Sample from "@site/static/img/sample.svg";
15+
import Reaction from "@site/static/img/reaction.svg";
1416

1517
:::danger[Caution]
1618

@@ -55,7 +57,7 @@ There are three basic ways of generating samples:
5557

5658
### Generation of samples by drawing
5759

58-
The fastest and easiest method of generating a sample at the beginning of Chemotion ELN use is to create a new one by drawing a molecular structure in [Ketcher editor](../ketcher). Please note that samples can only be created if a target [collection](../collections) has been selected beforehand. First select the collection to which your sample should belong in the collection bar. After selecting a collection, go to the action bar and select the <Btn mixed={[faSortDown]} color={"primary"}/> button and choose **Create Sample**. If you already are in the sample tab from the element bar, the action button for adding is already set up accordingly to adding samples. It looks like this <img src={"/img/add_sample.png"} width={"30px"} alt={"Add sample"}/>, and you can make the selection directly.
60+
The fastest and easiest method of generating a sample at the beginning of Chemotion ELN use is to create a new one by drawing a molecular structure in [Ketcher editor](../ketcher). Please note that samples can only be created if a target [collection](../collections) has been selected beforehand. First select the collection to which your sample should belong in the collection bar. After selecting a collection, go to the action bar and select the <Btn mixed={[faSortDown]} color={"primary"}/> button and choose **Create Sample**. If you already are in the sample tab from the element bar, the action button for adding is already set up accordingly to adding samples. It looks like this <Sample title="Sample" className="logo" width={"30px"}/>, and you can make the selection directly.
5961

6062
:::danger[Caution]
6163

@@ -98,9 +100,9 @@ The Chemotion ELN supports importing data from Excel files with appropriate form
98100
alt={"Samples List"}
99101
/>
100102

101-
In the element bar, samples are listed first as the most important common unit of this Chemotion ELN. The tab of the samples has the benzene ring <img src={"/img/sample.svg"} width={"30px"} alt={"Sample"}/> as a symbol. The user will notice the number next to the sample symbol and the number in parentheses. The number right next to the sample symbol indicates the number of samples within the selected collection. The number in parentheses shows the number of selected samples within the collection. The element bar shown in the figure above appears when the Chemotion ELN is opened if no detail level has been selected. When selecting the level of detail by selecting a sample, the element bar is reduced and the [details panel](../details#details-panel-for-samples) appears.
103+
In the element bar, samples are listed first as the most important common unit of this Chemotion ELN. The tab of the samples has the benzene ring <Sample title="Sample" className="logo" width={"30px"}/> as a symbol. The user will notice the number next to the sample symbol and the number in parentheses. The number right next to the sample symbol indicates the number of samples within the selected collection. The number in parentheses shows the number of selected samples within the collection. The element bar shown in the figure above appears when the Chemotion ELN is opened if no detail level has been selected. When selecting the level of detail by selecting a sample, the element bar is reduced and the [details panel](../details#details-panel-for-samples) appears.
102104

103-
The element bar provides an overview of a lot of information. It should be noted that the areas with a gray background within the sample list represent the molecules whose structures are used by samples. These fields do not represent certain samples with properties, but only the general chemical structure. All associated samples of the same structure are then listed below the structure in the white fields. If the user does not want to see the samples for a molecular structure, they can hide them with <Btn mixed={[faChevronDown]} color={"secondary"}/>. Both molecules and samples can be copied using the drag & drop function. This functionality is available through the symbol <Btn mixed={[faArrowsAlt]} color={"secondary"}/>. A cross with a white background transfers the sample (this corresponds to the **Split sample** action), a cross with a gray background transfers the molecule (i.e. only the information of the structure is transferred, this corresponds to the **Copy sample** action). Further symbols in the samples list provide information about whether the corresponding sample appears in a reaction equation (reaction tab) <img src={"/img/reaction.svg"} width={"30px"} alt={"Reaction"}/>, and whether and how often the sample was shared with other people or groups <Btn mixed={[faList, " 1"]} color={"secondary"}/>. The molecular structure is accompanied by symbols within the samples list, which provide information about the availability of the structure of the sample in the SciFinder database. A colored symbol <img src={"/img/scifinder_symbol.png"} width={"30px"} alt={"SciFinder Symbol"}/> indicates that the structure is known in SciFinder. A crossed-out gray symbol indicates that the structure was not part of the database at the time of the query.
105+
The element bar provides an overview of a lot of information. It should be noted that the areas with a gray background within the sample list represent the molecules whose structures are used by samples. These fields do not represent certain samples with properties, but only the general chemical structure. All associated samples of the same structure are then listed below the structure in the white fields. If the user does not want to see the samples for a molecular structure, they can hide them with <Btn mixed={[faChevronDown]} color={"secondary"}/>. Both molecules and samples can be copied using the drag & drop function. This functionality is available through the symbol <Btn mixed={[faArrowsAlt]} color={"secondary"}/>. A cross with a white background transfers the sample (this corresponds to the **Split sample** action), a cross with a gray background transfers the molecule (i.e. only the information of the structure is transferred, this corresponds to the **Copy sample** action). Further symbols in the samples list provide information about whether the corresponding sample appears in a reaction equation (reaction tab) <Reaction title="Reaction" className="logo" width={"30px"}/>, and whether and how often the sample was shared with other people or groups <Btn mixed={[faList, " 1"]} color={"secondary"}/>. The molecular structure is accompanied by symbols within the samples list, which provide information about the availability of the structure of the sample in the SciFinder database. A colored symbol <img src={require('@site/static/img/scifinder_symbol.png').default} width={"30px"} alt={"SciFinder Symbol"}/> indicates that the structure is known in SciFinder. A crossed-out gray symbol indicates that the structure was not part of the database at the time of the query.
104106

105107
For practical reasons, not all samples that are created from within a reaction are displayed in the samples list. Only those that are used either as **Starting material** or as a **Product** are listed. This is done in order to avoid multiple displays of reagents within the sample list.
106108

docs/labimotion/designer/template-features/preview-design.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import {
1919
YouTubeFrame,
2020
Reader,
2121
} from "@site/src/js/layout";
22+
import useBaseUrl from "@docusaurus/useBaseUrl";
2223

2324
<SubTitle text="A feature that allows you to preview the design before releasing it to users and manage different template versions efficiently." />
2425
<Reader text="Designer" />
@@ -37,13 +38,13 @@ Some components remain functional in this preview mode, such as entering text in
3738
>
3839
<span className="figCaption" style={{ textAlign: "left" }}>(Click to view in a new window{" "} <FontAwesomeIcon icon={faArrowUpRightFromSquare} />)</span>
3940
<a
40-
href="/img/labimotion/designer-preview.mp4"
41+
href={useBaseUrl("/img/labimotion/designer-preview.mp4")}
4142
target="_blank"
4243
rel="noopener noreferrer"
4344
style={{ display: "block" }}
4445
>
4546
<video width="100%" controls autoPlay loop muted>
46-
<source src="/img/labimotion/designer-preview.mp4" type="video/mp4" />
47+
<source src={useBaseUrl("/img/labimotion/designer-preview.mp4")} type="video/mp4" />
4748
Your browser does not support the video tag.
4849
</video>
4950
</a>

docs/labimotion/user/elements/details.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import {
1212
SubTitle,
1313
Reader,
1414
} from "@site/src/js/layout";
15+
import useBaseUrl from "@docusaurus/useBaseUrl";
1516

1617
<SubTitle text="The detail modal displays the primary content of the element." />
1718
<Reader text="User" />
@@ -38,14 +39,14 @@ By default, the first layer is expanded. An **Expand/Collapse** button is availa
3839
>
3940
<span className="figCaption" style={{ textAlign: "left" }}>(Click to view in a new window{" "} <FontAwesomeIcon icon={faArrowUpRightFromSquare} />)</span>
4041
<a
41-
href="/img/labimotion/details-expand-collapse.mp4"
42+
href={useBaseUrl("/img/labimotion/details-expand-collapse.mp4")}
4243
target="_blank"
4344
rel="noopener noreferrer"
4445
style={{ display: "block" }}
4546
>
4647
<video width="100%" controls autoPlay loop muted>
4748
<source
48-
src="/img/labimotion/details-expand-collapse.mp4"
49+
src={useBaseUrl("/img/labimotion/details-expand-collapse.mp4")}
4950
type="video/mp4"
5051
/>
5152
Your browser does not support the video tag.

docs/labimotion/user/features/record-time.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import {
1212
} from "@fortawesome/free-solid-svg-icons";
1313

1414
import { FigCaption, SubTitle, Reader } from "@site/src/js/layout";
15+
import useBaseUrl from "@docusaurus/useBaseUrl";
1516

1617
<SubTitle text="Keep record time" />
1718
<Reader text="User" />
@@ -34,13 +35,13 @@ Simply click the <FontAwesomeIcon icon={faCircleXmark} /> icon to remove the rec
3435
>
3536
<span className="figCaption" style={{ textAlign: "left" }}>(Click to view in a new window{" "} <FontAwesomeIcon icon={faArrowUpRightFromSquare} />)</span>
3637
<a
37-
href="/img/labimotion/record-time.mp4"
38+
href={useBaseUrl("/img/labimotion/record-time.mp4")}
3839
target="_blank"
3940
rel="noopener noreferrer"
4041
style={{ display: "block" }}
4142
>
4243
<video width="100%" controls autoPlay loop muted>
43-
<source src="/img/labimotion/record-time.mp4" type="video/mp4" />
44+
<source src={useBaseUrl("/img/labimotion/record-time.mp4")} type="video/mp4" />
4445
Your browser does not support the video tag.
4546
</video>
4647
</a>

docs/repo/faq.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ sidebar_position: 11
5656

5757
#### Do you capture any metadata about hosted datasets in a standardized way? If so, please state which metadata formats are used.
5858

59-
- **Answer:** Metadata support is provided for information like analysis types and reaction names. The metadata can be selected via a dropdown menus (supports search) that provides the embedded ontobee ontologies CHEMINF and CHMO http://www.ontobee.org/. We use the metadata format of DataCite for DOI submissions.
59+
- **Answer:** Metadata support is provided for information like analysis types and reaction names. The metadata can be selected via a dropdown menus (supports search) that provides the embedded [ontobee](https://ontobee.org/) ontologies CHEMINF and CHMO. We use the metadata format of DataCite for DOI submissions.
6060

6161
### Community
6262

docs/repo/settings_preparation/index.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ sidebar_position: 1
55

66
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
77
import { faArrowUpRightFromSquare } from "@fortawesome/free-solid-svg-icons";
8+
import useBaseUrl from "@docusaurus/useBaseUrl";
89

910
This repository can be used directly without any preparations. Nevertheless, a few preparations help to organize the process efficiently.
1011

@@ -63,13 +64,13 @@ You can assign group lead(s) using the 'My Collaboration' feature. Once assigned
6364
>
6465
<span className="figCaption" style={{ textAlign: "left" }}>(Click to view in a new window{" "} <FontAwesomeIcon icon={faArrowUpRightFromSquare} />)</span>
6566
<a
66-
href="/img/repo/set_group_lead.mp4"
67+
href={useBaseUrl("/img/repo/set_group_lead.mp4")}
6768
target="_blank"
6869
rel="noopener noreferrer"
6970
style={{ display: "block" }}
7071
>
7172
<video width="100%" controls autoPlay loop muted>
72-
<source src="/img/repo/set_group_lead.mp4" type="video/mp4" />
73+
<source src={useBaseUrl("/img/repo/set_group_lead.mp4")} type="video/mp4" />
7374
Your browser does not support the video tag.
7475
</video>
7576
</a>

docs/services/chemconverter/faq.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ title: FAQ & Troubleshooting
33
sidebar_position: 9
44
---
55

6+
import useBaseUrl from "@docusaurus/useBaseUrl";
7+
68
:::info[Info]
79

810
This page is still being edited and reviewed.
@@ -19,7 +21,7 @@ If you need help with the ChemConverter, it's right here!
1921

2022
- You are trying to upload a binary file (not supported yet!)
2123
- There's no reader (yet) for your specific data type and the standard reader don't work either.
22-
- You are in the wrong menu, please press the right button. <br/> <img src="/img/converter/dontImport.svg" alt="Please do not click import, create instead" width="400" height="200" />
24+
- You are in the wrong menu, please press the right button. <br/> <img src={useBaseUrl("/img/converter/dontImport.svg")} alt="Please do not click import, create instead" width="400" height="200" />
2325

2426
#### I created a profile for my data file on the admin GUI but after uploading it to the ELN it will not be converted.
2527

0 commit comments

Comments
 (0)