From 1f09a9e89daa938d5e9a777d2e2c1530f2e97a50 Mon Sep 17 00:00:00 2001
From: Sean Madsen <sean@seanmadsen.com>
Date: Sat, 21 Jan 2017 10:17:42 -0700
Subject: [PATCH] civix - converting "note", "caution" etc to admonitions

---
 docs/extensions/civix.md | 105 ++++++++++++++++++++-------------------
 docs/img/check.png       | Bin 1167 -> 0 bytes
 docs/img/danger.png      | Bin 1121 -> 0 bytes
 docs/img/info.png        | Bin 871 -> 0 bytes
 4 files changed, 53 insertions(+), 52 deletions(-)
 delete mode 100644 docs/img/check.png
 delete mode 100644 docs/img/danger.png
 delete mode 100644 docs/img/info.png

diff --git a/docs/extensions/civix.md b/docs/extensions/civix.md
index b46ce380..c18e508b 100644
--- a/docs/extensions/civix.md
+++ b/docs/extensions/civix.md
@@ -1,10 +1,10 @@
 # Civix
 
->> ![information](../img/info.png)
-Note: This page started
-[here in the wiki](https://wiki.civicrm.org/confluence/display/CRMDOC/Create+a+Module+Extension).
-We have not yet transferred all of the script snipets, so you may wish to
-peruse this page as well.
+!!! caution "Notice: page undergoing migration"
+    This page started
+    [here in the wiki](https://wiki.civicrm.org/confluence/display/CRMDOC/Create+a+Module+Extension).
+    We have not yet transferred all of the script snipets, so you may wish to
+    peruse this page as well.
 
 ## Introduction
 
@@ -122,11 +122,11 @@ This creates three files:
 The auto-generated code for the controller and view demonstrate a few
 basic operations, such as passing data from the controller to the view.
 
->> ![information](../img/info.png)
-After adding or modifying a route in the XML file, you must reset
-CiviCRMs "menu cache". Do this in a web browser by visiting
-"/civicrm/menu/rebuild?reset=1" or by running
-`drush cc civicrm` if using Drupal & Drush.
+!!! note
+    After adding or modifying a route in the XML file, you must reset
+    CiviCRMs "menu cache". Do this in a web browser by visiting
+    "/civicrm/menu/rebuild?reset=1" or by running
+    `drush cc civicrm` if using Drupal & Drush.
 
 **Edit In Place**
 
@@ -136,13 +136,13 @@ editing](/confluence/display/CRMDOC/In-Place+Field+Editing) API.
 
 ### Add a basic web form
 
->> ![danger](../img/danger.png)
-The form system is not well documented and may undergo significant
-revision after the CiviCRM 4.x series. In general, migrating basic pages
-will be easier than migrating basic forms, so you may want
-to consider building your data-input interface  using basic pages, the AJAX API,
-and the
-[in-place editing](/confluence/display/CRMDOC/In-Place+Field+Editing) API.
+!!! caution
+    The form system is not well documented and may undergo significant
+    revision after the CiviCRM 4.x series. In general, migrating basic pages
+    will be easier than migrating basic forms, so you may want
+    to consider building your data-input interface  using basic pages, the AJAX
+    API, and the
+    [in-place editing](/confluence/display/CRMDOC/In-Place+Field+Editing) API.
 
 CiviCRM uses a typical web-MVC architecture. To implement a basic web
 form, you must create a PHP controller class, create a Smarty template
@@ -174,10 +174,10 @@ This creates three files:
 The auto-generated code for the controller and view demonstrate a few
 basic operations, such as adding a <SELECT\> element to the form.
 
->> ![information](../img/info.png)
-After adding or modifying a route in the XML file, you must reset
-CiviCRMs "menu cache". This can be done in a web browser by visiting
-"/civicrm/menu/rebuild?reset=1"
+!!! note
+    After adding or modifying a route in the XML file, you must reset
+    CiviCRMs "menu cache". This can be done in a web browser by visiting
+    "/civicrm/menu/rebuild?reset=1"
 
 ### Add a database upgrader, installer and uninstaller
 
@@ -213,16 +213,16 @@ you can execute the upgrades through the web interface by visiting the
 "Manage Extensions" screen. This screen will display an alert with an
 action-link to perform the upgrades.
 
->> ![information](../img/info.png)
-The "upgrader" class is a wrapper for
-[hook\_civicrm\_upgrade](/confluence/display/CRMDOC43/Hook+Reference)
-which aims to be easy-to-use for developers with Drupal experience. If
-you need to organize the upgrade logic differently, then consider
-providing your own implementation of hook\_civicrm\_upgrade.
+!!! note
+    The "upgrader" class is a wrapper for
+    [hook\_civicrm\_upgrade](/confluence/display/CRMDOC43/Hook+Reference)
+    which aims to be easy-to-use for developers with Drupal experience. If
+    you need to organize the upgrade logic differently, then consider
+    providing your own implementation of hook\_civicrm\_upgrade.
 
->> ![danger](../img/danger.png)
-Only use the upgrade system to manage new SQL
-tables. Do not manipulate core schema.
+!!! caution
+    Only use the upgrade system to manage new SQL
+    tables. Do not manipulate core schema.
 
 If you need to create triggers on core SQL tables, use
 [hook\_civicrm\_triggerInfo](http://wiki.civicrm.org/confluence/display/CRMDOC/Hook+Reference).
@@ -272,8 +272,9 @@ This is the simplest scenario.
 Start by creating a custom fields using the web interface and then export
 them for use with the extension:
 
->> ![information](../img/info.png)
-Before you begin verify that civix is connected to your instance of CiviCRM by running `civix civicrm:ping`.
+!!! note
+    Before you begin verify that civix is connected to your instance of
+    fCiviCRM by running `civix civicrm:ping`.
 
 -   On your development instance of CiviCRM, create the new custom
     fields using the web interface. Note the unique ID of the custom data
@@ -370,14 +371,14 @@ function myextension_civicrm_post($op, $objectName, $objectId, &$objectRef) {
 }
 ```
 
->> ![information](../img/info.png)
-When you first created the skeletal project, several hook functions were
-auto-generated in `myextension.php`. These functions are usually about
-one line long – they simply delegate the work to another function. For
-example `myextension\_civicrm\_config()` delegates work to
-`\_myextension\_civix\_civicrm\_config()`. You should feel free to add
-more code to `myextension\_civicrm\_config()`, but you should preserve
-the call to `\_myextension\_civix\_civicrm\_config()`. <!-- fixme! why?? -->
+!!! note
+    When you first created the skeletal project, several hook functions were
+    auto-generated in `myextension.php`. These functions are usually about
+    one line long – they simply delegate the work to another function. For
+    example `myextension\_civicrm\_config()` delegates work to
+    `\_myextension\_civix\_civicrm\_config()`. You should feel free to add
+    more code to `myextension\_civicrm\_config()`, but you should preserve
+    the call to `\_myextension\_civix\_civicrm\_config()`. <!-- fixme! why?? -->
 
 ### Add a resource file
 
@@ -495,11 +496,11 @@ Get started by accessing the `civix` help:
 civix help generate:api
 ```
 
->> ![information](../img/info.png)
-Action names must be lowercase. The javascript helpers `CRM.api()` and
-`CRM.api3()` force actions to be lowercase. This issues does not present
-itself in the API Explorer or when the api action is called via PHP,
-REST, or SMARTY.
+!!! note
+    Action names must be lowercase. The javascript helpers `CRM.api()` and
+    `CRM.api3()` force actions to be lowercase. This issues does not present
+    itself in the API Explorer or when the api action is called via PHP,
+    REST, or SMARTY.
 
 You can make your API code with a command in this pattern:
 
@@ -522,8 +523,8 @@ For use with CiviCRM 4.3, you can also add the "–schedule" option (e.g.
 
 ### Add a new entity
 
->> ![danger](../img/danger.png)
-This functionality is considered "experimental and incomplete".
+!!! caution
+    This functionality is considered "experimental and incomplete".
 
 You may have a need to create a new entity that does not exist in
 CiviCRM. For this, you can use the command `civix generate:entity`
@@ -578,9 +579,9 @@ long as you follow a few basic conventions.
 
 The following steps will create and run a test in your extension.
 
->> ![information](../img/info.png)
-Before preparing unit-tests with extensions, you must first
-[configure you personal testing sandbox](/confluence/display/CRM/Setting+up+your+personal+testing+sandbox+HOWTO) and enable your extension on the sandbox.
+!!! note
+    Before preparing unit-tests with extensions, you must first
+    [configure you personal testing sandbox](/confluence/display/CRM/Setting+up+your+personal+testing+sandbox+HOWTO) and enable your extension on the sandbox.
 
 Explore the full options with:
 
@@ -614,8 +615,8 @@ how to write a test class:
 -   Review the example code in
     [org.civicrm.exampletests](https://github.com/totten/org.civicrm.exampletests)
 
->> ![danger](../img/danger.png)
-The following instructions are deprecated. Updated instructions coming soon.
+!!! caution
+    The following instructions are deprecated. Updated instructions coming soon.
 
 ```bash
 # Check if civix can connect to the civi api
diff --git a/docs/img/check.png b/docs/img/check.png
deleted file mode 100644
index 09335f512b0f25297089d982f7c96dd13be3d73d..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001

literal 1167
zcmV;A1aSL_P)<h;3K|Lk000e1NJLTq001BW001Be1^@s6b9#F800004b3#c}2nYxW
zd<bNS00009a7bBm000XU000XU0RWnu7ytkSF-b&0R9J=Omt9O;MHI*XGxzR=T}msE
zwiZ%KVhX8HAlg0{n;LyG`czD+2~s~Enh?X6i4RRo4DksyO+~1tMx$a%<4035#@J{o
zjfoF!SxQ@E3tD)wT@ql4yDU3<=Nuo{UG{Q!VG&GBJWuzY`Op0RGjn!!F7SU3vF;uW
zQ8(OC3LBLysR#fB$vG*_fdApQ|NPesR9|b`XOK9~%twTjdopQ=F)0L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?EPdKK**N@pGC})rFS}nRT<!;y5H85QbPX
zArsw+!Ep^H27$&U%QJ@deK30Tba<_?*Y|D65LFjmtYH?11h^7F@&Yppa6qu}%UHw5
hw;;f)4fCIhzX2*+%|g;V>yrQg002ovPDHLkV1nG~5I6t;

diff --git a/docs/img/danger.png b/docs/img/danger.png
deleted file mode 100644
index 84c54be0bf8aa30fae0c75c2cc9ab53084d7f456..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001

literal 1121
zcmV-n1fKheP)<h;3K|Lk000e1NJLTq001BW001Be1^@s6b9#F800004b3#c}2nYxW
zd<bNS00009a7bBm000XU000XU0RWnu7ytkS14%?dR9J<rS4(djRTTct8BaX1oy4`B
z*lkfF(ozHzC5kGNj>036D5$XDp-O<=O&8rFBo;vk5OkBO8-7DIafDKYRH>Cf%C1BO
zbrF*#p$SM8&`5<wjysOydsx^GevCc0Nxt2^_ssded+&MNA!y=uI^C;8-Xx-F5g8%o
zVWm`0b$OG3H6qF>V9@|>Ow7$~>i8u;gInqJ(*(@0$a`S6H1$3LFpqM1_VoPxuX_@3
z=i<dsu~4|gz=r?~P2y(kh{)F{7C*PIU3;W0;HUHFPwa?%$H23DByPrv0Pon2v+65g
zDV-h@qVE|<91wX0A{%9qGn3iua$5n_o&R{?<aHv1$gV$$T>;CPOn3|US@+n(M?-kx
z)gurA?)`8NTYq|9u@_dvb;oNl!L`{f;458n!!j`R)*yoMAgn|XLvIhlu(ad!d9ti8
zYXb%<saB14EhO!J1nLL_-2n{P1G=9Bz(-4&%<)|T1k6A))vSIC@zHq8d}8zvtVB>(
zK!8MM0D$hCJJ(k-&A+sY3=y7ucMv^85zpn#-}6}i_76bB*OgMLAeNQlZPR>1x5D)u
zi!_jb>imn(vJZF1y+aZ74ttAh1~Z2Y*F75`qG_!U3_|kdRKwib{hb!O)GJBk*Yi+i
z|5Fg6X%>+Y9RabiIIL)wubmYQA~qJ&aS0I_VPYQkGc+S6lBfH%oB}{{ydQy3z}Jq6
zhPke#ws$x=0K;TIvt1ZL1IbDMv{XcWzFtFzLx?>W^;|oaGV#=5@14d^M$w(@_7xET
zunC|wu>pW8LDdeIKIm)jnFy(=6xP03Z=04Z@{kEwYv&{SOcaqLq4p#`=s6lf^h9sl
zbtQ6_i74l_Xml}BFLu7i<~rbo<V#6#!28`pL^)Q#qSs>LR2*Fqv!ion0#oOF5B8c!
zoNC+M7Xt=xLn?2$hKPxc`sZ@T7^wF(atQZtZ#2v)r3%}n(oL?uUgxzu?GfT}1H?Qx
zwXl${q+z){3!tH{=B}?{>mPUD<XaD1{BnK0VNNMkQp}fux);$>I(>zRKCX=m<uV?)
zE_O6JTPFmF5VI_VjQ_j60JFB^d;(PJ005vX9R8w|&%X}llK>Dh41~hreUW=Xl*$!N
zbN5Bma63zx%yAM~0+D{<e+($#Z&NAzg>3e2ZLXmd+m5qZ7C8fvjn>ciPi_FO)swdf
z0D#GCc3FsQ04oPYE=uK0rR)jEX(@W1&B%6~RdL;M09VkI9ghR0R7rr@qG?Vv@4N=z
zpVMkw%qWrfnOUnbD5VO-Jg1m1PhP$HTPIsz0X5vZaG}R=-Lq2tJ!hg}MbrmWx|$NX
nTkR{0#qI5zQws}u9l!qp4yaoAZ}dYt00000NkvXXu0mjfi*5hB

diff --git a/docs/img/info.png b/docs/img/info.png
deleted file mode 100644
index 87a4d2681f2bf86086c089a158b506922cd030e7..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001

literal 871
zcmV-t1DO1YP)<h;3K|Lk000e1NJLTq001BW001Be1^@s6b9#F800004b3#c}2nYxW
zd<bNS00009a7bBm000XU000XU0RWnu7ytkR2}wjjR9J<@mrqDkQ543%bKV^nN}yp1
z1yR<bg$t`u+P0b6L=YrNEkh(NO$rR9VM+;tP|2`A%N7Mj5ws9pxD4b~ATCl$5n7lc
zNQA+7-#IOu8K;@j`()B@b^o3F{kZSmd+q~vSmZh|KB+~)iakw)m?%XVQU#zi)x8Yx
zS7G%@FzOYX;Y2kh3j)w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