Skip to content

Commit

Permalink
Small fixes to new devicetree website (#114)
Browse files Browse the repository at this point in the history
* Correct capitalisation of Devicetree

Devicetree is the preferred form instead of DeviceTree or Device Tree.

Signed-off-by: Grant Likely <grant.likely@linaro.org>

* Remove 96Boards links

96Boards.ai is defunct, and we aren't really promoting 96Boards at the moment anyway. Drop the links.

Signed-off-by: Grant Likely <grant.likely@linaro.org>

* Fix formatting of releases

Makes use of dateConvertor() for the latest release to make the display
nicer. Also adds a space between the word "Release" and the version tag.

Signed-off-by: Grant Likely <grant.likely@linaro.org>

---------

Signed-off-by: Grant Likely <grant.likely@linaro.org>
  • Loading branch information
glikely authored Oct 21, 2023
1 parent c66102e commit 3d35d7c
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 17 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# DeviceTree Project Website
# Devicetree Project Website

This is the git repository for the DeviceTree project website.
This is the git repository for the Devicetree project website.

## 🚀 Project Structure

Expand Down
2 changes: 1 addition & 1 deletion src/components/head/BaseHead.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import "../../styles/global.scss";
const GA_ID = import.meta.env.GA_ID;
const {
title = "The DeviceTree Project",
title = "The Devicetree Project",
description = "A devicetree is a data structure for describing hardware.",
type = "website",
} = Astro.props;
Expand Down
10 changes: 5 additions & 5 deletions src/components/sections/Updates.astro
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ const data_releases = await fetchData();
data_releases ? (
<a href={data_releases[0].html_url} class="text-primary">
<div class="flex flex-row">
<span>DeviceTree Specification Release</span>
<span>{data_releases[0].tag_name}</span>
<span>Devicetree Specification Release</span>
<span> {data_releases[0].tag_name}</span>
</div>
</a>
) : (
<div>No data available</div>
)
}
<span class="text-black"> - Released {data_releases[0].created_at}</span>
<span class="text-black"> - Released {dateConvertor(data_releases[0].created_at)}</span>
<span
class="text-[#2cbe4e] p-[5px] border border-[#2cbe4e] text-xs align-middle relative ml-2"
>Latest Release</span
Expand All @@ -53,8 +53,8 @@ const data_releases = await fetchData();
>
<a href={item.html_url} class="text-primary">
<div>
<span>DeviceTree Specification Release</span>
<span>{item.tag_name}</span>
<span>Devicetree Specification Release</span>
<span> {item.tag_name}</span>
</div>
</a>
<span class="text-black mb-6">
Expand Down
4 changes: 1 addition & 3 deletions src/content/data/links.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@
url: https://www.linaro.org/
- label: Connect
url: https://www.linaro.org/connect/
- label: 96Boards
url: https://www.96boards.org/
- label: Projects
children:
- label: OP-TEE
url: https://www.trustedfirmware.org/projects/op-tee/
- label: DeviceTree.org
- label: Devicetree.org
url: https://www.devicetree.org/
- label: OpenAMP
url: https://www.openampproject.org/
6 changes: 3 additions & 3 deletions src/content/pages/contact.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Contact
description: >-
Please get in touch with us to talk more about DeviceTree and how you can get involved.
Please get in touch with us to talk more about Devicetree and how you can get involved.
slug: "/contact/"
layout: "../../layouts/Flow.astro"
hero:
Expand All @@ -15,13 +15,13 @@ flow:
style: text-center px-4 py-5 text-xl
buttons_content:
- title: contact@linaro.org
url: mailto:contact@linaro.org?subject=DeviceTree.org - /contact/
url: mailto:contact@linaro.org?subject=Devicetree.org - /contact/
style: bg-primary px-2 py-3 border border-b-primary rounded-md text-white mt-8 text-sm font-normal transition ease-in-out delay-150 hover:-translate-y-1 hover:scale-110 hover:bg-[#1a85a1] duration-300
- component: text
style: text-center
text_content:
text: |-
DeviceTree c/o Linaro
Devicetree c/o Linaro
Harston Mill
Royston Rd
Harston
Expand Down
2 changes: 1 addition & 1 deletion src/content/pages/homepage.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ layout: "../../layouts/Flow.astro"
slug: ""
hero:
inner_image: ../../assets/images/devicetree-icon-white.png
title: The DeviceTree Specification
title: The Devicetree Specification
background_image: ../../assets/images/background-image.jpg
description: >-
A devicetree is a data structure for describing hardware
Expand Down
2 changes: 1 addition & 1 deletion src/content/pages/latest.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: News & Blogs
slug: /latest/
description: >
Find all DeviceTree related news and blogs here.
Find all Devicetree related news and blogs here.
layout: "../../layouts/Flow.astro"
hero:
title: News & Blogs
Expand Down
2 changes: 1 addition & 1 deletion src/content/pages/releases.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ layout: ../../layouts/Flow.astro
title: Releases
slug: /releases/
js-package: releases
keywords: Releases, Device Tree, RoadMap
keywords: Releases, Devicetree, RoadMap
hero:
title: Releases
background_image: ../../assets/images/background-image.jpg
Expand Down

0 comments on commit 3d35d7c

Please sign in to comment.