Skip to content

docs: update & fixes#473

Merged
davidB merged 5 commits into
mainfrom
wip-diagram-1
May 1, 2026
Merged

docs: update & fixes#473
davidB merged 5 commits into
mainfrom
wip-diagram-1

Conversation

@davidB
Copy link
Copy Markdown
Contributor

@davidB davidB commented May 1, 2026

No description provided.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request enhances the documentation site by adding SEO-friendly descriptions to the frontmatter of numerous Markdown files and implementing JSON-LD structured data for documentation pages. It also introduces new SVG-based diagram components and sets up several 301 redirects for legacy paths. Feedback is provided regarding the new InsideCollector.vue component, which contains a significant amount of commented-out code and dead logic that should be cleaned up to improve maintainability.

Comment on lines +9 to +37
let timeline = null;

//gsap.registerPlugin(GSDevTools);

onMounted(() => {
//GSDevTools.create({ animation: timeline });
// Reset elements to initial state
// gsap.set(`.${selector_prefix}annotation`, { opacity: 1 });
// timeline = gsap.timeline({ defaults: { ease: "back" } });
// GSDevTools.create({ animation: timeline });
// timeline
// .to(`#${selector_prefix}xxx`, { autoAlpha: 1, duration: 0.1 })
// .from(`#${selector_prefix}xxx`, {
// opacity: 0,
// stagger: {
// each: 0.8,
// from: "end",
// },
// })
// ;
});

onUnmounted(() => {
// Clean up timeline on unmount
if (timeline) {
timeline.kill();
timeline = null;
}
});
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.

medium

This component appears to be a work-in-progress for an animated diagram, but contains a significant amount of commented-out and non-functional code.

  • The timeline variable is initialized to null and never reassigned, which makes the cleanup logic in onUnmounted dead code.
  • The onMounted hook is filled with commented-out animation logic.

To improve maintainability, please remove the unused code. If animations are planned for the future, consider adding a // TODO comment with details about the intended implementation or moving the logic to a separate composable function.

davidB added 4 commits May 1, 2026 20:59
1. .vitepress/config.mts — added TechArticle JSON-LD schema to all docs pages (except getting-started.md which already has HowTo)
  2. 53 markdown files — added targeted description frontmatter to every docs page lacking one, covering:
    - 2 core docs (architecture.md, cdevents.md)
    - 17 collector core pages
    - 8 source extractors
    - 10 parsers
    - 9 sinks
    - 2 database pages
    - 6 Grafana dashboard pages
1. assets/_redirects — added 7 rules:
    - /blog/*.html → /blog/:splat (301) — catches all .html blog URLs Google indexed
    - /docs/vs-*.html → /docs/alternatives/vs-* (301) — .html variants of existing doc redirects
  2. .vitepress/config.mts — fixed getDraftExcludes() bug: it was calling getBlogPosts(blogDir, false) which returns published posts, then adding them to srcExclude —
  silently preventing all blog posts from generating HTML pages. Fixed to filter for unpublished/draft posts only.
The Disallow: /*? stops Googlebot from crawling any URL with query params on cdviz.dev. Static doc site has no real query param pages, so no collateral damage.
@davidB davidB merged commit d771dc2 into main May 1, 2026
5 checks passed
@davidB davidB deleted the wip-diagram-1 branch May 1, 2026 19:10
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