tips



Contents
  1. How to customize css and js files
    1. Modify juli.css and juli.js in your JULI_REPO
      1. Specify another css and/or js file at template
      2. TODO
        1. bash completion for je(1)
          1. cron setup at web-server to update contents
            1. Why juli-generated document group permission is disappeared?
              1. Behavior
                1. Reason
                  1. How to fix

                  Recent Updates
                  tips
                  2013/10/19
                  juli formatting
                  2012/10/20
                  template(macro)
                  2012/10/20
                  template
                  2012/10/20
                  takahashi_method
                  2012/10/20
                  index
                  2012/10/20
                  i18n
                  2012/10/20
                  wikipedia(macro)
                  2012/06/05
                  jmap(macro)
                  2012/05/23
                  photo(macro)
                  2012/05/15
                  tag(macro)
                  2012/05/15
                  tutorial
                  2012/05/15
                  juli(1)
                  2012/05/15
                  je(1)
                  2012/05/15
                  juli_tb.rb(1)
                  2012/04/12
                  slidy
                  2012/03/23
                  tutorial/minutes_20110117
                  2011/12/08
                  release-note
                  2011/12/08
                  computing
                  2011/12/08


                  index > tips

                  This page contains several tips.

                  (Please add your tips here since this is wiki. In order to do that, please contact me to grant you to write access to this git repository. Currently, juli code and this document are in the same repository because it is very small for now.)

                  [-] 1. How to customize css and js files

                  Original juli.css and juli.js are copied from template library to output_top when generating HTML at first time.

                  You can change by the following sections.

                  [-] 1.1. Modify juli.css and juli.js in your JULI_REPO

                  Create your customized juli.css and juli.js in your JULI_REPO. These files are sync-ed to output_top by rsync(1) in juli(1) execution time so that these files will be used for CSS and javascript execution.

                  [-] 1.2. Specify another css and/or js file at template

                  You can put your own css and js in JULI_REPO and specify it at template as follows (file names 'mine.css' and 'mine.js' below are just example):

                  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
                  <html>
                  <head>
                      :
                      :
                    <script src="mine.js" type="text/javascript"></script>
                    <link href="mine.css" rel="stylesheet" type="text/css" />

                  [-] 2. TODO

                  Just run:

                  $ je TODO

                  Then, you can:

                  1. add, modify, delete, re-order your TODOs ;-) I'm serious!! Using your favorite editor enables you to do this. This is juli's feature.
                  2. see your TODOs on browser.
                  3. see your TODOs via internet if you publish to webserver (see tutorial).
                  4. share your TODOs (e.g. between desktop and note-PC) by git.

                  [-] 3. bash completion for je(1)

                  I added the utility 'lib/juli/template/je-bash-complete'. Actually, this is not a ruby library, but bash script for je(1) wikiname completion. How to setup and use are described in this file. Enjoy!

                  [-] 4. cron setup at web-server to update contents

                  sample/update_public_juli.rb is an example implementation to update juli contents at web-server. Please see the description in the source.

                  [-] 5. Why juli-generated document group permission is disappeared?

                  [-] 5.1. Behavior

                  (2013/10/19) I set juli-generated document permission for web server as follows:

                  $ ls -l /var/www-sub/wtech.dip.jp/
                  drwxr-s--- 14 MY_NAME www-data 12288 Oct 19 15:30 juli/

                  However, this setting is dropped as follows:

                  drwxr-x--- 14 MY_NAME MY_GROUP 12288 Oct 19 15:30 juli/

                  [-] 5.2. Reason

                  The above behavior happened because of calling rsync(1) from juli bulk_mode. Rsync(1) copies files other than juli text from JULI_REPO to output_top so that directory permission is also synchronized...orz

                  [-] 5.3. How to fix

                  It is fixed by setting same group and sticky-bit at JULI_REPO.


                  index > tips


                  Get jj_juli at SourceForge.net. Fast, secure and Free Open Source software downloads | Generated by juli 1.17.04