config.js.erb 711 B

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