add documentation site
This commit is contained in:
@@ -27,4 +27,4 @@ The recovered codebase implements primarily the **terminal CLI** surface, plus s
|
||||
|
||||
## Repository
|
||||
|
||||
Source code lives under `src/` in the GitHub repository. The published MkDocs site is built from `docs-site/` via GitHub Actions. After enabling Pages on the `gh-pages` branch, the URL is typically `https://<user>.github.io/<repo>/` (see the root `README.md`).
|
||||
Source code lives under `src/` on GitHub ([mehmoodosman/claude-code-source-code](https://github.com/mehmoodosman/claude-code-source-code)). This site is published at **[https://mehmoodosman.github.io/claude-code-source-code/](https://mehmoodosman.github.io/claude-code-source-code/)** via GitHub Actions from `docs-site/`.
|
||||
|
||||
@@ -27,7 +27,7 @@ Open `http://127.0.0.1:8000` to preview.
|
||||
On push to `main`, the workflow `.github/workflows/pages.yml` builds the site and pushes to the `gh-pages` branch (also runs when `README.md` or the workflow file changes).
|
||||
|
||||
1. In the GitHub repo: **Settings → Pages → Build and deployment → Branch `gh-pages` / `/ (root)`**.
|
||||
2. After the first deploy, set `site_url` in `docs-site/mkdocs.yml` to your real Pages URL (e.g. `https://<user>.github.io/<repo>/`) so canonical links and search work correctly. Also update `repo_url` if your fork uses a different owner or name.
|
||||
2. Set `site_url` in `mkdocs.yml` to your real Pages URL (this fork uses `https://mehmoodosman.github.io/claude-code-source-code/`) and keep `repo_url` aligned with your GitHub owner so “edit” links and sitemaps stay correct.
|
||||
|
||||
The deploy step sets **`enable_jekyll: false`** so GitHub Pages serves static files correctly (adds `.nojekyll`).
|
||||
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
# Set site_url after first GitHub Pages deploy, e.g. https://YOUR_USER.github.io/claude-code-source-code/
|
||||
site_url: https://mehmoodosman.github.io/claude-code-source-code/
|
||||
site_name: Claude Code internals (recovered source)
|
||||
site_description: Architecture and code reference for the reconstructed Claude Code CLI tree, cross-linked to official Anthropic docs.
|
||||
site_author: Repository maintainers
|
||||
|
||||
# Update for your fork:
|
||||
repo_url: https://github.com/marium/claude-code-source-code
|
||||
repo_url: https://github.com/mehmoodosman/claude-code-source-code
|
||||
repo_name: claude-code-source-code
|
||||
edit_uri: edit/main/docs-site/docs/
|
||||
|
||||
@@ -84,4 +83,4 @@ plugins:
|
||||
extra:
|
||||
social:
|
||||
- icon: fontawesome/brands/github
|
||||
link: https://github.com/marium/claude-code-source-code
|
||||
link: https://github.com/mehmoodosman/claude-code-source-code
|
||||
|
||||
Reference in New Issue
Block a user