Giter Site home page Giter Site logo

ryanprior / visidata.org Goto Github PK

View Code? Open in Web Editor NEW

This project forked from visidata/visidata.org

0.0 0.0 0.0 11.09 MB

the contents of the visidata website

HTML 63.64% CSS 2.50% Shell 0.58% Python 0.29% JavaScript 5.78% Makefile 0.07% Nunjucks 27.14%

visidata.org's Introduction

Preview

visidata.netlify.app

Building and Running

Install

pip install -r requirements.txt

npm install

Live dev environment:

npm run build:docs

npm run dev

Production:

npm run build

Writing content

For both blog posts and releases, all MarkDown files will be stored in site/blog/<year>/.

If you need to store assets such as image files, these go in site/blog/assets/. 300kb or less is recommended for image file sizes.

Important notes:

  • All posts must include the appropriate frontmatter or they will not show up on the site. Check previous posts for examples.
  • No H1 headings in posts. There should only be one H1 element on each page, and that's the title, which is automatically added from the frontmatter. Use H2s instead. This helps search engines not get confused.

Images

This site includes Eleventy Image. This makes it easy to serve responsive, optimized images in your templates. Eleventy Image will automatically convert any jpeg, png, webp, gif, tiff, or avif to optimized webp and jpeg. Thanks to the HTML <picture> element, WebP is served first with a JPEG fallback for browsers that don't support WebP. All the major browsers support WebP.

If you need to add an image to a template file (.njk), use the Eleventy Image shortcode instead of the <img> element: {% image "images/image.jpg", "alt text goes here" %}

Important note: Be sure to include alt text or Eleventy will throw a warning (this is good!).

Store your template images in /images.

Animated GIFs

These can be extremely heavy - I recommend converting them to MP4 instead and adding them using the HTML5 <video> element. Browsers will then defer loading the video until the play button is clicked. An example can be seen on the index page.

Eleventy Image will not output GIFs in an animated format.

Manpage

Build the manpage html for the current vd.1 in visidata.org/visidata, by running mkmanhtml.sh. Move the bult manpage to its appropriate version in site/docs/man/VERSIONID/index.html.

Updatable site elements

You can always edit the HTML, but some elements are rendered from a JSON list.

Current lists::

  • Sponsors in footer - site/globals/sponsors.json
  • Site navigation - site/globals/navigation.json
  • Testimonials on homepage - site/globals/testimonials.json

visidata.org's People

Contributors

aborruso avatar ajkerrigan avatar anjakefala avatar kimrutherford avatar lkhrs avatar p3k avatar ryanprior avatar saulpw avatar

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.