Showing the changes to assets/javascripts (2 of 7 files). Show all
Unified · Split
| @@ -1,8 +1,10 @@ | ||
| 1 | 1 | app.config = |
| 2 | + db_filename: 'db.json' | |
| 2 | 3 | default_docs: <%= App.default_docs.to_json %> |
| 3 | 4 | docs_host: '<%= App.docs_host %>' |
| 4 | 5 | env: '<%= App.environment %>' |
| 5 | 6 | history_cache_size: 10 |
| 7 | + index_filename: 'index.json' | |
| 6 | 8 | index_path: '/<%= App.docs_prefix %>' |
| 7 | 9 | max_results: 50 |
| 8 | 10 | production_host: 'devdocs.io' |
| @@ -1,5 +1,5 @@ | ||
| 1 | 1 | class app.models.Doc extends app.Model |
| 2 | − # Attributes: name, slug, type, release, index_path, db_path, db_size, mtime, links | |
| 2 | + # Attributes: name, slug, type, release, db_size, mtime, links | |
| 3 | 3 | |
| 4 | 4 | constructor: -> |
| 5 | 5 | super |
| @@ -29,10 +29,10 @@ class app.models.Doc extends app.Model · 23 unmodified lines | ||
| 29 | 29 | "#{app.config.docs_host}#{@fullPath(path)}?#{@mtime}" |
| 30 | 30 | |
| 31 | 31 | dbUrl: -> |
| 32 | − "#{app.config.docs_host}/#{@db_path}?#{@mtime}" | |
| 32 | + "#{app.config.docs_host}/#{@slug}/#{app.config.db_filename}?#{@mtime}" | |
| 33 | 33 | |
| 34 | 34 | indexUrl: -> |
| 35 | − "#{app.indexHost()}/#{@index_path}?#{@mtime}" | |
| 35 | + "#{app.indexHost()}/#{@slug}/#{app.config.index_filename}?#{@mtime}" | |
| 36 | 36 | |
| 37 | 37 | toEntry: -> |
| 38 | 38 | @entry ||= new app.models.Entry |