Skip to content

Commit

Permalink
Merge branch 'main' into fil/href-assets
Browse files Browse the repository at this point in the history
  • Loading branch information
Fil authored Nov 11, 2024
2 parents a2a771f + 324c7eb commit 5014cd3
Show file tree
Hide file tree
Showing 879 changed files with 61,490 additions and 9,254 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ jobs:
key: data-${{ hashFiles('docs/data/*') }}-${{ steps.date.outputs.date }}
- run: yarn build
- run: yarn docs:build
- uses: cloudflare/pages-action@1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: framework
directory: docs/.observablehq/dist
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
- run: yarn docs:deploy
env:
OBSERVABLE_TOKEN: ${{ secrets.OBSERVABLE_API_TOKEN }}
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
/coverage/
/dist/
/docs/.observablehq/dist/
/docs/theme/*.md
/docs/themes.md
/test/build/
/test/output/**/*-changed.*
/test/output/build/**/*-changed/
Expand Down
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

[**Observable Framework**](https://observablehq.com/framework/) is a free, [open-source](./LICENSE), static site generator for data apps, dashboards, reports, and more. Framework combines JavaScript on the front-end for interactive graphics with any language on the back-end for data analysis. Framework features [data loaders](https://observablehq.com/framework/loaders) that precompute static snapshots of data at build time for dashboards that load instantly.

<a href="https://observablehq.observablehq.cloud/oss-analytics/@observablehq/framework">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://observablehq.observablehq.cloud/oss-analytics/@observablehq/framework/downloads-dark.svg">
<img alt="Daily downloads of Observable Framework" src="https://observablehq.observablehq.cloud/oss-analytics/@observablehq/framework/downloads.svg">
</picture>
</a>

<sub>Daily downloads of Observable Framework · [oss-analytics](https://observablehq.observablehq.cloud/oss-analytics/)</sub>

## Documentation 📚

https://observablehq.com/framework/
Expand All @@ -16,8 +25,8 @@ https://github.com/observablehq/framework/releases

## Getting help 🏠

Please [open a discussion](https://github.com/observablehq/framework/discussions) if you’d like help. We also recommend [searching issues](https://github.com/observablehq/framework/issues). You can also ask on the [Observable forum](https://talk.observablehq.com/) or [Observable community Slack](https://observablehq.com/slack/join).
Please [open a discussion](https://github.com/observablehq/framework/discussions) if you’d like help. We also recommend [searching issues](https://github.com/observablehq/framework/issues).

## Contributing 🙏

See [`CONTRIBUTING.md`](./CONTRIBUTING.md).
See [Contributing](https://observablehq.com/framework/contributing).
3 changes: 3 additions & 0 deletions docs/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"resolve": {
"extensions": [".js", ".jsx"]
},
"env": {
"browser": true
}
Expand Down
6 changes: 3 additions & 3 deletions docs/.observablehq/deploy.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"projectId": "497663d656fa5557",
"workspaceLogin": "observablehq",
"projectSlug": "cli"
"projectId": "b385d10b723e37b6",
"projectSlug": "framework",
"workspaceLogin": "observablehq"
}
Binary file added docs/assets/hotel-bookings-dark.webp
Binary file not shown.
Binary file added docs/assets/hotel-bookings.webp
Binary file not shown.
Binary file added docs/assets/us-dams-dark.webp
Binary file not shown.
Binary file added docs/assets/us-dams.webp
Binary file not shown.
14 changes: 14 additions & 0 deletions docs/chart.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import * as Plot from "npm:@observablehq/plot";
import {FileAttachment, resize} from "observablehq:stdlib";

export async function Chart() {
const gistemp = await FileAttachment("./lib/gistemp.csv").csv({typed: true});
return resize((width) =>
Plot.plot({
width,
y: {grid: true},
color: {scheme: "burd"},
marks: [Plot.dot(gistemp, {x: "Date", y: "Anomaly", stroke: "Anomaly"}), Plot.ruleY([0])]
})
);
}
8 changes: 8 additions & 0 deletions docs/components/Card.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export function Card({title, children} = {}) {
return (
<div className="card">
{title ? <h2>{title}</h2> : null}
{children}
</div>
);
}
123 changes: 109 additions & 14 deletions docs/config.md

Large diffs are not rendered by default.

Loading

0 comments on commit 5014cd3

Please sign in to comment.