Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

easyintent/quickref-document

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Git Quick Reference Document

Repository of reference document (the "cheat sheet") for Git Quick Reference android application. It is written in XML to make it easier to edit and validate.

XML Structure

The quickref.xml document is pretty much self explainatory. RELAX NG schema describing valid XML document can be found in the quickref.rng. Here is sniplet of the XML document

<quickref>
    <item id="UUID for this category">
        <title>Title of this category</title>
        <summary>Short description of this category</summary>
        <list>
            <item id="UUID for this item">
                <title>Title of this item</title>
                <summary>Short description of this item</summary>
                <command>The git command to be written in the console</command>
            </item>
        </list>
    </item>
</quickref>
  • Top level tag is quickref
    • Contains zero or more item
    • Items directly under quickref tag are top level categories
  • Item must have an id with unique UUID value
    • Id is unique for entire document, it can be generated using uuidgen
    • Once id assigned to item, it must not changed
      • Otherwise it would break saved favorite references
  • Item must have title and summary for describing itself
  • Item must have either
    • command to be written in the console
    • list of zero or more reference items

Packaging to Application

Current application only accept reference document as SQLite database with full text search fts4. The XML document must be converted to SQLite database before included in the application. Use simple python script mkquickref.py in this repository for conversion.

Required Programs

Below programs are required for conversion

Consult distribution package manager to install these programs. If you are using Windows, it is easier to run under Cygwin or MSYS2. Running mkquickref.py directly is possible, but the script expect valid xml input, hence it rely on xmllint validation.

Converting XML to SQLite Database

After required programs installed, just run

$ make

If conversion done without error, quickref.sqlite will be generated on the same directory.

Go to android git quick reference application project, copy quickref.sqlite to the assets folder and increase database version number in the version.properties file. Build and run the application.

License

Licensed under same license as the android application.

About

The content of git quick reference application

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published