<commit_before># Redirect from /latest to root

[[redirects]]
  from = "/latest/*"
  to = "/:splat"

# The recommended way to serve JSON-LD is with "Cool URIs"
# and content negotiation. eg. this is how schema.org does it:
#   curl http://schema.org/Person -H "Accept:application/ld+json" -i
# Netlify does not support content negotiation
# (i.e. redirects based on the Accept header)
# Therefore, to provide a URL that fits with
# the norms for JSON-LD (no file extensions),
# we need to provide a specific route.

[[redirects]]
  from = "/jsonld"
  to = "/stencila.jsonld"

[[redirects]]
  from = "/jsonld/*"
  to = "/:splat.jsonld"

# Redirect to unpkg
# Why? Because for the version redirects below
# unpkg redirects to an expanded, but relative, URL
# which Netlify thinks it should serve e.g:
#   > curl --silent --head https://unpkg.com/@stencila/schema@0/dist/CodeChunk.schema.json | grep Location
#   Location: /@stencila/schema@0.32.3/dist/CodeChunk.schema.json
# So this redirects back to unpkg:
[[redirects]]
  from = "/@stencila/*"
  to = "https://unpkg.com/@stencila/:splat"
  force = true

# Version redirects
# These redirect intentionally use http, instead of https,
# because that causes
# Unfortunately, given the current URL pattern `v1` etc,
# we can't make this work using placeholders
# (i.e. using `v:number`; placeholders must come after a slash).
# So more redirects for new versions will need to be added in
# the future.

[[redirects]]
  from = "/v0/jsonld"
  to = "https://unpkg.com/@stencila/schema@0/dist/stencila.jsonld"
  force = true

[[redirects]]
  from = "/v0/jsonld/*"
  to = "https://unpkg.com/@stencila/schema@0/dist/:splat.jsonld"
  force = true

[[redirects]]
  from = "/v0/*"
  to = "https://unpkg.com/@stencila/schema@0/dist/:splat"
  force = true

[[redirects]]
  from = "/v1/jsonld"
  to = "https://unpkg.com/@stencila/schema@1/dist/stencila.jsonld"
  force = true

[[redirects]]
  from = "/v1/jsonld/*"
  to = "https://unpkg.com/@stencila/schema@1/dist/:splat.jsonld"
  force = true

[[redirects]]
  from = "/v1/*"
  to = "https://unpkg.com/@stencila/schema@1/dist/:splat"
  force = true<commit_msg>ci(Netlify): Redirect to GitHub pages<commit_after># Redirect from /latest to root

[[redirects]]
  from = "/latest/*"
  to = "/:splat"

# The recommended way to serve JSON-LD is with "Cool URIs"
# and content negotiation. eg. this is how schema.org does it:
#   curl http://schema.org/Person -H "Accept:application/ld+json" -i
# Netlify does not support content negotiation
# (i.e. redirects based on the Accept header)
# Therefore, to provide a URL that fits with
# the norms for JSON-LD (no file extensions),
# we need to provide a specific route.

[[redirects]]
  from = "/jsonld"
  to = "/stencila.jsonld"

[[redirects]]
  from = "/jsonld/*"
  to = "/:splat.jsonld"

# Redirect to unpkg
# Why? Because for the version redirects below
# unpkg redirects to an expanded, but relative, URL
# which Netlify thinks it should serve e.g:
#   > curl --silent --head https://unpkg.com/@stencila/schema@0/dist/CodeChunk.schema.json | grep Location
#   Location: /@stencila/schema@0.32.3/dist/CodeChunk.schema.json
# So this redirects back to unpkg:
[[redirects]]
  from = "/@stencila/*"
  to = "https://unpkg.com/@stencila/:splat"
  force = true

# Version redirects
# These redirect intentionally use http, instead of https,
# because that causes
# Unfortunately, given the current URL pattern `v1` etc,
# we can't make this work using placeholders
# (i.e. using `v:number`; placeholders must come after a slash).
# So more redirects for new versions will need to be added in
# the future.

[[redirects]]
  from = "/v0/jsonld"
  to = "https://unpkg.com/@stencila/schema@0/dist/stencila.jsonld"
  force = true

[[redirects]]
  from = "/v0/jsonld/*"
  to = "https://unpkg.com/@stencila/schema@0/dist/:splat.jsonld"
  force = true

[[redirects]]
  from = "/v0/*"
  to = "https://unpkg.com/@stencila/schema@0/dist/:splat"
  force = true

[[redirects]]
  from = "/v1/jsonld"
  to = "https://unpkg.com/@stencila/schema@1/dist/stencila.jsonld"
  force = true

[[redirects]]
  from = "/v1/jsonld/*"
  to = "https://unpkg.com/@stencila/schema@1/dist/:splat.jsonld"
  force = true

[[redirects]]
  from = "/v1/*"
  to = "https://unpkg.com/@stencila/schema@1/dist/:splat"
  force = true

# Redirect (well actually, rewrite) content not found here to
# GitHub pages. This is primarily for Markdown and API documentation
# that is served from there

[[redirects]]
  from = "/*"
  to = "https://stencila.github.io/schema/:splat"
  status = 200
{'fraction_non_alphanumeric': 0.15032822757111597, 'fraction_numerical': 0.008533916849015317, 'mean_word_length': 3.6547861507128308, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 17, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1913963', 'n_tokens_mistral': 1644, 'n_tokens_neox': 1608, 'n_words': 473}