Coder Social home page Coder Social logo

Comments (3)

seanredmond avatar seanredmond commented on July 28, 2024

I'd almost forgotten about that list! I think this is somewhat linked to #4 in that what would be most useful is 1) a list of untranscribed memos with 2) an easy link to the original in a PDF. The first alone would suffice, but both together would make it easier to contribute?

from tindallgrams.

ianfixes avatar ianfixes commented on July 28, 2024

My original intention was for this issue to be a pull request that implements this, but

  • poking around in the ruby code gave me the impression that a lot of interrelated things are happening, that I didn't want to accidentally break
  • I wasn't sure of the proper way to get the list of already-converted tgrams

from tindallgrams.

seanredmond avatar seanredmond commented on July 28, 2024

If you look at one of the year indexes (1966, say), that's a good start. With the addition of some frontmatter, these just contain liquid tag markup:

{% tgindex year 1966 %}

Here tgindex calls a plugin tgindex.rb with the two parameters indicating, as you can guess, "make a year index for 1966".

The entire list of Tindallgrams is loaded from the YAML file:

@grams = YAML.load_file('_data/tindallgrams-index.yaml')['tindallgrams']

The filter method then filters this list according to the desired index type (currently year or source) and render_index generates the table. Before it's generated, the get_published method is called to make a list of already-transcribed Tindallgrams (by looking for files that actually exist). So, when the table is generated, links can be made to the transcribed version when they exist by seeing if they exist in that list.

Making an index of "done" or "to-do" Tindallgrams, would only require adding on to tgindex so that it can generate the desired pages and then adding the new page templates. I would suggest enabling the tags:

{% tgindex transcribed true %}
{% tgindex transcribed false %}

The filter method would then just have to use get_published to filter the done memos in or out.

If you want to give this a go, don't worry about breaking anything -- we'll fix any problems before merging.

from tindallgrams.

Related Issues (19)

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.