Skip to content

Add a documentation site - #41

Merged
emanuelen5 merged 9 commits into
intel:mainfrom
emanuelen5:settings
Nov 30, 2026
Merged

emanuelen5 merged 9 commits into
intel:mainfrom
emanuelen5:settings

Conversation

@emanuelen5

@emanuelen5 emanuelen5 commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

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

@emanuelen5 emanuelen5 self-assigned this Nov 27, 2026
@emanuelen5
emanuelen5 requested a review from a team as a code owner November 27, 2026 14:09
@emanuelen5 emanuelen5 changed the title Settings Add a documentation site Nov 27, 2026
@emanuelen5
emanuelen5 requested a balanced review from Copilot November 27, 2026 14:42

Copilot AI 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.

🟡 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

Comment thread scripts/docs-screenshots/run.sh Resolved
Comment thread README.md Resolved
@emanuelen5
emanuelen5 enabled auto-merge (rebase) November 27, 2026 16:30

@aragners aragners left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

Comment thread docs/configuration/path-mapping.md Resolved
Comment thread docs/reference/limitations.md Resolved
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>
@emanuelen5

Copy link
Copy Markdown
Contributor Author

Rebased after #43 was merged

@aragners
aragners self-requested a review November 30, 2026 08:24
@emanuelen5
emanuelen5 merged commit 7489071 into intel:main Nov 30, 2026
6 checks passed
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.

3 participants