Skip to content

Commit

Permalink
Merge pull request #530 from BigBlueHat/document-module-documentation…
Browse files Browse the repository at this point in the history
…-tweak

Add example markup from tests to doc module docs
  • Loading branch information
tilgovi committed May 12, 2015
2 parents 7b1aec8 + 963420c commit 874592f
Showing 1 changed file with 45 additions and 9 deletions.
54 changes: 45 additions & 9 deletions doc/modules/document.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,49 @@ This module collects metadata from the loaded page and adds it to new
annotations in the ``document`` field. Types of metadata collected at present
include:

- Facebook Open Graph tags
- Twitter card tags
- Highwire tags
- Dublin Core tags
- PRISM tags
- Eprints tags
- Favicon
- Page title
- Page title::

<title>Annotator - Annotating the Web</title>

- ``rel=alternate``, ``rel=shortlink``, ``rel=bookmark``, and ``rel=canonical``
link tags
link tags::

<link rel="alternate" href="foo.pdf" type="application/pdf"></link>
<link rel="alternate" href="foo.doc" type="application/msword"></link>
<link rel="bookmark" href="http://example.com/bookmark"></link>
<link rel="alternate" href="es/foo.html" hreflang="es" type="text/html"></link>
<link rel="alternate" href="feed" type="application/rss+xml"></link>
<link rel="canonical" href="http://example.com/bookmark/canonical.html"></link>
<link rel="shortlink" href="http://example.com/bookmark/short"></link>

- Highwire tags::

<meta name="citation_doi" content="10.1175/JCLI-D-11-00015.1">
<meta name="citation_title" content="Foo">
<meta name="citation_pdf_url" content="foo.pdf">

- Dublin Core tags::

<meta name="dc.identifier" content="doi:10.1175/JCLI-D-11-00015.1">
<meta name="dc.identifier" content="isbn:123456789">
<meta name="DC.type" content="Article">

- Facebook Open Graph tags::

<meta property="og:url" content="http://example.com">

- Twitter card tags::

<meta name="twitter:site" content="@okfn">

- Favicon::

<link rel="icon" href="http://example.com/images/icon.ico"></link>

- Eprints tags::

<meta name="eprints.title" content="Computer Lib / Dream Machines">

- PRISM tags::

<meta name="prism.title" content="Literary Machines">

0 comments on commit 874592f

Please sign in to comment.