Repository navigation
Publish the free tier as company homes and question pages - #3
Merged
Merged
Conversation
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
|
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 configurationConfiguration used: defaults Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (12)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
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
marked this pull request as ready for review
September 24, 2026 13:07
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This implements
CONTENT-DESIGN.md: the free tier becomes readable pages here, laid out likeSchuture/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.mdandinterview-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>.mdstays where it is as the statistics page and gains a link to the home page. Existing links keep working.Rules the renderer enforces
content_from_payloaddrops, and counts, any body that/api/v1does not also list as free.data/paths.jsonrecords 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./questions/x,/study/y) are rewritten to the local page if it exists, and to the absolute site URL otherwise.CONTENT_EXPORT_SECRETstops, 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.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 scriptspasses: 151 tests, including 18 new ones intest_content.py.To switch it on
CONTENT_EXPORT_SECRETin Vercel, and set the same value as this repository's Actions secret.🤖 Generated with Claude Code
https://claude.ai/code/session_01YSnSdWBmgwyCFLKNcQiCKB