npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

gitbook-plugin-oerschema

v0.0.3

Published

A GitBook Plugin to apply OER Schema metadata to GitBooks content

Downloads

7

Readme

OERSchema GitBook Plugin

Build Status

A GitBook Plugin to apply OER Schema metadata to GitBooks content

Installation

Simply add to your book.json file in GitBooks.

...
    {
        plugins: ["oerschema"]
    }
...

Usage

There are two elements provided by this plugin, Resources and Properties. A Resource is a subject described by one or more Properties.

Resource

Resources are defined using the {% oer_resource %} tag and has the following attributes:

| Attribute | Definition | |---|---| | id | The ID of the resource. This ID can be used to reference the resource within the page or from other pages. | | type | The resource type. See oerschema.org | | property | A resource can be a property value of parent resource. This is the name of the property on the parent resource for which the resource is the value of. | | for | The name of the parent resource for which this resource is a property value of. The property attribute must be used. If this resource is nested within the parent resource for which this resource is a value, the for attribute is unnecessary. |

Property

Properties are defined using the {% oer_property %} tag and has the following attributes:

| Attribute | Definition | |---|---| | name | Required. The property name as it exists in the property list of the resource for which the property is for. See oerschema.org | | id | Properties can be used as a resource. This is the resource name. | | type | A property can be a resource, so this attribute is the same as in Resource | | for | The name of the parent resource for which this property is for. If this property is nested within the parent resource for which it is a value, the for attribute is unnecessary. | | value | The explicit value of the property. If not provided, it will be up to the schema interpreter to parse the appropriate value from the element's body | | href | A property can act as a link between two resources. Where for is the attribute connecting this property to its parent resource, href connects a child resource as the value of this property. |

Examples

{% oer_resource id="#main", type="Resource"  %}
    {% oer_property name="name" %}
    # My OER Resource
    {% endoer_property %}
    {% oer_property name="mainContentOfPage" %}
        This is the content of my resource. It's stuff.
    {% endoer_property %}
    {% oer_property name="image" value="http://example.com/image.jpg" %}
{% endoer_resource %}