Skip to content

Commit 7c2bc9b

Browse files
committed
merge with main
2 parents 8dce9fb + f769e3d commit 7c2bc9b

File tree

343 files changed

+15196
-6053
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

343 files changed

+15196
-6053
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
name: Deploy
1+
name: Lint
22
on:
33
push:
44
branches: main
55
pull_request:
66
branches: main
77

88
jobs:
9-
deploy:
10-
name: Deploy
9+
lint:
10+
name: lint and link check
1111
runs-on: ubuntu-22.04-xl
1212
permissions:
1313
id-token: write # Needed for auth with Deno Deploy
@@ -22,6 +22,9 @@ jobs:
2222
with:
2323
cache: true
2424

25+
- run: deno fmt --check
26+
- run: deno task test
27+
2528
- name: "Reference: install"
2629
working-directory: "reference_gen"
2730
run: deno install
@@ -41,28 +44,10 @@ jobs:
4144
ORAMA_PRIVATE_API_KEY: ${{ secrets.ORAMA_PRIVATE_API_KEY }}
4245
run: deno task build
4346

44-
- name: Generate and upload search index
45-
env:
46-
ORAMA_PROJECT_ID: ${{ vars.ORAMA_PROJECT_ID }}
47-
ORAMA_DATASOURCE_ID: ${{ vars.ORAMA_DATASOURCE_ID }}
48-
ORAMA_PRIVATE_API_KEY: ${{ secrets.ORAMA_PRIVATE_API_KEY }}
49-
run: |
50-
echo "Generating search index..."
51-
deno task generate:search
52-
echo "Uploading search index to Orama Cloud..."
53-
deno task search:upload
54-
5547
- name: Run server
5648
run: deno run --allow-read=. --allow-net --allow-env --lock=deno.lock server.ts &
5749

5850
- name: Link checker
5951
env:
6052
DOCS_ROOT: "http://localhost:8000"
6153
run: deno run --no-lock --allow-net --allow-env .github/workflows/better_link_checker.ts
62-
63-
- name: Upload to Deno Deploy
64-
uses: denoland/deployctl@v1
65-
with:
66-
project: "deno-docs"
67-
entrypoint: "server.ts"
68-
root: "."

.github/workflows/update_versions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ cliCommandsReferenceFile.writeJsonPrettySync(
3232
JSON.parse(new TextDecoder().decode(jsonReference.outputSync().stdout)),
3333
);
3434

35-
await $`deno task update_lint_rules`;
35+
await $`deno task lint:update`;
3636

3737
if (Deno.args.includes("--create-pr")) {
3838
await tryCreatePr();

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,10 @@ number of versions they need to think about), improve search indexing, and help
174174
us maintain the docs by keeping our build times faster.
175175

176176
In general, we should only version the documentation **when we want to
177-
concurrently maintain several versions of the docs**, like for major/LTS
178-
versions. For example - the [Node.js docs](https://nodejs.org/en/docs) are only
179-
versioned for major releases, like `20.x` and `19.x`. We will adopt this pattern
180-
as well, and won't have versioned docs for patch or feature releases.
177+
concurrently maintain several versions of the docs**, like for major versions.
178+
For example - the [Node.js docs](https://nodejs.org/en/docs) are only versioned
179+
for major releases, like `20.x` and `19.x`. We will adopt this pattern as well,
180+
and won't have versioned docs for patch or feature releases.
181181

182182
For additive changes, it should usually be sufficient to indicate which version
183183
a feature or API was released in. For example - in the Node 20 docs, the

_components/Admonition.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
type AdmonitionType =
22
| "note"
3+
| "info"
4+
| "tip"
35
| "caution"
4-
| "tip";
6+
| "warning";
57

68
export default function Admonition(
79
props: { type: AdmonitionType; children: any },

_components/Breadcrumbs.tsx

Lines changed: 0 additions & 145 deletions
This file was deleted.

_components/EditThisPage.tsx

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
export default function EditThisPage({ file }: { file: string | undefined }) {
2+
if (!file) {
3+
return null;
4+
}
5+
6+
const githubPath = "https://github.com/denoland/docs/edit/main" + file;
7+
8+
return (
9+
<a
10+
class="btn"
11+
target="_blank"
12+
href={githubPath}
13+
>
14+
Edit this page
15+
16+
<svg
17+
width="98"
18+
height="96"
19+
xmlns="http://www.w3.org/2000/svg"
20+
aria-hidden="true"
21+
focusable="false"
22+
fill="currentColor"
23+
style="display:inline-block;user-select:none;vertical-align:text-bottom;"
24+
viewBox="0 0 98 96"
25+
>
26+
<path
27+
fill-rule="evenodd"
28+
clip-rule="evenodd"
29+
d="M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z"
30+
fill="currentColor"
31+
/>
32+
</svg>
33+
</a>
34+
);
35+
}

_components/Feedback.tsx

Lines changed: 4 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
import EditThisPage from "./EditThisPage.tsx";
2+
13
export default function Feedback({ file }: { file: string | undefined }) {
24
if (!file) {
35
return <></>;
46
} else {
5-
const githubPath = "https://github.com/denoland/docs/edit/main" + file;
67
return (
78
<section
89
id="feedback-section"
@@ -68,31 +69,7 @@ export default function Feedback({ file }: { file: string | undefined }) {
6869
</path>
6970
</svg>
7071
</label>
71-
<a
72-
class="btn"
73-
target="_blank"
74-
href={githubPath}
75-
>
76-
Edit this page
77-
78-
<svg
79-
width="98"
80-
height="96"
81-
xmlns="http://www.w3.org/2000/svg"
82-
aria-hidden="true"
83-
focusable="false"
84-
fill="currentColor"
85-
style="display:inline-block;user-select:none;vertical-align:text-bottom;"
86-
viewBox="0 0 98 96"
87-
>
88-
<path
89-
fill-rule="evenodd"
90-
clip-rule="evenodd"
91-
d="M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z"
92-
fill="currentColor"
93-
/>
94-
</svg>
95-
</a>
72+
{!file.includes("[") && <EditThisPage file={file} />}
9673
</div>
9774
<div
9875
id="feedback-more"
@@ -140,7 +117,7 @@ export default function Feedback({ file }: { file: string | undefined }) {
140117
rel=""
141118
class="mt-4 !underline underline-offset-2 text-xs block"
142119
target="_blank"
143-
href="/deploy/manual/privacy-policy"
120+
href="/deploy/privacy_policy"
144121
>
145122
Privacy policy
146123
</a>

_components/Footer.tsx

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,12 @@ const data = [
6767
title: "Services Docs",
6868
items: [
6969
{
70-
label: "Deno Deploy <sup>EA</sup>",
71-
to: "/deploy/early-access/",
70+
label: "Deno Deploy ",
71+
to: "/deploy/",
7272
},
7373
{
7474
label: "Deno Deploy Classic",
75-
to: "/deploy/manual/",
75+
to: "/deploy/classic/",
7676
},
7777
{
7878
label: "Deno Subhosting",
@@ -145,17 +145,13 @@ const data = [
145145
label: "Blog",
146146
href: "https://deno.com/blog",
147147
},
148-
{
149-
label: "Careers",
150-
href: "https://deno.com/jobs",
151-
},
152148
{
153149
label: "Merch",
154150
href: "https://merch.deno.com/",
155151
},
156152
{
157153
label: "Privacy Policy",
158-
href: "/deploy/manual/privacy-policy",
154+
href: "/deploy/privacy_policy",
159155
},
160156
],
161157
},

_components/Header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default function (
1111
const hrefIsInCurrentSection = (href: string, currentSection: string) => {
1212
return href.includes(currentSection) ||
1313
href === "/services/" &&
14-
["deploy", "subhosting", "services"].includes(
14+
["deploy", "subhosting", "services", "sandboxes"].includes(
1515
currentSection,
1616
);
1717
};

0 commit comments

Comments
 (0)