Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 }}
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"
}
4 changes: 2 additions & 2 deletions docs/deploying.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ The contents of the deploy config file look like this:
```json run=false
{
"projectId": "0123456789abcdef",
"workspaceLogin": "acme",
"projectSlug": "hello-framework"
"projectSlug": "hello-framework",
"workspaceLogin": "acme"
}
```

Expand Down
5 changes: 1 addition & 4 deletions examples/observablehq.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@ export default {
sidebar: false,
...baseConfig,
title: "Observable Framework",
head:
process.env.CI &&
`<script type="module" async src="https://events.observablehq.com/client.js?pageLoad"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-9B88TP6PKQ"></script>
head: `<script async src="https://www.googletagmanager.com/gtag/js?id=G-9B88TP6PKQ"></script>
<script>window.dataLayer=window.dataLayer||[];\nfunction gtag(){dataLayer.push(arguments);}\ngtag('js',new Date());\ngtag('config','G-9B88TP6PKQ');</script>`,
header: `<style>

Expand Down
1 change: 0 additions & 1 deletion observablehq.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ export default {
<link rel="icon" type="image/png" href="/observable.png" sizes="32x32">${
process.env.CI
? `
<script type="module" async src="https://events.observablehq.com/client.js?pageLoad"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-9B88TP6PKQ"></script>
<script>window.dataLayer=window.dataLayer||[];\nfunction gtag(){dataLayer.push(arguments);}\ngtag('js',new Date());\ngtag('config','G-9B88TP6PKQ');</script>`
: ""
Expand Down