Skip to content
daprPublic

About

Source for dapr.io, the website of Dapr, the durable execution runtime for workflows and AI agents. A CNCF graduated project.

Topics

Resources

Stars

5 stars

Watchers

7 watching

Forks

Repository files navigation

GitHub License GitHub issue custom search in repo Discord YouTube Channel Views X (formerly Twitter) Follow

Dapr is a CNCF graduated project that gives developers APIs for durable workflows, messaging, state and more, so they can build resilient distributed applications in any language.

This repository holds the source for the Dapr website. The website is a static site, built with Hugo and hosted on Netlify.


Structure:

Important folders and files to note:

/data/homepage.yml - Dynamic content such as text. This is the only file you need to touch when looking for minor modifications such as changing text, adding a pane in a section or replacing and image.

/styleguides/ - Latest brand assets and logos for Dapr

/static/images/ - All image file in the site

/config.toml - Hugo configuration and parameters including baseURL, headers and footers, Google Analytics etc.

/themes/bigspring/layouts/index.llms.txt - Template that generates llms.txt (do not edit a static copy); index.llmsfull.txt next to it generates llms-full.txt. The homepage's workflow and durable execution copy that these files pick up lives in /data/homepage.yml; the workflow page's copy lives in /content/workflow/_index.md

/netlify.toml - Configuration for deployment on Netlify

/themes/bigspring/ - The website theme

/themes/bigspring/layouts/index.html - The main HTML file which includes most of the structure of the website

/themes/bigspring/assets/scss/_variables.scss - Definitions of colors etc.

Development

Run locally

Make sure you have Hugo installed

Run:

hugo server --disableFastRender

Run the tests

Playwright tests in /tests check accessibility behavior: keyboard focus, the nav dropdown, the carousel and video pause controls, and an axe-core scan of every page. They run in GitHub Actions on every pull request. To run them locally you need Hugo, Node.js, and Google Chrome:

cd tests
npm install
npm test

The tests build the site themselves. If a change fixes accessibility issues, update the recorded baseline with npm run test:update-a11y-baseline and commit the changed a11y-baseline.*.json files.

Editing the content

All basic content editing can be done via changes to /data/homepage.yml. Note that the different sections in the file are ordered in the same way as in the website. Each section will usually have an enable flag which allows it to be removed without deleting it from the file.

One exception is the menus in the header and footer of the website which are defined in /config.toml

Image assets are stored at /static/images

Editing the theme

The website uses a modified Bigspring theme. You can find the documentation for the original theme here.

All theme files are found at /themes/bigspring. Most likely changes you will be looking to do are to the main index file /themes/bigspring/layouts/index.html this file uses content (like text and image file names) from /data/homepage.yml

Deployment

The live site is deployed by Netlify. Netlify rebuilds and publishes the site automatically when changes are merged into the master branch, using the build settings and Hugo version in /netlify.toml. Pull requests get a Netlify deploy preview.

Netlify Status


Contributing

This project welcomes contributions and suggestions. See the Dapr contributing guide for an overview of how to contribute to Dapr.

Dapr uses the Developer Certificate of Origin (DCO). Every commit must be signed off to certify that you wrote it or otherwise have the right to submit it. Add the sign-off with git commit -s, which appends a Signed-off-by line with your name and email to the commit message.

This project follows the Dapr Code of Conduct.

About

Source for dapr.io, the website of Dapr, the durable execution runtime for workflows and AI agents. A CNCF graduated project.

Topics

Resources

Stars

5 stars

Watchers

7 watching

Forks

Used by

Contributors

Languages