Skip to content

feat: implement public documentation site with full content, styling, and navigation - #131

Merged
adelrodriguez merged 1 commit into
mainfrom
08-01-feat_implement_public_documentation_site_with_full_content_styling_and_navigation
Aug 1, 2026
Merged

feat: implement public documentation site with full content, styling, and navigation#131
adelrodriguez merged 1 commit into
mainfrom
08-01-feat_implement_public_documentation_site_with_full_content_styling_and_navigation

Conversation

@adelrodriguez

Copy link
Copy Markdown
Collaborator

Launch public Init documentation site at docs.init.now

Turns apps/docs into the live Init documentation site while keeping it the inheritable Starlight example for scaffolded projects that select the docs workspace.

Content architecture

Root docs/ now owns all authored Markdown and MDX. The docs app loads content directly from there via Astro's glob loader, targeting top-level guides, docs/architecture/, and docs/es/. Maintainer-only paths (agents/, template/, adr/) are excluded from public routes and search by default. The old duplicate content tree inside apps/docs/src/content/docs/ is removed.

A remark plugin (markdown-links.ts) rewrites relative .md/.mdx links in source documents to their generated Starlight routes so cross-document links work correctly in both the rendered site and raw GitHub browsing.

New and updated pages

  • Adds docs/index.mdx and docs/es/index.mdx as splash-template landing pages with hero sections, a scaffold command, and a card grid linking to major sections.
  • Adds frontmatter (title, description, sidebar order) to all existing guide documents.
  • Expands the sidebar into four labeled groups: Start Here, Build, Architecture, and Elsewhere.

Site configuration and branding

  • Custom SiteTitle component renders an init / docs wordmark that links back to the marketing site, with the marketing URL resolved from PUBLIC_MARKETING_URL, the dev default, or the production fallback.
  • Custom LastUpdated component derives the last-modified date from git log when the route metadata does not supply one.
  • Replaces the placeholder favicon with a dark-background rounded-square mark; adds init-logo.svg for use as a standalone wordmark asset and social-preview.svg for Open Graph and Twitter card metadata.
  • Full light and dark theme token overrides in globals.css using a neutral monochrome palette, Geist Mono as the monospace font, and polished styles for the header, sidebar, code blocks, cards, asides, hero grid background, and pagination.
  • astro.config.ts wires up the site URL from PUBLIC_SITE_URL, sets output: "static", configures edit links pointing to the GitHub source, adds Open Graph and theme-color head tags, and adds a Vite alias to resolve Starlight components correctly.
  • A custom 404.astro page replaces Starlight's default with copy and navigation actions consistent with the site's voice.

Marketing site (apps/web)

  • Moves the Init wordmark from the hero section into a new persistent Header component with a "Read the docs" link pointing to docs.init.now.
  • Adds DOCS_URL to the web app's constants and a web_landing_header_docs i18n key in both English and Spanish catalogs.
  • Removes the now-unused docs_example_greeting i18n key from both catalogs.

@vercel

vercel Bot commented Aug 1, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
init Ready Ready Preview Aug 1, 2026 3:01pm
init-docs Ready Ready Preview Aug 1, 2026 3:01pm

Request Review

@adelrodriguez
adelrodriguez marked this pull request as ready for review August 1, 2026 13:07
@coderabbitai

coderabbitai Bot commented Aug 1, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: bf96587e-14f0-494c-b8be-8afa507d0218

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

adelrodriguez commented Aug 1, 2026

Copy link
Copy Markdown
Collaborator Author

@adelrodriguez
adelrodriguez force-pushed the 08-01-feat_implement_public_documentation_site_with_full_content_styling_and_navigation branch from f18b299 to 36d0825 Compare August 1, 2026 13:18
@adelrodriguez

Copy link
Copy Markdown
Collaborator Author

@codex review

@adelrodriguez
adelrodriguez changed the base branch from 08-01-fix_workflows_integration_with_api to graphite-base/131 August 1, 2026 13:21
@adelrodriguez
adelrodriguez force-pushed the 08-01-feat_implement_public_documentation_site_with_full_content_styling_and_navigation branch from 36d0825 to 55e77cd Compare August 1, 2026 13:21
@adelrodriguez
adelrodriguez changed the base branch from graphite-base/131 to 08-01-fix_workflows_integration_with_api August 1, 2026 13:21

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 36d08256be

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread docs/es/index.mdx Outdated
tagline: Una guía práctica para seleccionar, configurar y ampliar tu monorepo TypeScript.
actions:
- text: Comenzar
link: /es/getting-started/

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Point Spanish calls to routes that exist

When a reader opens the Spanish homepage, this primary action—and the four card links below it—targets /es/... pages, but the loader has only docs/es/index.mdx; no Spanish guide or architecture entries exist, so every path lands on the custom 404 instead of the available English fallback. Link these actions to the existing English routes or add the corresponding Spanish documents.

Useful? React with 👍 / 👎.

Comment thread apps/docs/astro.config.ts
description: DOCS_DESCRIPTION,
disable404Route: true,
editLink: {
baseUrl: `${GITHUB_URL}/edit/main/apps/docs/`,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Base edit links on the root documentation directory

For every page loaded from root docs/, Starlight appends the content entry path to this base, producing GitHub edit URLs such as apps/docs/getting-started.md, which do not exist. Since the commit moved authored content out of apps/docs, the base should end in /docs/ so the site’s Edit page links open the actual source files.

Useful? React with 👍 / 👎.

Base automatically changed from 08-01-fix_workflows_integration_with_api to main August 1, 2026 13:32
@adelrodriguez
adelrodriguez force-pushed the 08-01-feat_implement_public_documentation_site_with_full_content_styling_and_navigation branch from 55e77cd to cc47394 Compare August 1, 2026 13:33
@adelrodriguez
adelrodriguez force-pushed the 08-01-feat_implement_public_documentation_site_with_full_content_styling_and_navigation branch from cc47394 to c382b1f Compare August 1, 2026 13:42
@adelrodriguez

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c382b1f558

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread apps/docs/src/pages/404.astro Outdated
</p>
<div class="actions">
<a class="primary" href="/">Documentation overview</a>
<a href="https://init.now">Return to init.now</a>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Honor the configured marketing URL in every return link

When a scaffold owner sets PUBLIC_MARKETING_URL for their deployed site, only the header wordmark uses it; this 404 action and the “Elsewhere” sidebar entry in astro.config.ts remain hardcoded to https://init.now. Readers therefore leave the scaffolded project for the upstream Init site from those navigation paths, so both links should derive from the configured marketing URL or its shared fallback.

Useful? React with 👍 / 👎.

@adelrodriguez
adelrodriguez force-pushed the 08-01-feat_implement_public_documentation_site_with_full_content_styling_and_navigation branch from c382b1f to 7cb12c6 Compare August 1, 2026 14:35
@adelrodriguez
adelrodriguez force-pushed the 08-01-feat_implement_public_documentation_site_with_full_content_styling_and_navigation branch from 7cb12c6 to 50dd2da Compare August 1, 2026 14:51
@adelrodriguez
adelrodriguez force-pushed the 08-01-feat_implement_public_documentation_site_with_full_content_styling_and_navigation branch from 50dd2da to 5227ce9 Compare August 1, 2026 15:00
@adelrodriguez
adelrodriguez merged commit f974485 into main Aug 1, 2026
10 checks passed
@adelrodriguez
adelrodriguez deleted the 08-01-feat_implement_public_documentation_site_with_full_content_styling_and_navigation branch August 1, 2026 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant