Skip to content

Conversation

@xlc-dev
Copy link
Owner

@xlc-dev xlc-dev commented Oct 5, 2025

Built the new website with fssg

xlc-dev added 13 commits July 5, 2025 19:23
… anchors, and format HTML builder docs

- Add `cleanupOnFailure` method to `projectGenerator` in `new` command to remove partial project dirs on error, with verbose logging
- Handle `flag.ErrHelp` in CLI `Run` for graceful global and command-specific help display (e.g., `-h` or `--help`)
- Update `gendoc` command: simplify output default to "reference.md" and add `-o` alias
- Refactor `generateReferenceMarkdown`: use `doc.New` for simpler package doc creation, introduce `generateTOC` for dynamic table of contents, improve anchor generation (e.g., collapse multiple hyphens, trim edges), and enhance `formatDocText` with `doc.ToHTML` + basic MD conversion for better list/code handling
- Update `writeDocItem` for consistent anchor/ID placement and Go code block rendering
- Format all doc comments in `html.go` to use Markdown inline code (e.g., `<div>` → `` `<div>` ``) for consistency
- Add/update tests in `refparser_test.go`: adjust assertions for new TOC structure (e.g., method headers as `####`), more anchor edge cases, and code fence checks

These changes improve error recovery, user experience in CLI/help, and documentation quality/output.
@xlc-dev xlc-dev merged commit 55e36a6 into main Oct 5, 2025
2 checks passed
@xlc-dev xlc-dev deleted the new-docs branch October 5, 2025 14:34
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.

1 participant