Git Product home page Git Product logo

capsule's People

Contributors

michaelquigley avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

refaqtor uiforks

capsule's Issues

Capsule Type Handling

Implement Capsule.Type handling within the Model. Delegate to a strategy to identify the type.

fs.FS / embed.FS

Investigate fs.FS and building around that approach for filesystem encapsulation.

Deepdwn

What can we learn from Deepdwn (https://billiam.itch.io/deepdwn)?

It looks like Deepdwn provides some interesting development and organizational features on top of Markdown, which makes working with groups of documents easier.

Need to consider those kinds of development tools and how they might work on top of capsule.

Idiomatic Template Naming

Rather than depending on the user to do the right thing with {{ define }} inside templates, write code to name templates automatically using the directory structure path names.

Rendering Structures by Id

The TimelineIndex renderer currently looks for a hardcoded timeline structure. This should be configurable (through renderer.yaml) to allow for multiple timeline structures.

The same pattern will be useful for other renderers/builders.

Replace godirwalk.Walk with fs.WalkDir

It looks like a lot of the performance improvements brought by godirwalk have been fixed up in the standard fs.WalkDir (or at least enough of them have been). So we should be able to do away with that dependency.

Clean Build

Track all of the files that comprise the build, and then remove any files that don't belong.

This is better than just removing everything, so that we can do lazy file copies.

static.Visitor

Implement a "visitor" concept in the static compiler, which can be used to produce instance data, which can be used in downstream renders.

Produce V["body"], V["short"], V["title"] or other elements that need to be computed from the persistent content, making it accessible for use in rendering.

Structure Dumping

Implement an idiomatic facility for dumping model.Model.Structures.

Structure Component Registry

Register builders and renderers globally. Get rid of the naked:

CfOptions().AddFlexibleSetter("timeline", func(v interface{}, opt *cf.Options) (interface{}, error) {
	return &TimelineStructureBuilder{}, nil
})

Smart Links

Surely there is something we can do with links between nodes, which is better than a raw path?

Image Feature Handling

Automatically take high-resolution source images and produce whatever types of derivative images might be necessary.

static.Node -> Build Data

Instead of generating a static.Node for use throughout the build, extend the model to support "intermediate" ("build") data.

Structure Rendering

With the structure model defined as a feature, use a structure.yaml feature to declare structure rendering contributions to the Story (Body) output on a node.

Class; Role; Type

Expand the MIME-like "type" information into a more nuanced "class", "role", "type" structure.

Class being "image", "text", etc.

Role being "story", "hero", "cover".

Type being "markdown", "png", etc.

Lazy Static Copies

Check file sizes and modification timestamps and only copy if a difference is detected. Provide a switch to force copy.

Channelized Logging

Would be super handy to be able to enable debug logging on a per-"channel" basis.

capsule.Features (With, Without, Name)

Replace the capsule.Node.FeaturesWith and capsule.Node.FeaturesWithout with a new capsule.Features type, with fluent methods like With, Without, Named, etc.

"Overlay" Resources

We're going to ultimately want to use a different template for certain nodes. We're going to need a "data" feature to contain this kind of stuff... but this data is really specific to the rendering of the capsule, not part of the capsule itself. This data ("configuration") should probably exist as overlay data in a the resources.

StoryRenderer

Rather than having the static compiler intrinsically render each node to an index.html file, create a StoryRenderer and use the existing configuration/globbing infrastructure to use it.

Capsule Server

Implement a server process, to take a rendered capsule and provide the service scaffolding around that render.

Could grow in the future to support subscriptions, mailing list signup, contact, etc.

Zettelkasten; Wiki

Would be useful to have a model where capsule contents can work like a zettelkasten or a wiki. Inlinks and outlinks, tracked.

HTML Tidy for Static Compiler

I really like when the output of a generator can be run through a "tidy" utility. Would love to get something working here.

Gemtext; Inline Links

[email protected] - People keep asking "why no markdown support in #Lichen?" I've spent a great deal of time thinking about it.

Gemtext is truly better: it supports all the richness of a good book, and the ability to link or reference other information.

Hypertext inline links are just a gimmick, a technical trick that we've grown used to. How many times has the ability to "click here" made the written content better or deeper? Zero.

I challenge you to at least try writing without inline links. It's not hard.

Capsule as Feature

Parallel to conversion from .structure -> structure.yaml, .capsule -> capsule.yaml.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.