Main repository for Devuan's www.devuan.org.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

92 lines
2.1 KiB

  1. #
  2. ## beta.devuan.org
  3. #
  4. # This is a Middleman configuration file.
  5. # http://middlemanapp.com/
  6. #
  7. ###
  8. # Compass
  9. ###
  10. # Change Compass configuration
  11. compass_config do |config|
  12. config.output_style = :compact
  13. end
  14. ###
  15. # Page options, layouts, aliases and proxies
  16. # (default layout is source/layouts/layout.erb)
  17. ###
  18. page ".(asc|json|txt|xml)$", :layout => false
  19. page "/sitemap.xml", :layout => false
  20. page "/os/*", :layout => :os
  21. # Proxy pages (https://middlemanapp.com/advanced/dynamic_pages/)
  22. # proxy "/this-page-has-no-template.html", "/template-file.html", :locals => {
  23. # :which_fake_page => "Rendering a fake page with a local variable" }
  24. # Don't use this for old URLs: see etc/
  25. ###
  26. # Variables (DO NOT CHANGE)
  27. ###
  28. set :markdown_engine, :kramdown
  29. set :markdown, :fenced_code_blocks => true,
  30. :disable_indented_code_blocks => true,
  31. :smartypants => true,
  32. :footnotes => true
  33. set :css_dir, 'ui/css'
  34. set :fonts_dir, 'ui/css/fonts'
  35. set :images_dir, 'ui/img'
  36. set :js_dir, 'ui/js'
  37. set :build_dir, 'public'
  38. set :partials_dir, 'partials'
  39. set :plugins_dir, 'plugins'
  40. set :relative_links, true
  41. ###
  42. # Helpers
  43. ###
  44. # Automatic image dimensions on image_tag helper
  45. # This breaks CSS image sizing. Not good.
  46. #activate :automatic_image_sizes
  47. # Enable internationalization
  48. # MIRROR: put your language first in :langs, and update :mount_at_root
  49. activate :i18n, :templates_dir => 'pages', :data => 'locales',
  50. :langs => [:en, :es, :de, :fr, :it, :el], :mount_at_root => :en
  51. # Rouge syntax highlighting
  52. activate :syntax
  53. # Reload the browser automatically whenever files change
  54. configure :development do
  55. activate :livereload
  56. end
  57. require 'lib/devuan_helpers'
  58. helpers DevuanHelpers
  59. ## Build-specific configuration
  60. configure :build do
  61. # For example, change the Compass output style for deployment
  62. activate :minify_css
  63. # Minify Javascript on build
  64. activate :minify_javascript
  65. # Enable cache buster
  66. #activate :asset_hash
  67. # Use relative URLs for assets (breaks 404 CSS)
  68. #activate :relative_assets
  69. # Or use a different image path
  70. # set :http_prefix, "/Content/images/"
  71. end