Skip to content

Publish the free tier as company homes and question pages - #3

Merged
kevin-2023-code merged 2 commits into
mainfrom
claude/epic-wozniak-8hua9y
Sep 24, 2026
Merged

kevin-2023-code merged 2 commits into
mainfrom
claude/epic-wozniak-8hua9y

Conversation

@kevin-2023-code

@kevin-2023-code kevin-2023-code commented Sep 24, 2026 •

Copy link
Copy Markdown
Owner

This implements CONTENT-DESIGN.md: the free tier becomes readable pages here, laid out like Schuture/OpenAI-Interview-Notes, for every company. The site half is the new export route in kevin-2023-code/trueinterview#1495.

What it renders

  • companies/<key>/README.md: a home page for each of the 99 companies. It covers how the company interviews (the opening of its interview-process guide, then links to the per-role guides), its free questions and its other guides.
  • companies/<key>/interview-process.md and interview-process-<role>.md: the process guides in full.
  • companies/<key>/guides/<name>.md: every other Study guide filed under that company. Fragments under 600 characters get no page of their own.
  • questions/<format>/<name>/README.md: one page per free question, with a meta table, the statement, collapsed hints and a "Solve it" link. The solution is not published; the page links to it on the site.
  • questions/README.md: an index of every free question.
  • companies/<key>.md stays where it is as the statistics page and gains a link to the home page. Existing links keep working.

Rules the renderer enforces

  • Two checks on free status. The site exports only free rows. content_from_payload drops, and counts, any body that /api/v1 does not also list as free.
  • Stable paths. data/paths.json records the folder each question or guide gets the first time it is published, so a later title change never moves a link. UUID slugs are replaced by names made from the title.
  • Link rewriting. Site-relative links in a body (/questions/x, /study/y) are rewritten to the local page if it exists, and to the absolute site URL otherwise.
  • Guards against mass deletion. A run without CONTENT_EXPORT_SECRET stops, rather than delete question pages that are already published. So does a run that would remove more than 20% of them. A failed export read stops the sync.
  • Without the secret, the company home pages still render and link to the site. This is the state right after merge.

License

The text is under CC BY 4.0 (LICENSE-CONTENT.md), chosen for reach: anyone can repost it with credit and a link back. The scripts stay MIT.

Checks

  • python3 -m unittest discover scripts passes: 151 tests, including 18 new ones in test_content.py.
  • The CI verify path (fixture render, then a no-op re-render) was run locally and is clean.
  • A real-data preview rendered OpenAI's pages from production bodies.

To switch it on

  1. Merge the site PR and deploy it.
  2. Set CONTENT_EXPORT_SECRET in Vercel, and set the same value as this repository's Actions secret.
  3. Run the Sync workflow once by hand.

🤖 Generated with Claude Code

https://claude.ai/code/session_01YSnSdWBmgwyCFLKNcQiCKB

Proposal only. Company folders with a home page and interview-process page,
one page per free question with hints and reference solution, Study guides
as pages, fed by a secret-guarded export on the site rather than the public
API. Lists the four decisions needed before any body is published.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YSnSdWBmgwyCFLKNcQiCKB
@coderabbitai

coderabbitai Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Team

Run ID: 466d1498-ec2d-4360-8f0f-9eab8c997ea4

📥 Commits

Reviewing files that changed from the base of the PR and between cd38601 and c658507.

📒 Files selected for processing (12)
  • .github/workflows/sync.yml
  • .github/workflows/verify.yml
  • CONTENT-DESIGN.md
  • DESIGN.md
  • LICENSE-CONTENT.md
  • README.md
  • scripts/build.py
  • scripts/catalog.py
  • scripts/content.py
  • scripts/render.py
  • scripts/sync.py
  • scripts/test_content.py
 ________________________
< EV: Electric Verifier. >
 ------------------------
  \
   \   \
        \ /\
        ( )
      .( o ).
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

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

Implements CONTENT-DESIGN.md. Every company gets companies/<key>/README.md:
how it interviews (the opening of its interview-process guide), its free
questions and its guides. Each free question gets
questions/<format>/<name>/README.md with the statement and hints; the
solution stays on the site behind a link. Interview-process guides and
other Study guides are published under their company folder.

Bodies come from the site's /api/cron/content-export when the
CONTENT_EXPORT_SECRET Actions secret is set, and are checked again against
the public metadata. Without the secret the homes still render, linking to
the site. Folder names are recorded in data/paths.json so a published link
never moves. Site-relative links in bodies are rewritten to the local page
or to the absolute site URL. The sync refuses to delete published question
pages when the secret is missing, or more than 20% of them at once.

Text is licensed CC BY 4.0 (LICENSE-CONTENT.md); scripts stay MIT.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YSnSdWBmgwyCFLKNcQiCKB
@kevin-2023-code kevin-2023-code changed the title Design: publish the free tier as per-company content pages Publish the free tier as company homes and question pages Sep 24, 2026
@kevin-2023-code
kevin-2023-code marked this pull request as ready for review September 24, 2026 13:07
@kevin-2023-code
kevin-2023-code merged commit 6fa8c25 into main Sep 24, 2026
2 checks passed
@kevin-2023-code
kevin-2023-code deleted the claude/epic-wozniak-8hua9y branch November 18, 2026 21:38
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.

2 participants