1. Takafumi Arakaki
  2. neorg

Commits

Takafumi Arakaki  committed 5d620f8

adapted setup.py: added jslib as data file etc.

  • Participants
  • Parent commits 5514650
  • Branches default

Comments (0)

Files changed (2)

File neorg/static/neorg.js

View file
 });
 
 
-var arrowKeyArray = ['left', 'right', 'up', 'down']
+var arrowKeyArray = ['left', 'right', 'up', 'down'];
 
 var neorgCBSetting = {
     title: function() {

File setup.py

View file
 
 data_list = ['schema.sql', 'templates/*.html'] + [
     os.path.join('%s' % d, '*.%s' % e)
-    for e in ['css', 'html', 'ico', 'inv', 'js', 'png', 'txt']
+    for e in ['css', 'html', 'ico', 'inv', 'js', 'png', 'gif', 'txt']
     for d in ['static', 'static/help',
-              'static/help/_source', 'static/help/_static',]]
+              'static/help/_source', 'static/help/_static',
+              'static/jslib/',
+              'static/jslib/colorbox',
+              'static/jslib/colorbox/images',
+              ]]
 
 
 def mkdir(path):
                      % help_source)
             return False
 
-    sub_commands = [  # run update_help before any other sub_commands
+    sub_commands = [  # run update_help/js before any other sub_commands
         ('update_help', has_help_doc),
+        ('update_js', None),  # always call update_js before build
         ] + build.sub_commands