Skip to content

Commit

Permalink
Update DotPeek programmatic interface code
Browse files Browse the repository at this point in the history
  • Loading branch information
Thibault Gouala committed Mar 13, 2018
1 parent dc72be2 commit 0be818f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions sphinx/source/advanced/continuous-integration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ And then to provide this listener to .Peek :

.. code-block:: c#
DotPeek.Instance.Listener = new DotPeekListener();
DotPeek.Listener = new DotPeekListener();
Below is a whole functional usage example :

Expand All @@ -46,7 +46,7 @@ Below is a whole functional usage example :
{
static DotPeekInitializer()
{
DotPeek.Instance.Listener = new DotPeekListener();
DotPeek.Listener = new DotPeekListener();
}
private class DotPeekListener : IDotPeekListener
Expand Down Expand Up @@ -96,7 +96,7 @@ The implementation of the static function being called in Unity :
{
static void PerformBuild ()
{
DotPeek.Instance.CustomVCS = new DotPeekVCS();
DotPeek.CustomVCS = new DotPeekVCS();
string[] scenes = { "Assets/MyScene.unity" };
BuildPipeline.BuildPlayer(scenes, ...);
Expand Down
14 changes: 7 additions & 7 deletions sphinx/source/advanced/programmatic-control.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,20 @@ To do so :

.. code-block:: c#
DotPeek.Instance.Storage.PersonalOptions.BuildReportPath = "../DotPeekReports";
DotPeek.Instance.Storage.PersonalOptions.AutomaticallyShowReportAfterBuild = false;
DotPeek.Storage.PersonalOptions.BuildReportPath = "../DotPeekReports";
DotPeek.Storage.PersonalOptions.AutomaticallyShowReportAfterBuild = false;
3. Access and modify your .Peek team-shared options :

.. code-block:: c#
DotPeek.Instance.Storage.TeamOptions.TrackVCSVersion = false;
DotPeek.Storage.TeamOptions.TrackVCSVersion = false;
4. Save your changes to ensure .Peek can access updated settings :

.. code-block:: c#
DotPeek.Instance.Storage.Save();
DotPeek.Storage.Save();
.. warning:: Saving step cannot be ommited. Indeed, it will ensure settings that were modified are written to the disk and
are accessible to the whole .Peek application.
Expand Down Expand Up @@ -75,11 +75,11 @@ behaviour by :

.. code-block:: c#
DotPeek.Instance.Storage.TeamOptions.PrebuildCallbackOrder = int.MinValue + 1;
DotPeek.Instance.Storage.TeamOptions.PostbuildCallbackOrder = int.MaxValue - 1;
DotPeek.Storage.TeamOptions.PrebuildCallbackOrder = int.MinValue + 1;
DotPeek.Storage.TeamOptions.PostbuildCallbackOrder = int.MaxValue - 1;
4. Saving your changes to ensure .Peek can access updated settings :

.. code-block:: c#
DotPeek.Instance.Storage.Save();
DotPeek.Storage.Save();

0 comments on commit 0be818f

Please sign in to comment.