Skip to content

Conversation

@techniq
Copy link
Owner

@techniq techniq commented Oct 16, 2025

Goals

  • Provide complete / standalone / isolated examples with easy copy and paste and ability to open in Svelte REPL/Playground or Stackblitz
  • New Examples browse page with filtering
  • Automatic find related examples for all components
  • Expose APIs (generated from $prop() types)
  • Improved search (sub-section)
  • Improved design
  • Better separation of library and docs dependencies

Closes #620

PR also

  • Adds settings (default layer type and debug)
  • Layer improvements
    • respects layer setting (default)
    • integrates debug setting (overall and padding bounds)

TODO

Existing

  • Create new docs projects at {project_root}/docs}
  • Setup content-collections
  • Setup mdsx
  • Setup Tailwind / Theme select
  • Setup unplugin-icons
  • Setup Svelte UX
  • Table of Contents
  • Analytics
  • Integrate renderContext (svg/canvas/html) setting
  • Integrate debug setting
  • Setup CI (build)
  • Deploy new site to Cloudflare (new directory)
  • Identify pattern to define examples
    • preprocess markdown code blocks
      • Pro
        • Faster to migrate
        • Quick to iterate
      • Con
        • More difficult to implement (find old preprocessor)
    • Separate page per example (almost 700)
      • Pro
        • Better tooling (prettier, errors)
        • Easier to implement (?raw for source)
        • Full examples (<script>)
        • Easier to open in REPL
      • Con
        • More intensive (almost 700)
        • Each needs distinct name
  • Migrate all examples
  • Search
  • Responsive layout
  • light/dark shiki themes
  • Remove old site (after migrated)
  • Update Getting Started
  • Fix screenshots (show full examples (multi-chart), hide controls)
  • Fix data warning (box value in object)

New


Structure

I'm also thinking we have the following sections (not rigid, but general ideas):

possibly

  • Updates (News / Blog)

Issues

@changeset-bot
Copy link

changeset-bot bot commented Oct 16, 2025

🦋 Changeset detected

Latest commit: fdebf6e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
layerchart Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Contributor

github-actions bot commented Oct 16, 2025

built with Refined Cloudflare Pages Action

⚡ Cloudflare Pages Deployment

Name Status Preview Last Commit
layerchart ✅ Ready (View Log) Visit Preview fdebf6e

@pkg-pr-new
Copy link

pkg-pr-new bot commented Oct 16, 2025

Open in StackBlitz

npm i https://pkg.pr.new/layerchart@659

commit: fdebf6e

- "Sparkbar-fixed-position tooltip" - use format so not so many decimals.
- "sparkbar-within-a-paragraph-with-tooltip-and-highlight" - same reduction of decimals.
* Added TabbedContent.svelte

Component allows for source code options in a compact tabbed interface.

I have also added a prop to Code.svelte `includeCopyButton` defaulted to true. This option allows removal of copy button if code is more pseudocode which shouldn't be copied completely.

i.e
```js
<script lang="ts">
import { Chart } from "layerchart";

...

</script>
```

* Fix typo.  Add Svelte UX tab

* Qualify class override just in case

---------

Co-authored-by: Sean Lynch <[email protected]>
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