Skip to content

Commit f2f26f6

Browse files
Merge branch 'cloudflare:production' into krishnprakash/cloudflare-docs
2 parents 41e9605 + c78c67c commit f2f26f6

File tree

423 files changed

+2767
-24703
lines changed

Some content is hidden

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

423 files changed

+2767
-24703
lines changed

.github/workflows/publish-production.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,19 @@ jobs:
4040
npx tsx bin/generate-index-md.ts
4141
cd distmd && zip -r markdown.zip .
4242
npx wrangler r2 object put vendored-markdown/markdown.zip --file=markdown.zip --remote
43+
rm markdown.zip
44+
- name: Upload vendored Markdown files to ZT DevDocs bucket
45+
env:
46+
AWS_ACCESS_KEY_ID: ${{ secrets.ZT_DEVDOCS_ACCESS_KEY_ID }}
47+
AWS_SECRET_ACCESS_KEY: ${{ secrets.ZT_DEVDOCS_SECRET_ACCESS_KEY }}
48+
run: |
49+
sudo -v ; curl https://rclone.org/install.sh | sudo bash
50+
rclone sync \
51+
--s3-env-auth \
52+
--s3-provider="Cloudflare" \
53+
--s3-endpoint="https://e76c849bd111ee7d3006b6625713991e.r2.cloudflarestorage.com" \
54+
distmd \
55+
:s3:/zt-dashboard-dev-docs
4356
- uses: actions/cache/save@v4
4457
if: always()
4558
with:

astro.config.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,14 +161,21 @@ export default defineConfig({
161161
headingLinks: false,
162162
},
163163
routeMiddleware: "./src/plugins/starlight/route-data.ts",
164+
disable404Route: true,
164165
}),
165166
liveCode({}),
166167
icon(),
167168
sitemap({
168169
filter(page) {
169-
return !page.startsWith(
170-
"https://developers.cloudflare.com/style-guide/",
171-
);
170+
if (page.includes("/style-guide/")) {
171+
return false;
172+
}
173+
174+
if (page.endsWith("/404/")) {
175+
return false;
176+
}
177+
178+
return true;
172179
},
173180
serialize(item) {
174181
item.lastmod = new Date().toISOString();

0 commit comments

Comments
 (0)