je(1)



  1. NAME
    1. SYNOPSIS
      1. DESCRIPTION
        1. Environment
          1. Setup
            1. Example
            2. PREREQUSITES
              1. FILES

                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 > je(1)

                1. NAME

                je - edit wikipage and run juli(1)

                2. SYNOPSIS

                je wikiname

                3. DESCRIPTION

                je(1) is a wrapper of editor and juli(1), to edit wikipage and run juli(1). je(1) does the followings:

                1. invoke the editor to edit 'wikiname.txt'.
                2. commit to git repository.
                3. run juli(1) to generate/update HTML.
                4. if the wikiname is new, do the followings. Those are time consuming tasks so that they will be done in background. The result will be logged in /tmp/juli_je.log:
                  1. re-generate all of pages since they may contain the new wikiname.
                  2. generate sitemap.
                5. update 'recent_update' entry.

                3.1. Environment

                Following environment variables are required to be set:

                JULI_REPO:juli-repo directory, must be a git repository also.
                EDITOR:editor
                JULI:for debug (only for developer)

                3.2. Setup

                1. install git(1).
                2. create git repository
                  $ JULI_REPO=...           # set your favorite directory like ~/juli_repo
                  $ cd $JULI_REPO
                  $ git init
                3. It is recommended to set JULI_REPO at ~/.bashrc etc. also.
                4. create juli repository also
                  $ juli init
                  • NOTE: It depends whether to add .juli/ subdirectory, which is created here, in git repository or not. If .juli/* is totally the same as other sites, you can. Otherwise you can not.
                  • If you decide to include .juli/* in repository, do the followings since je(1) has not been integrated with git yet:
                    $ git add .juli/
                    $ git commit -v
                5. From any directory without worry about current working directory, just run followings to make a memo for your idea:
                  $ je Eureka!
                6. After saving the file by your editor, git asks to enter commit message as follows:
                  # Please enter the commit message for your changes. Lines starting
                  # with '#' will be ignored, and an empty message aborts the commit.
                  #   :
                  diff --git ...
                  (you can see your change of this text here)
                7. You can ignore to enter any comment by just exiting the editor. Then, git aborts continued process(record your change) but juli generates HTML.
                8. Or it would be better to enter comment so you can track what you did on this change.
                9. Anyway, you can see the generated HTML file by any browser like this:
                  $ firefox file:///...

                3.3. Example

                $ je HelloWorld                             # edit HelloWorld wikipage
                $ je 'hello world'                          # space can be included
                $ je ウーロン茶                             # UTF-8 is ok (in Linux)
                $ JULI_REPO=... je wikiname                 # change juli-repo at this time
                $ JULI=DEV_DIR/bin/juli je 'hello world'    # for debug

                4. PREREQUSITES

                1. git(1) is required.
                2. $JULI_REPO must be a git repository also.

                5. FILES

                /tmp/juli_je.log:log file for je(1) time consuming tasks(e.g. gen -f)


                index > je(1)


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