Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

Commit

Permalink
Add v1 link to the header (#90)
Browse files Browse the repository at this point in the history
* Camel case component names

* Added v1 link to the header
  • Loading branch information
roll authored Jun 26, 2024
1 parent 7c44003 commit cf2c842
Show file tree
Hide file tree
Showing 10 changed files with 36 additions and 7 deletions.
5 changes: 4 additions & 1 deletion astro.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ export default defineConfig({
lastUpdated: true,
customCss: ["/assets/styles.css"],
tableOfContents: { minHeadingLevel: 2, maxHeadingLevel: 5 },
// The link validator is useful for debugging but it cleates a lot of false positives
components: {
SocialIcons: "./components/SocialIcons.astro",
},
plugins: [
starlightBlog({
authors: {
Expand All @@ -43,6 +45,7 @@ export default defineConfig({
},
},
}),
// The link validator is useful for debugging but it cleates a lot of false positives
// starlightLinksValidator(),
],
sidebar: [
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
22 changes: 22 additions & 0 deletions components/SocialIcons.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
import type { Props } from "@astrojs/starlight/props"
import Default from "@astrojs/starlight/components/SocialIcons.astro"
---

<a href="https://specs.frictionlessdata.io/"><strong>v1</strong></a>

<!-- Render the default social links. -->
<Default {...Astro.props}><slot /></Default>

<!-- Add styles to mimic the default links appearance. -->
<style>
a {
color: var(--sl-color-text-accent);
margin: -0.5em;
padding: 0.5em;
}

a:hover {
opacity: 0.66;
}
</style>
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,7 @@ This project is funded through [NGI0 Entrust](https://nlnet.nl/entrust), a fund

[<img src="https://nlnet.nl/logo/banner.png" alt="NLnet foundation logo" width="20%" />](https://nlnet.nl)
[<img src="https://nlnet.nl/image/logos/NGI0_tag.svg" alt="NGI Zero Logo" width="20%" />](https://nlnet.nl/entrust)

:::note
Originally published on: https://frictionlessdata.io/blog/2023/11/15/frictionless-specs-update/
:::
8 changes: 4 additions & 4 deletions content/docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ banner:
content: |
<p>
This is a live draft of the <strong>Data Package (v2) standard</strong>.
The previous version is <a href="https://specs.frictionlessdata.io/" target="_blank">Data Package (v1)</a>.
Please read the <a href="/blog/2023-11-15-v2-announcement">announcement</a>.
</p>
---

import About from "../../components/about.astro"
import Adoption from "../../components/adoption.astro"
import ClickableCard from "../../components/clickable-card.astro"
import About from "../../components/About.astro"
import Adoption from "../../components/Adoption.astro"
import ClickableCard from "../../components/ClickableCard.astro"
import { CardGrid, LinkCard, Card } from "@astrojs/starlight/components"

<h2>Standard</h2>
Expand Down
2 changes: 1 addition & 1 deletion content/docs/overview/adoption.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ sidebar:
---

import { adoption } from "../../../assets"
import ImageLinkCard from "../../../components/image-link-card.astro"
import ImageLinkCard from "../../../components/ImageLinkCard.astro"
import { LinkCard, CardGrid } from "@astrojs/starlight/components"

:::tip[Contribution Note]
Expand Down
2 changes: 1 addition & 1 deletion content/docs/overview/software.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ sidebar:
---

import { software } from "../../../assets"
import ImageLinkCard from "../../../components/image-link-card.astro"
import ImageLinkCard from "../../../components/ImageLinkCard.astro"
import { LinkCard, CardGrid } from "@astrojs/starlight/components"

:::tip[Contribution Note]
Expand Down

0 comments on commit cf2c842

Please sign in to comment.