Repository navigation
Add a documentation site - #41
Merged
Merged
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
The sandbox hides required executable or checkout paths under /tmp, breaking screenshot capture, and the README’s new reference links lack definitions and render as literal Markdown.
2 open issues
What changed in this PR
Adds a VitePress documentation site for Simics Target Debug, moving the user guide out of the README and adding automated publishing and screenshot generation.
Changes:
- Organizes setup, debugging, configuration, and reference documentation into dedicated pages.
- Adds GitHub Pages deployment and local documentation commands.
- Adds sandboxed VS Code screenshot capture using a simulated TCF target.
| File | Description |
|---|---|
scripts/docs-screenshots/workspace/src/server.c |
Example source displayed in screenshots. |
scripts/docs-screenshots/workspace/.vscode/launch.json |
Example debug configurations for capture. |
scripts/docs-screenshots/vscode.mjs |
Launches VS Code with a controlled profile. |
scripts/docs-screenshots/run.sh |
Runs sandboxed capture and repeatability checks. |
scripts/docs-screenshots/capture.mjs |
Captures, annotates, and compares screenshots. |
scripts/docs-screenshots/agent.mjs |
Supplies simulated target data for screenshots. |
README.md |
Replaces the embedded guide with a documentation overview. |
package.json |
Adds documentation commands and tooling dependencies. |
docs/reference/tcf-services.md |
Maps debugger features to TCF services. |
docs/reference/limitations.md |
Lists supported-feature limitations. |
docs/index.md |
Adds the documentation landing page. |
docs/getting-started.md |
Explains installation and attaching to a target. |
docs/debugging/variables.md |
Documents variables, registers, and expressions. |
docs/debugging/target-memory.md |
Explains memory inspection, editing, and search. |
docs/debugging/stepping.md |
Describes source and instruction stepping. |
docs/debugging/snapshots.md |
Explains snapshot management. |
docs/debugging/simics-console.md |
Documents console behavior and controls. |
docs/debugging/disassembly.md |
Explains disassembly views and function headers. |
docs/debugging/call-stack.md |
Describes context grouping and stack frames. |
docs/debugging/breakpoints.md |
Documents breakpoint types and context scoping. |
docs/configuration/symbol-files.md |
Explains symbol loading and relocation. |
docs/configuration/settings.md |
Lists settings and trace configuration. |
docs/configuration/path-mapping.md |
Explains source-path mapping and rule management. |
docs/configuration/launch-configurations.md |
Documents launch attributes and the configuration editor. |
docs/configuration/contexts.md |
Explains context selection and queries. |
docs/.vitepress/config.mts |
Configures navigation, search, and deployment paths. |
AGENTS.md |
Updates documentation maintenance guidance. |
.prettierignore |
Excludes generated documentation and scratch files. |
.gitignore |
Ignores documentation output and scratch files. |
.github/workflows/docs.yml |
Builds and deploys the site to GitHub Pages. |
.github/skills/docs-screenshots/SKILL.md |
Documents screenshot generation and validation. |
Review effort: Balanced
emanuelen5
enabled auto-merge (rebase)
November 27, 2026 16:30
aragners
reviewed
Nov 30, 2026
aragners
left a comment
Contributor
There was a problem hiding this comment.
Read through the documentation briefly and found one limitation that is out-dated. See #43 which updates AGENTS.md about this limitation. Let's apply that PR first and then update this from the new docu.
Otherwise looks very nice.
The README is a short user guide. It lists the features, but has no room to say how to use each one, as it is also the extension's Marketplace page. A site with one page per feature has room for that and can be searched. VitePress builds the site from Markdown in docs/ with the Node tools we already use. "npm run docs:develop" serves it and reloads pages when they are edited. VitePress is pinned to a 2.0 pre-release. The stable 1.6.4 depends on Vite 5, which has open npm audit findings with no fix. Signed-off-by: Erasmus Cedernaes <erasmus.cedernaes@intel.com>
The documentation site should follow main without manual steps, so build and deploy it on each commit to main. The base path comes from the Pages settings instead of being fixed in the config. That keeps local builds at "/" and still works if the site gets a custom domain. GitHub Pages must be enabled for the repository with "GitHub Actions" as source before the first run. Signed-off-by: Erasmus Cedernaes <erasmus.cedernaes@intel.com>
The README and the documentation site described the same features, so every change had to be made twice. The site has a page per feature, so the README now gives an overview and links to it. Building and testing stay in the README, as they are for developers and not part of the user guide. AGENTS.md named the README as the user guide. It now names docs/, so that changes users can see are described there. The links work once the site is published from main. Signed-off-by: Erasmus Cedernaes <erasmus.cedernaes@intel.com>
Some things are hard to find from text alone: where the views and buttons of the extension are, and which icon is which. The pages now show them in pictures, with numbers or a left to right order that the text refers to. The pictures are screenshots of VS Code 1.148 with the extension. No Simics target was at hand, so it was attached to a small stand-in TCF agent with made-up target data, modelled on the Linux example of the Call stack page. The pictures show that the settings button has no gear icon, so the pages no longer call it the gear button. Signed-off-by: Erasmus Cedernaes <erasmus.cedernaes@intel.com>
The screenshots of the user guide were made with scripts that were not in the repository. So they could not be made again when the UI changes, and would slowly stop matching the extension. "npm run docs:screenshots" now makes all of them. It runs the latest VS Code with the extension against a stand-in TCF agent with made-up data. So no Simics is needed, and no data of a real target can end up in a picture. It runs in a sandbox without /home and without network, so that a picture cannot show a path or a host name of the machine either. Text is drawn a few pixels differently from run to run. A picture with at most 10 clearly different pixels is left as it is, so that a run without UI changes changes no file. The launch configurations picture is replaced by the one the script makes. It looks the same, but differs from the old one in 49 pixels at the edges of letters. The docs-screenshots skill tells coding agents how to run the script and check the result. They must show the changed pictures to the user for review before they commit. playwright-core drives VS Code. It downloads no browser. Signed-off-by: Erasmus Cedernaes <erasmus.cedernaes@intel.com>
Equal pixel counts against committed screenshots do not prove that two captures match. New screenshots have no committed version at all. Compare the two captures directly with the existing noise tolerance before replacing any documentation screenshots. Signed-off-by: Erasmus Cedernaes <erasmus.cedernaes@intel.com>
Signed-off-by: Erasmus Cedernaes <erasmus.cedernaes@intel.com>
Masking /tmp keeps host data out of screenshots, but it also hides checkouts and unpacked VS Code builds stored there. Restore only the paths that capture needs rather than exposing the whole directory. Signed-off-by: Erasmus Cedernaes <erasmus.cedernaes@intel.com>
Catch broken documentation before changes reach the Pages deployment. Limit PR builds to docs changes to avoid spending CI time on unrelated pull requests, and keep Pages publishing out of the PR run. Signed-off-by: Erasmus Cedernaes <erasmus.cedernaes@intel.com>
Contributor
Author
|
Rebased after #43 was merged |
aragners
self-requested a review
November 30, 2026 08:24
aragners
approved these changes
Nov 30, 2026
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.


Once merged, it will be deployed to https://intel.github.io/simics-vs-code-tcf-debug