You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1f268d5
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: astropy/extern/README.rst
+34-6Lines changed: 34 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,11 +23,23 @@ In particular, this currently includes for Python:
23
23
24
24
And for JavaScript:
25
25
26
-
- jQuery_: This is used currently for the browsed-based table viewer feature.
26
+
- jQuery_: This is used currently for the browser-based table viewer feature.
27
27
28
28
- DataTables_: This is a plug-in for jQuery used also for the browser-based
29
29
table viewer.
30
30
31
+
Notes for developers
32
+
--------------------
33
+
34
+
35
+
jQuery/DataTables
36
+
^^^^^^^^^^^^^^^^^
37
+
the minified files are the ones that are used in the table viewer feature, but
38
+
the non-minified versions are also present in the ``js/`` sub-directory for
39
+
packaging reasons. These files must also be distributed, to provide the source
40
+
files from which the minified ones can be compiled. This is a requirement for
41
+
Linux distributions such as Debian and Fedora.
42
+
31
43
32
44
Notes for third-party packagers
33
45
-------------------------------
@@ -55,7 +67,8 @@ version altogether. To do this, edit the ``_SIX_SEARCH_PATH`` list in
55
67
_SIX_SEARCH_PATH = ['six']
56
68
57
69
No other imports in Astropy need to be updated. Imports from
58
-
``astropy.extern.six`` are automatically updated to point to the system version of the module.
70
+
``astropy.extern.six`` are automatically updated to point to the system version
71
+
of the module.
59
72
60
73
61
74
jQuery/DataTables
@@ -65,10 +78,25 @@ Packagers may either use system copies of these JavaScript modules, or require
65
78
use of online versions (perhaps via URLs of cloud-hosted versions of these
66
79
modules).
67
80
68
-
To change the default paths for these files edit the ``astropy.table.jsviewer``
69
-
module in Astropy to change the default values for the ``jquery_url`` and/or
70
-
``datatables_url`` options. Use a ``file://`` URL for locally-installed
71
-
versions of these files.
81
+
It is possible to change the default urls for the remote versions of these
82
+
files by using the Astropy
83
+
`Configuration system <http://docs.astropy.org/en/stable/config/>`_. The default
84
+
configuration file (``$HOME/.astropy/config``) contains a commented section
85
+
``[table.jsviewer]`` with two items for jQuery and DataTables. It is also
86
+
possible to display the default value and modify it by importing the
0 commit comments