Coder Social home page Coder Social logo

ethanblake4 / anvil Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vaetas/blake

7.0 7.0 0.0 3.66 MB

Static Site Generator in Dart language. Markdown support, Jinja templates, YAML config, live-reload and compiled into single native binary.

Home Page: https://vaetas.github.io/blake/

License: MIT License

Dart 98.30% HTML 1.00% JavaScript 0.58% SCSS 0.12%

anvil's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

anvil's Issues

Pull code snippets from live repos

@bsutton and I discussed and came up with this syntax (in Dart, other languages would be similar):

void myFunction() {
  var x = doThing();
  // [anvil:snippet:"mysnippet"]
  var y = doOther(x);
  y += 5;
  // [anvil:endsnippet]
}

Then in the config:

...
snippets:
- https://github.com/ethanblake4/anvil.git

This would add to the template data so could be accessed like so:

{% code dart %}
{{ snippets.anvil.mysnippet }}
{% endcode %}

or perhaps even:

{% snippet anvil.mysnippet %}

and we could infer the source type.

Generate page index and provide method for relative access

For docs we need to generate a tree structure of all the pages that is accessible by Jinja. The leaves should have the page metadata like title and URL. We also need to be able to define the order of the pages.

We also need to provide relative access; requirements currently are only the next and previous page relative to the current one, but if it's easy to provide generalized relative access then we can do that.

We need a way to define the 'root' of this relative access list so that we don't end up falling off the entire Docs page via a Previous link on the first docs page or a Next link on the last docs page.

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.