Giter Club home page Giter Club logo

post--convexscope-nn's Introduction

Distill post--example

Distill articles depend on distillpub/template for styling and some functionality such as footnotes, citations, and math rendering. We built template as a standalone library of styles and webcomponents to allow you to use any web development workflow you'd like. But what if you don't have strong opinions about that and just want a starter kit that works out of the box? This is such a starter kit.

This is using webpack for bundling, svelte & svelte-loader to build interactive components/diagrams, and ejs to inline SVGs—the same technology choices we used when building ambitious articles such as Building Blocks of Interpretability.

Get started

Fork and rename, or simply copy this repository.

First time setup

  • Clone your fork or copy of this repository: git clone …
  • Install npm (Node Packet Manager). If you're on a Mac and have brew: brew install node will do the job.
  • cd post--example into the root directory of this project.
  • npm install to install dependencies.
  • Execute npm run dev to run a development server that autoreloads when you make changes to the article ("hot-reloading"). The console output will link you to a hot-reloading preview of the article.
  • Your article text is in src/index.ejs.
  • Your article metadata is in a tag called distill-frontmatter in the same (src/index.ejs) file. It contains a password field, which you should customize or remove while you're working oon the article.

Components and diagrams are stored in src. The .html files are svelte components, the .js files are compilation endpoints that are also defined in webpack.config.js. These compiled endpoints are then consumed by hand authored .ejs files in src, such as index.ejs which contains your content. For most articles you can simply use the provided index.ejs for your text, index.js to instantiate diagrams, and .html svelte files to create them.

Feedback

This is a new template, and we don't yet have a lot of documentation on it. Please bear with us while we work to improve it!

Please join our Distill Slack workspace if you have any questions. Open an issue if you'd like to see something improved!

post--convexscope-nn's People

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.