Skip to content

circulosmeos/axolotl

Repository files navigation

axolotl

Minimum and efficient documentation system for sysadmins.

axoltl
dOcumentation
Libre, organized and
Tagged in pLain text

Document example

Usually, I create a document per day for common tasks, with name format YYYYMMDD.txt. But also separate files with tasks names can be created.

See http://wp.me/p2FmmK-7E.

You can also download the project and open this page on your browser in order to take a glimpse of a documentation text file as seen by an axolotl "properly instructed" editor: "axolotl doc.html"

Brief Description

Plain text is in most cases an enough documentation approach to any activity.

Only some minimum conventions are required to create metadata and visual clues, both visually enhanced by the text editor.

Date convention is YYYYMMDD (ISO 8601 Calendar dates in basic format).

Files are stored with the date of the day as name in format YYYYMMDD.txt

This way an efficient and quick documentation system is developed with these features:

  • quick and productive documentation of tasks
  • searchs by keywords
  • visual clues to documentation
  • a standard way for documentation interchange (common keywords, date and author conventions)

See http://wp.me/p2FmmK-7E for more details.

Installation

Files for both keybindings and color highlighting are presented, for these editors:

Description of the documentation system

Plain text (UTF-8) is (usually) enough for any documentation activity.

These marks, keybindings and color highlighting are used with the help of the text editor:

  • names between double brackets represent metadata tags or keywords (highlighted as green color): they can be used to quickly find related tasks or a particular job if at least one keyword is remembered even if the content is not.

    [[circulosmeos]] [[20141127]] [[ntfs]] [[incident]]

    The beginning of the metadata line is a heading specifying author (initials or alias) and date:

    [[circulosmeos]] [[20141127]]

    Alt+2 keybind automatically creates this author+date heading.

    Alt+6 inserts [[]] with the cursor between the brackets.

    F5 inserts actual date in ISO 8601 basic format.
    Next tags are keywords of that specific task.
    This way, it is possible to search by keywords in the documentation.
    In common environments, just 20 to 50 keywords at most are needed to tag every task in the whole documentation historic archive.

  • repeated characters are used as dividers between different parts of the document or to enclose certain blocks:

    • task divider: 79x '-' (cranberry color) (Alt+1)

        -------------------------------------------------------------------------------   
      
    • activity divider inside a task: 49x '.' (yellow color) (Alt+3)

        .................................................   
      
    • divider that opens and closes a literal block of text: 24x '+' (yellow color) (Alt+4)

        ++++++++++++++++++++++++   
        ++++++++++++++++++++++++   
      
  • paths or hints are indicated between < and > in order to mark external attached or related resources (yellow color) (Alt+8)

      <screen capture of my error.png>, <https://github.com/circulosmeos/axolotl>   
    
  • links between parts of the document can be indicated using this tag convention for the link (yellow):

      <#link text>   
    

and the destination of the link marked with the same text and a colon prefix (blue):

    :<#link text>   
  • visually striking sets for some common tasks, which are repeated (these can be easily found using Sublime's minimap):

    Alt+5 for one line of this:

      (((DOCUMENTATION_PENDING)))   
      (((DOCUMENTATION_PENDING)))   
      (((DOCUMENTATION_PENDING)))   
    

    Alt+7 for one line of this:

      --- PENDING ------ PENDING ------ PENDING ------ PENDING ---   
      --- PENDING ------ PENDING ------ PENDING ------ PENDING ---   
      --- PENDING ------ PENDING ------ PENDING ------ PENDING ---   
    

Statistics script

The script axolotl.statisctics.gource.pl allows for a quick extraction of statistics based on tags: among others, the percentage of time dedicated to each tag, based on the length of lines employed documenting to each of them.
See this post for more details.

$ ./axolotl.statisctics.gource.pl <directory containing axolotl text files>

The directory must contain files with name conform to YYYYMMDD.txt (ISO 8601 basic format).
The script generates statistics to stdout and a file called axolotl.gource.log which can be used as input to gource. This log divides tasks in a tree of years as main branches and months as secondary branches. Colours will identify the different tags.

Note that in order to correctly identify the tags that represent authors, these strings must be indicated in the script at this line, for example with:

my @AUTHORS=('author1', 'author2');

which will match axolotl tags [[author1]] and [[author2]]. Note that axolotl tags are case insensitive, so [[AUTHOR1]] would also match as a recognized author (the same as its lowercase counterpart).

An example of statistics output (to stdout) from the script:

Years comprised:        10
Days comprised:         1503 files, 1616 different days identified
Tasks found:            3591
Total number of lines:  297864
Different tags found:   1839

#tags %weighted %tasks lines  tag
1136  33.9%     30.7%  104858 anonymized_tag_1333
253   10.6%     6.8%    32779 anonymized_tag_234
99    8.2%      2.7%    25200 anonymized_tag_3
260   7.3%      7.0%    22442 anonymized_tag_22
159   6.8%      4.3%    21077 anonymized_tag_139
...

License

Distributed under GPL 3