diff --git a/Rakefile b/Rakefile
index fe4a4faa1b0036408381296becfe600a4b1157fd..ff2e121e7ec7ac3311fab23ff7e17b6ebd728ac2 100644
--- a/Rakefile
+++ b/Rakefile
@@ -187,6 +187,19 @@ class JsDuckRunner
]
end
+ def add_doctest
+ @options += [
+ "--title", "Sencha Docs - Ext JS 4.0",
+ "--footer", "Ext JS 4.0 Docs - Generated with JSDuck VERSION. Terms of Use",
+ "--ignore-global",
+ "--images", "#{OUT_DIR}/docs/doc-resources",
+ "--local-storage-db", "ext-4",
+ "--output", "#{OUT_DIR}",
+ "#{EXT_BUILD}/src",
+ "--doctests"
+ ]
+ end
+
def add_phone_redirect
@options += ["--body-html", <<-EOHTML]
-
+
+
+
diff --git a/template/resources/sass/_doc_tests.scss b/template/resources/sass/_doc_tests.scss
new file mode 100644
index 0000000000000000000000000000000000000000..d417920bb587aa4087839307173c04a00e7d1df3
--- /dev/null
+++ b/template/resources/sass/_doc_tests.scss
@@ -0,0 +1,24 @@
+// Styles for doc tests
+.doc-test-preview {
+ display: none;
+}
+
+.doc-test-ready {
+ font-weight: bold;
+ color: #333;
+}
+
+.doc-test-error {
+ font-weight: bold;
+ color: orange;
+}
+
+.doc-test-failure {
+ font-weight: bold;
+ color: red;
+}
+
+.doc-test-success {
+ font-weight: bold;
+ color: green;
+}
\ No newline at end of file
diff --git a/template/resources/sass/viewport.scss b/template/resources/sass/viewport.scss
index b47f9d82a8c36e50868944c199206e82477545a3..43787922d32448efcabf4f8d51e59634baa72705 100644
--- a/template/resources/sass/viewport.scss
+++ b/template/resources/sass/viewport.scss
@@ -147,3 +147,6 @@ p.screenshot {
// Welcome Pages
@import "extjs_welcome";
@import "touch_welcome";
+
+// Doc Tests
+@import "doc_tests";