config.js.erb 760 B

1234567891011121314151617181920
  1. app.config = {
  2. db_filename: 'db.json',
  3. default_docs: <%= App.default_docs.to_json %>,
  4. docs_aliases: <%= App.docs_aliases.to_json %>,
  5. docs_origin: '<%= App.docs_origin %>',
  6. env: '<%= App.environment %>',
  7. history_cache_size: 10,
  8. index_filename: 'index.json',
  9. index_path: '/<%= App.docs_prefix %>',
  10. max_results: 50,
  11. production_host: 'devdocs.io',
  12. search_param: 'q',
  13. sentry_dsn: '<%= App.sentry_dsn %>',
  14. version: <%= Time.now.to_i %>,
  15. release: <%= Time.now.utc.httpdate.to_json %>,
  16. mathml_stylesheet: '/mathml.css',
  17. favicon_spritesheet: '<%= image_path('sprites/docs.png') %>',
  18. service_worker_path: '/service-worker.js',
  19. service_worker_enabled: <%= App.environment == :production || ENV['ENABLE_SERVICE_WORKER'] == 'true' %>,
  20. }