Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
eddmash committed Feb 7, 2018
1 parent e3068ee commit 31c9dd2
Show file tree
Hide file tree
Showing 10 changed files with 83 additions and 18 deletions.
10 changes: 10 additions & 0 deletions docs/packages.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Javadoc
=======

.. toctree::
:maxdepth: 2

com/eddmash/validation/package-index
com/eddmash/validation/checks/package-index
com/eddmash/validation/renderer/package-index

30 changes: 30 additions & 0 deletions docs/source/com/eddmash/validation/ExampleInstrumentedTest.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
.. java:import:: android.content Context
.. java:import:: android.support.test InstrumentationRegistry
.. java:import:: android.support.test.runner AndroidJUnit4
.. java:import:: org.junit Test
.. java:import:: org.junit.runner RunWith
ExampleInstrumentedTest
=======================

.. java:package:: com.eddmash.validation
:noindex:

.. java:type:: @RunWith public class ExampleInstrumentedTest
Instrumentation test, which will execute on an Android device.

**See also:** \ `Testing documentation <http://d.android.com/tools/testing>`_\

Methods
-------
useAppContext
^^^^^^^^^^^^^

.. java:method:: @Test public void useAppContext() throws Exception
:outertype: ExampleInstrumentedTest

22 changes: 22 additions & 0 deletions docs/source/com/eddmash/validation/ExampleUnitTest.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
.. java:import:: org.junit Test
ExampleUnitTest
===============

.. java:package:: com.eddmash.validation
:noindex:

.. java:type:: public class ExampleUnitTest
Example local unit test, which will execute on the development machine (host).

**See also:** \ `Testing documentation <http://d.android.com/tools/testing>`_\

Methods
-------
addition_isCorrect
^^^^^^^^^^^^^^^^^^

.. java:method:: @Test public void addition_isCorrect() throws Exception
:outertype: ExampleUnitTest

2 changes: 1 addition & 1 deletion docs/source/com/eddmash/validation/checks/AllCheck.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ AllCheck

.. java:type:: public class AllCheck extends CheckCompound
Ensures all are validation checks are valid. \ **NOTE::**\ If the no checks are provided i.e. checkList is empty, validation will always pass for this check.
Ensures all are validation checks are valid. NOTE:: If the no checks are provided i.e. checkList is empty, validation will always pass for this check.

Constructors
------------
Expand Down
2 changes: 1 addition & 1 deletion docs/source/com/eddmash/validation/checks/AnyCheck.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ AnyCheck

.. java:type:: public class AnyCheck extends CheckCompound
Checks if at least one of the checks passed validation. \ **NOTE::**\ If the no checks are provided i.e. checkList is empty, validation will always fail.
Checks if at least one of the checks passed validation. NOTE:: If the no checks are provided i.e. checkList is empty, validation will always fail.

Constructors
------------
Expand Down
12 changes: 12 additions & 0 deletions docs/source/com/eddmash/validation/checks/CheckCompound.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,18 @@ clearError
.. java:method:: @Override public void clearError()
:outertype: CheckCompound

disableCheck
^^^^^^^^^^^^

.. java:method:: public void disableCheck(CheckInterface checkInterface)
:outertype: CheckCompound

disableChecks
^^^^^^^^^^^^^

.. java:method:: public void disableChecks(List<CheckInterface> validationChecks)
:outertype: CheckCompound

getErrorMsg
^^^^^^^^^^^

Expand Down
2 changes: 2 additions & 0 deletions docs/source/com/eddmash/validation/package-index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ com.eddmash.validation
.. toctree::
:maxdepth: 1

ExampleInstrumentedTest
ExampleUnitTest
ValidationListener
Validator
ValidatorInterface
Expand Down
8 changes: 3 additions & 5 deletions docs/source/com/eddmash/validation/renderer/ErrorRenderer.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
.. java:import:: android.app Activity
.. java:import:: android.graphics Color
.. java:import:: android.graphics Typeface
.. java:import:: android.support.v7.app AppCompatActivity
.. java:import:: android.view View
.. java:import:: android.view ViewGroup
Expand All @@ -14,8 +14,6 @@
.. java:import:: android.widget TextView
.. java:import:: com.eddmash.validation Validator
.. java:import:: com.eddmash.validation ValidatorInterface
.. java:import:: java.util List
Expand All @@ -37,7 +35,7 @@ Constructors
ErrorRenderer
^^^^^^^^^^^^^

.. java:constructor:: public ErrorRenderer(AppCompatActivity compatActivity, ValidatorInterface validatorInterface)
.. java:constructor:: public ErrorRenderer(Activity activity, ValidatorInterface validatorInterface)
:outertype: ErrorRenderer

Methods
Expand Down
4 changes: 2 additions & 2 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ using Maven.
<dependency>
<groupId>com.eddmash</groupId>
<artifactId>validation</artifactId>
<version>1.0.13</version>
<version>1.0.16</version>
<type>pom</type>
</dependency>

using Gradle.

::

compile 'com.eddmash:validation:1.0.13'
compile 'com.eddmash:validation:1.0.16'

Usage
*****
Expand Down
9 changes: 0 additions & 9 deletions validation.iml
Original file line number Diff line number Diff line change
Expand Up @@ -89,21 +89,12 @@
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/blame" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/bundles" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/check-manifest" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/classes" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/incremental" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/intermediate-jars" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/javaPrecompile" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/jniLibs" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/lint" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/manifests" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/res" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/rs" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/shaders" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/symbols" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/tmp" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/transforms" />
<excludeFolder url="file://$MODULE_DIR$/build/outputs" />
<excludeFolder url="file://$MODULE_DIR$/build/tmp" />
</content>
<orderEntry type="jdk" jdkName="Android API 25 Platform" jdkType="Android SDK" />
<orderEntry type="sourceFolder" forTests="false" />
Expand Down

0 comments on commit 31c9dd2

Please sign in to comment.