-
-
Notifications
You must be signed in to change notification settings - Fork 634
Docs Revamp and Astro Upgrade v6 #1998
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
aggmoulik
wants to merge
9
commits into
openstatusHQ:main
Choose a base branch
from
aggmoulik:feature/revamp-docs
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
2f01273
Revamp Openstatus Docs
aggmoulik 58cc346
Updated Sitetitle and css
aggmoulik e83cc0f
Update package.json exact version
aggmoulik cb05525
Formatted code
aggmoulik fda0152
Update sidebarnav and padding
aggmoulik 8943dd2
Update navigation for socials
aggmoulik 4778eb5
Fixed a AI code review
aggmoulik 91d32c0
Updated format
aggmoulik 6e24902
Added wrangler cli setup for deployment
aggmoulik File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,6 +2,8 @@ | |
| dist/ | ||
| # generated types | ||
| .astro/ | ||
| # wrangler | ||
| .wrangler/ | ||
|
|
||
| # dependencies | ||
| node_modules/ | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,21 +1,38 @@ | ||||||
| import { fileURLToPath } from "node:url"; | ||||||
| // @ts-check | ||||||
| import sitemap from "@astrojs/sitemap"; | ||||||
| import starlight from "@astrojs/starlight"; | ||||||
| import tailwindcss from "@tailwindcss/vite"; | ||||||
| import { defineConfig, envField } from "astro/config"; | ||||||
| import starlightImageZoom from "starlight-image-zoom"; | ||||||
| import starlightLinksValidator from "starlight-links-validator"; | ||||||
| import starlightLlmsTxt from "starlight-llms-txt"; | ||||||
|
|
||||||
| import Icons from "unplugin-icons/vite"; | ||||||
|
|
||||||
| import config from "./src/config/config.json"; | ||||||
| import sidebar from "./src/config/sidebar.json"; | ||||||
| import social from "./src/config/social.json"; | ||||||
|
|
||||||
| const { site } = config; | ||||||
| const { title, logo, logo_darkmode } = site; | ||||||
|
|
||||||
| // https://astro.build/config | ||||||
| export default defineConfig({ | ||||||
| site: "https://docs.openstatus.dev", | ||||||
| vite: { | ||||||
| plugins: [Icons({ compiler: "astro" }), tailwindcss()], | ||||||
| plugins: /** @type {any} */ ([Icons({ compiler: "astro" }), tailwindcss()]), | ||||||
| ssr: { | ||||||
| noExternal: ["zod"], | ||||||
| }, | ||||||
| resolve: { | ||||||
| alias: { | ||||||
| "@": fileURLToPath(new URL("./src", import.meta.url)), | ||||||
| "~": fileURLToPath(new URL("./src", import.meta.url)), | ||||||
| }, | ||||||
| }, | ||||||
| }, | ||||||
| image: { | ||||||
| service: { entrypoint: "astro/assets/services/noop" }, | ||||||
| }, | ||||||
| env: { | ||||||
| schema: { | ||||||
|
|
@@ -28,229 +45,33 @@ export default defineConfig({ | |||||
| integrations: [ | ||||||
| sitemap(), | ||||||
| starlight({ | ||||||
| title: "openstatus docs", | ||||||
| title, | ||||||
| favicon: "/favicon.ico", | ||||||
| social: [ | ||||||
| { | ||||||
| icon: "github", | ||||||
| label: "GitHub", | ||||||
| href: "https://github.com/openstatusHQ/openstatus", | ||||||
| }, | ||||||
| { | ||||||
| icon: "discord", | ||||||
| label: "Discord", | ||||||
| href: "https://www.openstatus.dev/discord", | ||||||
| }, | ||||||
| { | ||||||
| icon: "blueSky", | ||||||
| label: "BlueSky", | ||||||
| href: "https://bsky.app/profile/openstatus.dev", | ||||||
| }, | ||||||
| ], | ||||||
| logo: { | ||||||
| light: logo, | ||||||
| dark: logo_darkmode, | ||||||
| alt: "OpenStatus Logo", | ||||||
| }, | ||||||
| // @ts-ignore | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P3: Use Prompt for AI agents
Suggested change
|
||||||
| social: social.main || [], | ||||||
| sidebar: sidebar.main || [], | ||||||
| customCss: ["./src/styles/global.css"], | ||||||
| components: { | ||||||
| SiteTitle: "./src/components/SiteTitle.astro", | ||||||
| Head: "./src/components/Head.astro", | ||||||
| Hero: "./src/components/Hero.astro", | ||||||
| Head: "./src/components/override-components/Head.astro", | ||||||
| Header: "./src/components/override-components/Header.astro", | ||||||
| Hero: "./src/components/override-components/Hero.astro", | ||||||
| PageFrame: "./src/components/override-components/PageFrame.astro", | ||||||
| PageSidebar: "./src/components/override-components/PageSidebar.astro", | ||||||
| TwoColumnContent: | ||||||
| "./src/components/override-components/TwoColumnContent.astro", | ||||||
| ContentPanel: "./src/components/override-components/ContentPanel.astro", | ||||||
| Pagination: "./src/components/override-components/Pagination.astro", | ||||||
| Sidebar: "./src/components/override-components/Sidebar.astro", | ||||||
| Footer: "./src/components/Footer.astro", | ||||||
| }, | ||||||
| editLink: { | ||||||
| baseUrl: "https://github.com/openstatusHQ/openstatus/app/docs", | ||||||
| }, | ||||||
| customCss: [ | ||||||
| // Path to your Tailwind base styles: | ||||||
| "./src/global.css", | ||||||
| "./src/custom.css", | ||||||
| "@fontsource-variable/inter", | ||||||
| ], | ||||||
| sidebar: [ | ||||||
| { | ||||||
| label: "Concepts", | ||||||
| items: [ | ||||||
| { | ||||||
| label: "About Uptime monitoring", | ||||||
| slug: "concept/uptime-monitoring", | ||||||
| }, | ||||||
| { | ||||||
| label: "Best Practices for Status Pages", | ||||||
| slug: "concept/best-practices-status-page", | ||||||
| }, | ||||||
| { | ||||||
| label: "Uptime Calculation and Values", | ||||||
| slug: "concept/uptime-calculation-and-values", | ||||||
| }, | ||||||
| { | ||||||
| label: "Uptime Monitoring as Code", | ||||||
| slug: "concept/uptime-monitoring-as-code", | ||||||
| }, | ||||||
| { | ||||||
| label: "Latency vs Response Time", | ||||||
| slug: "concept/latency-vs-response-time", | ||||||
| }, | ||||||
| ], | ||||||
| }, | ||||||
| { | ||||||
| label: "Tutorials", | ||||||
| items: [ | ||||||
| { | ||||||
| label: "How to create a monitor", | ||||||
| slug: "tutorial/how-to-create-monitor", | ||||||
| }, | ||||||
| { | ||||||
| label: "How to create a status page", | ||||||
| slug: "tutorial/how-to-create-status-page", | ||||||
| }, | ||||||
| { | ||||||
| label: "How to configure a status page", | ||||||
| slug: "tutorial/how-to-configure-status-page", | ||||||
| }, | ||||||
| { | ||||||
| label: "How to create a private location (beta)", | ||||||
| slug: "tutorial/how-to-create-private-location", | ||||||
| }, | ||||||
| { | ||||||
| label: "Get Started with OpenStatus CLI", | ||||||
| slug: "tutorial/get-started-with-openstatus-cli", | ||||||
| }, | ||||||
| { | ||||||
| label: "How to set up the Slack Agent", | ||||||
| slug: "tutorial/how-to-setup-slack-agent", | ||||||
| }, | ||||||
| { | ||||||
| label: "Manage Your Stack with Terraform and CLI", | ||||||
| slug: "tutorial/how-to-manage-openstatus-with-terraform-cli", | ||||||
| }, | ||||||
| { | ||||||
| label: "Import a Status Page from Another Provider", | ||||||
| slug: "tutorial/how-to-import-status-page", | ||||||
| }, | ||||||
| ], | ||||||
| }, | ||||||
|
|
||||||
| { | ||||||
| label: "Guides", | ||||||
| items: [ | ||||||
| { | ||||||
| label: "Monitor your MCP Server", | ||||||
| slug: "guides/how-to-monitor-mcp-server", | ||||||
| }, | ||||||
| { | ||||||
| label: "Run check in GitHub Actions", | ||||||
| slug: "guides/how-to-run-synthetic-test-github-action", | ||||||
| }, | ||||||
| { | ||||||
| label: "Export Metrics to your OTLP Endpoint", | ||||||
| slug: "guides/how-to-export-metrics-to-otlp-endpoint", | ||||||
| }, | ||||||
| { | ||||||
| label: "How to Add an SVG Status Badge to your GitHub README", | ||||||
| slug: "guides/how-to-add-svg-status-badge", | ||||||
| }, | ||||||
| { | ||||||
| label: "How to use React Status Widget", | ||||||
| slug: "guides/how-to-use-react-widget", | ||||||
| }, | ||||||
| { | ||||||
| label: "How to deploy probes on Cloudflare Containers ", | ||||||
| slug: "guides/how-to-deploy-probes-cloudflare-containers", | ||||||
| }, | ||||||
| { | ||||||
| label: "How to self-host openstatus", | ||||||
| slug: "guides/self-hosting-openstatus", | ||||||
| }, | ||||||
| { | ||||||
| label: "Self host Status Page only", | ||||||
| slug: "guides/self-host-status-page-only", | ||||||
| }, | ||||||
| { | ||||||
| label: "How to translate your status page", | ||||||
| slug: "guides/how-to-translate-status-page", | ||||||
| }, | ||||||
| ], | ||||||
| }, | ||||||
| { | ||||||
| label: "SDK", | ||||||
| items: [ | ||||||
| { | ||||||
| label: "Node SDK", | ||||||
| autogenerate: { directory: "sdk/nodejs" }, | ||||||
| collapsed: true, | ||||||
| }, | ||||||
| ], | ||||||
| }, | ||||||
| { | ||||||
| label: "Reference", | ||||||
| items: [ | ||||||
| { | ||||||
| label: "CLI Reference", | ||||||
| slug: "reference/cli-reference", | ||||||
| }, | ||||||
| { | ||||||
| label: "API Reference V1 - Deprecated", | ||||||
| link: "https://api.openstatus.dev/v1", | ||||||
| // badge: { text: 'External' }, | ||||||
| attrs: { | ||||||
| target: "_blank", | ||||||
| }, | ||||||
| }, | ||||||
| { | ||||||
| label: "API Reference V2", | ||||||
| link: "https://api.openstatus.dev/openapi", | ||||||
| // badge: { text: 'External' }, | ||||||
| attrs: { | ||||||
| target: "_blank", | ||||||
| }, | ||||||
| }, | ||||||
| { | ||||||
| label: "DNS Monitor", | ||||||
| slug: "reference/dns-monitor", | ||||||
| }, | ||||||
| { | ||||||
| label: "HTTP Monitor", | ||||||
| slug: "reference/http-monitor", | ||||||
| }, | ||||||
| { | ||||||
| label: "Incident", | ||||||
| slug: "reference/incident", | ||||||
| }, | ||||||
| { | ||||||
| label: "TCP Monitor", | ||||||
| slug: "reference/tcp-monitor", | ||||||
| }, | ||||||
| { | ||||||
| label: "Notification", | ||||||
| slug: "reference/notification", | ||||||
| }, | ||||||
| { | ||||||
| label: "Location", | ||||||
| slug: "reference/location", | ||||||
| }, | ||||||
| { | ||||||
| label: "Private location", | ||||||
| slug: "reference/private-location", | ||||||
| }, | ||||||
| { | ||||||
| label: "Status Page", | ||||||
| slug: "reference/status-page", | ||||||
| }, | ||||||
| { | ||||||
| label: "Page Components", | ||||||
| slug: "reference/page-components", | ||||||
| }, | ||||||
| { | ||||||
| label: "Status Report", | ||||||
| slug: "reference/status-report", | ||||||
| }, | ||||||
| { | ||||||
| label: "Subscriber", | ||||||
| slug: "reference/subscriber", | ||||||
| }, | ||||||
| { | ||||||
| label: "Terraform Provider", | ||||||
| slug: "reference/terraform", | ||||||
| }, | ||||||
| ], | ||||||
| }, | ||||||
| ], | ||||||
| plugins: [ | ||||||
| starlightLinksValidator({ | ||||||
| errorOnLocalLinks: false, | ||||||
|
|
||||||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.