<commit_before>###
# Compass
###

# Change Compass configuration
# compass_config do |config|
#   config.output_style = :compact
# end

###
# Page options, layouts, aliases and proxies
###

# Per-page layout changes:
#
# With no layout
# page "/path/to/file.html", :layout => false
#
# With alternative layout
# page "/path/to/file.html", :layout => :otherlayout
#
# A path which all have the same layout

# Proxy pages (http://middlemanapp.com/basics/dynamic-pages/)
# proxy "/this-page-has-no-template.html", "/template-file.html", :locals => {
#  :which_fake_page => "Rendering a fake page with a local variable" }

###
# Helpers
###

# Automatic image dimensions on image_tag helper
# activate :automatic_image_sizes

# Reload the browser automatically whenever files change
activate :livereload

# Methods defined in the helpers block are available in templates
# helpers do
#   def some_helper
#     "Helping"
#   end
# end

set :css_dir, 'stylesheets'

set :js_dir, 'javascripts'

set :images_dir, 'images'

# Build-specific configuration
configure :build do
  # For example, change the Compass output style for deployment
  activate :minify_css

  # Minify Javascript on build
  activate :minify_javascript

  # Enable cache buster
  activate :asset_hash

  # Use relative URLs
  activate :relative_assets
  set :relative_links, true

  # Or use a different image path
  # set :http_prefix, "/Content/images/"
end

activate :directory_indexes

set :markdown_engine, :kramdown
set :markdown, {
  :input => 'GFM',
  :smart_quotes => ['apos', 'apos', 'quot', 'quot'],
}

ignore "chef/*"
ignore "workspace/*"

redirect "docs/admin-api.html", :to => "https://api-umbrella.readthedocs.org/en/latest/"
redirect "docs/admin-customize-public-website.html", :to => "https://api-umbrella.readthedocs.org/en/latest/"
redirect "docs/api-keys.html", :to => "https://api-umbrella.readthedocs.org/en/latest/"
redirect "docs/api-scopes.html", :to => "https://api-umbrella.readthedocs.org/en/latest/"
redirect "docs/architecture.html", :to => "https://api-umbrella.readthedocs.org/en/latest/"
redirect "docs/backend-headers.html", :to => "https://api-umbrella.readthedocs.org/en/latest/"
redirect "docs/caching.html", :to => "https://api-umbrella.readthedocs.org/en/latest/"
redirect "docs/deployment.html", :to => "https://api-umbrella.readthedocs.org/en/latest/"
redirect "docs/development-setup.html", :to => "https://api-umbrella.readthedocs.org/en/latest/"
redirect "docs/getting-started.html", :to => "https://api-umbrella.readthedocs.org/en/latest/"
redirect "docs/index.html", :to => "https://api-umbrella.readthedocs.org/en/latest/"
redirect "docs/smtp-configuration.html", :to => "https://api-umbrella.readthedocs.org/en/latest/"
redirect "download.html", :to => "install.html"
<commit_msg>Update new docs pages redirects.<commit_after>###
# Compass
###

# Change Compass configuration
# compass_config do |config|
#   config.output_style = :compact
# end

###
# Page options, layouts, aliases and proxies
###

# Per-page layout changes:
#
# With no layout
# page "/path/to/file.html", :layout => false
#
# With alternative layout
# page "/path/to/file.html", :layout => :otherlayout
#
# A path which all have the same layout

# Proxy pages (http://middlemanapp.com/basics/dynamic-pages/)
# proxy "/this-page-has-no-template.html", "/template-file.html", :locals => {
#  :which_fake_page => "Rendering a fake page with a local variable" }

###
# Helpers
###

# Automatic image dimensions on image_tag helper
# activate :automatic_image_sizes

# Reload the browser automatically whenever files change
activate :livereload

# Methods defined in the helpers block are available in templates
# helpers do
#   def some_helper
#     "Helping"
#   end
# end

set :css_dir, 'stylesheets'

set :js_dir, 'javascripts'

set :images_dir, 'images'

# Build-specific configuration
configure :build do
  # For example, change the Compass output style for deployment
  activate :minify_css

  # Minify Javascript on build
  activate :minify_javascript

  # Enable cache buster
  activate :asset_hash

  # Use relative URLs
  activate :relative_assets
  set :relative_links, true

  # Or use a different image path
  # set :http_prefix, "/Content/images/"
end

activate :directory_indexes

set :markdown_engine, :kramdown
set :markdown, {
  :input => 'GFM',
  :smart_quotes => ['apos', 'apos', 'quot', 'quot'],
}

ignore "chef/*"
ignore "workspace/*"

redirect "docs/admin-api.html", :to => "https://api-umbrella.readthedocs.org/en/latest/admin/api.html"
redirect "docs/admin-customize-public-website.html", :to => "https://api-umbrella.readthedocs.org/en/latest/"
redirect "docs/api-keys.html", :to => "https://api-umbrella.readthedocs.org/en/latest/api-consumer/api-key-usage.html"
redirect "docs/api-scopes.html", :to => "https://api-umbrella.readthedocs.org/en/latest/admin/admin-accounts/permissions.html"
redirect "docs/architecture.html", :to => "https://api-umbrella.readthedocs.org/en/latest/developer/architecture.html"
redirect "docs/backend-headers.html", :to => "https://api-umbrella.readthedocs.org/en/latest/admin/api-backends/http-headers.html"
redirect "docs/caching.html", :to => "https://api-umbrella.readthedocs.org/en/latest/admin/api-backends/caching.html"
redirect "docs/deployment.html", :to => "https://api-umbrella.readthedocs.org/en/latest/developer/deploying.html"
redirect "docs/development-setup.html", :to => "https://api-umbrella.readthedocs.org/en/latest/developer/dev-setup.html"
redirect "docs/getting-started.html", :to => "https://api-umbrella.readthedocs.org/en/latest/getting-started.html"
redirect "docs/index.html", :to => "https://api-umbrella.readthedocs.org/en/latest/"
redirect "docs/smtp-configuration.html", :to => "https://api-umbrella.readthedocs.org/en/latest/server/smtp-config.html"
redirect "download.html", :to => "https://api-umbrella.readthedocs.org/en/latest/getting-started.html"

{'fraction_non_alphanumeric': 0.15588583009626752, 'fraction_numerical': 0.0, 'mean_word_length': 4.634633682207421, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 41, 'https://': 25, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4073766', 'n_tokens_mistral': 2068, 'n_tokens_neox': 1990, 'n_words': 438}