Skip to content

Tasks

  • update section about “Ideal solution” in diagrams article
  • write about playwright for Mermaid and Euler diagrams
  • write about not-content
  • implement Faceted search
  • Implement remark-dataview plugin in BrainDB monorepo
    • ”Alphabetical index” and “Recently changed” can be first candidates
    • For more complex things I need DQL parser
  • add View Transitions
  • implement better user action tracking (beyond page navigations)
    • if search was used
    • if external links were clicked
    • if page preview was shown
  • remove H1 on tags page
  • publish Astro components for
    • LinkPreview
    • ”Snake” table of content
    • Alphabetical index (BrainDB instance as param)
    • Recently changed (BrainDB instance as param)

Ideas

Color tag

I can easily generate color from tag:

import ch from "color-hash";
const colorHash = new ch.default();
colorHash.hex(tag);

I can use it in:

  • color-chip near the tag or maybe color underline?
  • Euler diagram
  • content graph
  • social images - to generate colorful “border”

Metadata

Metadata can come from frontmatter or can be computed

Content:

frontmatterauto generatedusage
TitletitleFile name<title>, og:title, twitter:title, Social images autogenration
DescriptiondescriptionText summarization<meta name="description">, og:description, twitter:description, Social images autogenration
Image?Social images autogenrationog:image, twitter:image, cover image for post, small image for list
SlugslugFile name or pathwikilinks, url generation
Last UpdatedlastUpdatedBased on git”Last updated” on on page or in list, “Recently changed” page, schema (dateModified), sitemap (lastmod), search
Tagstags-Tag list page, Tags on page or in list, search

Functional: tableOfContents, banner, pagefind, draft, sidebar

Other:

  • It should be possible to assign metdata for each page and/or tag. For example, it can be color or icon. Then this metadata can be reused:
  • Functional metadata:
    • I can implement alias with “catch all” [...path].astro (Permanent links)
      • but also need to exclude it from sitemap
      ---
      export function getStaticPaths() {
      return [{ params: { path: "test-redirect" } }];
      }
      ---
    • description
    • exclude from sitemap

Content graph visualization

Euler diagram

  • Implement area-proportional diagram. Maybe edeap.
  • Try to implement it without headless browser

Faceted search

Last modified time

Link previews

  • handle non-html links (images, pdfs)

Social images autogenration

  • generate gradient based on tag colors

Pan and zoom for images

  • style pan-zoom buttons
  • create rehype plugin to wrap images into container (<figure class="beoe"></figure>), to avoid creating it on the client side

Table of contents

  • fix bug: it crashes if there are missing header levels, like h4 directly in h2
  • fix "snake" styles

Tag list

  • page for each tag
  • metadata for tags (color, icon)

Timelime diagram

  • removed Graphviz component from the repo need to use @beoe/astro-graphviz instead

Wikilinks

  • support anchors in wikilinks ([[page#anchor]], [[page#anchor|alias]])
  • check that anchors correspond to some header in target document
  • what about ambiguous links (bdb.documentsSync({ slug: permalink }).length > 1)?
  • image wikilinks (![[some.jpg]])