This is the git repository for the Devicetree project website.
The content of the website is located in the src/content
folder of the repo, spread across various folders, referred to as "collections".
/
βββ public/
βββ src/
β βββ pages/
β βββ index.astro
β βββcontent/
β βββdata/
β βββpages/
β βββrows/
β βββsections/
βββ package.json
The src/content/data
folder contains various lists of one-off items used in the site, namely the nav links, footer links and members. Any items added to these lists will be reflected in the website.
Pages can be edited via the relevant .md
files in the src/content/pages
folder. New pages containing the nav, header, footer and a body of rendered markdown content can be implemented by adding .md
files to this folder (as with the cookies, conduct and governance pages). If rendered markdown content is not sufficient, please contact it-support@linaro.org to discuss implementing a new page.
The Src /content /rows folder contains a container for content of all of the pages row.
The Src /content /sections folder containes various list of items in section part of each page.
All commands are run from the root of the project, from a terminal:
Command | Action |
---|---|
yarn install |
Installs dependencies |
yarn dev |
Starts local dev server at localhost:4321 |
yarn build |
Build your production site to ./dist/ |
yarn preview |
Preview your build locally, before deploying |
If you have any questions about updating or building this website, please contact Linaro IT Support at it-support@linaro.org.