Skip to content

Commit b719c97

Browse files
authored
Fix FAQ links (#30)
* Fix internal/external links in FAQ * Handle cmd+ctrl click
1 parent b1c6028 commit b719c97

20 files changed

Lines changed: 2104 additions & 1747 deletions

pnpm-lock.yaml

Lines changed: 2031 additions & 1700 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lib/components/FAQ.svelte

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@
1313
isOpen = !isOpen
1414
}
1515
16+
function handleClick(event: MouseEvent) {
17+
// If ctrl/cmd key is pressed, don't toggle, open the link in new tab
18+
if (event.ctrlKey || event.metaKey) {
19+
return
20+
}
21+
toggleOpen()
22+
}
23+
1624
function makeId(question: string) {
1725
return question
1826
.toLowerCase()
@@ -31,7 +39,7 @@
3139

3240
<div
3341
class="faq"
34-
on:click={toggleOpen}
42+
on:click={handleClick}
3543
on:keydown={(e) => e.key === "Enter" && toggleOpen()}
3644
aria-expanded={isOpen}
3745
tabindex="0"
@@ -42,7 +50,10 @@
4250
<a
4351
href={`#${id}`}
4452
on:click={(e) => {
45-
e.preventDefault()
53+
// for opening in new tab
54+
if (!e.ctrlKey && !e.metaKey) {
55+
e.preventDefault()
56+
}
4657
}}
4758
>
4859
<div class="link-icon">

src/lib/utils.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
export function isInternalLink(url: string): boolean {
2-
if (url.startsWith("http://") || url.startsWith("https://")) {
3-
return false
4-
} else {
5-
return true
6-
}
2+
const docsAbsoluteUrl = url.startsWith("https://docs.ioxio.dev/")
3+
const relativeUrl = url.startsWith("/")
4+
return docsAbsoluteUrl || relativeUrl
75
}

src/routes/faq/qa/data/003-what-kind-of-data-definitions-are-availa.svelte

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<script lang="ts">
22
import FAQ from "$lib/components/FAQ.svelte"
3+
import A from "$lib/components/A.svelte"
34
</script>
45

56
<FAQ question={"What kind of data definitions are available?"}>
@@ -11,7 +12,7 @@
1112
</p>
1213
<p>
1314
If you have an idea what kind of data you would like to share, you can always suggest a data
14-
product to us either on our <a href="https://slack.ioxio.com">community Slack</a>, or directly
15-
via <a href="https://github.com/ioxio-dataspace/ioxio-io-definitions/">GitHub.</a>
15+
product to us either on our <A href="https://slack.ioxio.com">community Slack</A>, or directly
16+
via <A href="https://github.com/ioxio-dataspace/ioxio-io-definitions/">GitHub.</A>
1617
</p>
1718
</FAQ>

src/routes/faq/qa/ioxioio/001-what-is-ioxioio-data-sharing-service.svelte

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
<script lang="ts">
22
import FAQ from "$lib/components/FAQ.svelte"
3+
import A from "$lib/components/A.svelte"
34
</script>
45

56
<FAQ question={"What is IOXIO.io data sharing service?"}>
67
<p>
7-
Our data sharing service <a href="http://ioxio.io/">IOXIO.io</a> is meant for anyone who wants
8-
to make their data available, or consume data from multiple sources. Read more about it on our
9-
<a href="https://docs.ioxio.dev/dataspace/">Dataspace page</a>.
8+
Our data sharing service <A href="http://ioxio.io/">IOXIO.io</A> is meant for anyone who wants to
9+
make their data available, or consume data from multiple sources. Read more about it on our
10+
<A href="https://docs.ioxio.dev/dataspace/">Dataspace page</A>.
1011
</p>
1112
<p>
1213
We help you get your data moving and remove the overhead and mess of having multiple different
Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
<script lang="ts">
22
import FAQ from "$lib/components/FAQ.svelte"
3+
import A from "$lib/components/A.svelte"
34
</script>
45

56
<FAQ question={"What are the benefits of IOXIO.io data sharing service?"}>
67
<p>
7-
On <a href="http://ioxio.io/">IOXIO.io</a> your company can collaborate with all your data
8-
sharing partners. The platform allows you to define what data you want to share, implement data
9-
sources, manage access to your data, and consume data from different parties. You keep ownership
10-
of your own data, while we ensure the data is transferred securely in a harmonized format
11-
between the parties. With one integration to <a href="http://ioxio.io/">IOXIO.io</a>, you can
12-
share your data with anyone and control access to your data.
8+
On <A href="http://ioxio.io/">IOXIO.io</A> your company can collaborate with all your data sharing
9+
partners. The platform allows you to define what data you want to share, implement data sources,
10+
manage access to your data, and consume data from different parties. You keep ownership of your own
11+
data, while we ensure the data is transferred securely in a harmonized format between the parties.
12+
With one integration to <A href="http://ioxio.io/">IOXIO.io</A>, you can share your data with
13+
anyone and control access to your data.
1314
</p>
1415
</FAQ>

src/routes/faq/qa/ioxioio/003-whats-the-difference-between-a-data-lake.svelte

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
<script lang="ts">
22
import FAQ from "$lib/components/FAQ.svelte"
3+
import A from "$lib/components/A.svelte"
34
</script>
45

5-
<FAQ question={"Whats the difference between a data lake or a data warehouse and a dataspace?"}>
6+
<FAQ question={"What's the difference between a data lake or a data warehouse and a dataspace?"}>
67
<p>
7-
Unlike data lakes or data warehouses, which store data in a centralized repository, <a
8-
href="http://ioxio.io/">IOXIO.io</a
8+
Unlike data lakes or data warehouses, which store data in a centralized repository, <A
9+
href="http://ioxio.io/">IOXIO.io</A
910
> data sharing service provides a federated approach where data remains with its original owner and
1011
is transferred only on demand based on predefined rules and agreements. This ensures greater data
1112
control, privacy, and compliance with regulations like GDPR.
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
<script lang="ts">
22
import FAQ from "$lib/components/FAQ.svelte"
3+
import A from "$lib/components/A.svelte"
34
</script>
45

56
<FAQ question={"What is the process for onboarding data providers and developers onto IOXIO.io?"}>
67
<p>
7-
Our process is very simple! Once you have an API that follows one of the data products
8+
Our process is very simple! Once you have an API that follows one of the data product's
89
definitions that the Dataspace offers, you only need to register an account, create or join a
910
group, and connect your API to the Dataspace.
1011
</p>
1112
<p>
12-
To get started you can check out our <a href="https://docs.ioxio.dev/get-started"
13-
>getting started page</a
13+
To get started you can check out our <A href="https://docs.ioxio.dev/get-started"
14+
>getting started page</A
1415
>.
1516
</p>
1617
</FAQ>

src/routes/faq/qa/ioxioio/007-what-level-of-technical-expertise-is-req.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<script lang="ts">
22
import FAQ from "$lib/components/FAQ.svelte"
3+
import A from "$lib/components/A.svelte"
34
</script>
45

56
<FAQ question={"What level of technical expertise is required to use IOXIO.io?"}>
@@ -10,7 +11,7 @@
1011
e.g. an “Integration Platform as a service” (IPaaS).
1112
</p>
1213
<p>
13-
<a href="http://IOXIO.io">IOXIO.io</a> can then handle managing access, tracking errors and communicating
14+
<A href="http://IOXIO.io">IOXIO.io</A> can then handle managing access, tracking errors and communicating
1415
the expected data structure to people you want share data with. After the initial setup of the API
1516
basically anyone who can use a web browser can maintain the integration, access control and your
1617
group.
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
<script lang="ts">
22
import FAQ from "$lib/components/FAQ.svelte"
3+
import A from "$lib/components/A.svelte"
34
</script>
45

56
<FAQ question={"What kind of support is available for companies using IOXIO.io?"}>
67
<p>
7-
We have our <a href="https://slack.ioxio.dev">open community Slack</a> where you can come chat
8-
with us and ask help from our core developers, or use our support email at
9-
<a href="mailto:support@ioxio.com">support@ioxio.com</a>. We also offer consultation services to
8+
We have our <A href="https://slack.ioxio.dev">open community Slack</A> where you can come chat with
9+
us and ask help from our core developers, or use our support email at
10+
<A href="mailto:support@ioxio.com">support@ioxio.com</A>. We also offer consultation services to
1011
help companies tackle different kinds of data sharing problems, so if you need help defining
1112
your data sharing cases, data structure or anything else data related, or in just getting on top
1213
of your general data sharing capabilities, get in touch via email at
13-
<a href="mailto:sales@ioxio.com">sales@ioxio.com</a>.
14+
<A href="mailto:sales@ioxio.com">sales@ioxio.com</A>.
1415
</p>
1516
</FAQ>

0 commit comments

Comments
 (0)