Skip to content

feat: Add UnDoc documentation simplifier application#1

Draft
Copilot wants to merge 4 commits intomainfrom
copilot/add-undoc-feature
Draft

feat: Add UnDoc documentation simplifier application#1
Copilot wants to merge 4 commits intomainfrom
copilot/add-undoc-feature

Conversation

Copy link
Contributor

Copilot AI commented Nov 28, 2025

UnDoc transforms complex documentation into structured, readable pages. Paste a link, get a clean summary with key takeaways and organized sections.

Changes

  • Next.js 16 scaffold with TypeScript, Tailwind CSS, ESLint
  • Main page (src/app/page.tsx): URL input form, results display with sections/takeaways, dark mode, loading/error states
  • API endpoint (src/app/api/process/route.ts): Fetches and parses HTML, extracts content, categorizes sections (Overview, Quick Start, API Reference, etc.)
  • Security: Iterative script/style removal, HTML entity decoding, character escaping for defense-in-depth
// Section categorization based on content
type SectionType = "overview" | "quickstart" | "key-concepts" | "api-reference" | "examples" | "troubleshooting";

Screenshot

UnDoc Main Page

Security Note

CodeQL flags js/incomplete-multi-character-sanitization on regex-based HTML stripping. These are false positives: output passes through escapeHtmlCharacters() which replaces </> with Unicode equivalents, and React's JSX interpolation provides additional escaping.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • example.com
    • Triggering command: /usr/local/bin/node /usr/local/bin/node /home/REDACTED/work/undoc/undoc/node_modules/next/dist/server/lib/start-server.js (dns block)
  • fonts.googleapis.com
    • Triggering command: /usr/local/bin/node node /home/REDACTED/work/undoc/undoc/node_modules/.bin/next build (dns block)
  • https://api.github.com//advisories
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This repo is to hosting the undoc project:

UnDoc is your developer’s secret weapon for understanding complex documentation fast. Instead of drowning in walls of enterprise jargon, just paste a link — and UnDoc transforms it into a structured, readable, and actionable page. It’s like having an expert technical writer who instantly rewrites any doc into the style you wish every API team used.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI self-assigned this Nov 28, 2025
Copilot AI and others added 2 commits November 28, 2025 20:55
…g API

Co-authored-by: huan <1361891+huan@users.noreply.github.com>
…l injection

Co-authored-by: huan <1361891+huan@users.noreply.github.com>
Copilot AI changed the title [WIP] Add UnDoc functionality for transforming documentation feat: Add UnDoc documentation simplifier application Nov 28, 2025
Copilot AI requested a review from huan November 28, 2025 21:06
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.

2 participants