From 4b3ba9144d0d52b345bc35858ee6a6fe2b3d89cb Mon Sep 17 00:00:00 2001 From: Benedikt Willi Date: Mon, 12 Jan 2026 09:16:23 +0100 Subject: [PATCH] Removed old documentation files --- FEATURE_DOM_GRAPH.md | 146 ---------------------------- QUICKSTART_DOM_GRAPH.md | 80 --------------- README.md | 199 +++++++++++++++++++++++++------------- UPDATE_DOM_TAB.md | 152 ----------------------------- docs/DOM_GRAPH_UX.md | 157 ------------------------------ docs/DOM_VISUALIZATION.md | 97 ------------------- src/parser/html.py | 16 +-- test_dom.html | 35 ------- 8 files changed, 138 insertions(+), 744 deletions(-) delete mode 100644 FEATURE_DOM_GRAPH.md delete mode 100644 QUICKSTART_DOM_GRAPH.md delete mode 100644 UPDATE_DOM_TAB.md delete mode 100644 docs/DOM_GRAPH_UX.md delete mode 100644 docs/DOM_VISUALIZATION.md delete mode 100644 test_dom.html diff --git a/FEATURE_DOM_GRAPH.md b/FEATURE_DOM_GRAPH.md deleted file mode 100644 index 0a4a0e0..0000000 --- a/FEATURE_DOM_GRAPH.md +++ /dev/null @@ -1,146 +0,0 @@ -# DOM Visualization Feature - Implementation Summary - -## Overview -Added a keyboard shortcut (Ctrl+Shift+D) to generate and visualize the DOM tree of the current tab as a graph. - -## Files Created - -### Core Implementation -- **src/debug/__init__.py** - Debug utilities package -- **src/debug/dom_graph.py** - DOM graph generation and visualization - - `generate_dot_graph()` - Generates Graphviz DOT format - - `save_dom_graph()` - Saves DOT file - - `render_dom_graph_to_svg()` - Renders to SVG (requires graphviz) - - `print_dom_tree()` - Text tree representation - -### Tests -- **tests/test_dom_graph.py** - Comprehensive test suite (10 tests, all passing) - - Tests graph generation, coloring, escaping, truncation - - Tests tree printing with proper indentation - - Tests depth limiting and attribute handling - -### Documentation -- **docs/DOM_VISUALIZATION.md** - Feature documentation -- **test_dom.html** - Example test page -- Updated **README.md** with keyboard shortcuts section - -## Implementation Details - -### Browser Integration (src/browser/chrome.py) - -1. **Keyboard Shortcut Setup** - - Added `_setup_keyboard_shortcuts()` method - - Registers GTK EventControllerKey for key presses - - Listens for Ctrl+Shift+D combination - -2. **DOM Graph Handler** - - Added `_on_key_pressed()` callback - - Added `_show_dom_graph()` method that: - - Gets current tab's DOM document - - Generates graph in DOT format - - Attempts SVG rendering (if graphviz installed) - - Falls back to DOT file - - Prints tree to console - - Shows info dialog with result - -3. **UI Feedback** - - Added `_show_info_dialog()` for user notifications - - Opens generated SVG automatically with xdg-open - -### Graph Features - -**Color Coding:** -- Light green: ``, `` -- Light yellow: Headings (`

`-`

`) -- Light gray: Block elements (`
`, `

`, ``) -- Light cyan: Lists (`