From 6a3d876f7eecfe53483594aa2b80dbed06e8b376 Mon Sep 17 00:00:00 2001 From: Felix Krause Date: Thu, 27 Oct 2016 18:57:32 +0200 Subject: [PATCH] Generate testing.html with rst * use same html template as other pages * Also improved .gitignore --- .gitignore | 2 ++ config.nims | 3 +- doc/style.css | 5 +++ doc/{testing.html => testing.txt} | 57 +++++++++---------------------- 4 files changed, 26 insertions(+), 41 deletions(-) rename doc/{testing.html => testing.txt} (75%) diff --git a/.gitignore b/.gitignore index 704e960..7629330 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ test/tlex test/tdom test/tserialization test/tjson +test/tparser test/yamlTestSuite test/tquickstart test/*.exe @@ -22,3 +23,4 @@ doc/rstPreproc doc/tmp.rst doc/**/code yaml-dev-kit +nimsuggest.log diff --git a/config.nims b/config.nims index 57572d2..5e34367 100644 --- a/config.nims +++ b/config.nims @@ -48,7 +48,8 @@ task documentation, "Generate documentation": exec r"nim rst2html -o:../docout/api.html tmp.rst" exec r"./rstPreproc -o:tmp.rst serialization.txt" exec r"nim rst2html -o:../docout/serialization.html tmp.rst" - exec "cp docutils.css style.css testing.html processing.svg ../docout" + exec r"nim rst2html -o:../docout/testing.html testing.txt" + exec "cp docutils.css style.css processing.svg ../docout" exec r"nim doc2 -o:docout/yaml.html --docSeeSrcUrl:https://github.com/flyx/NimYAML/blob/`git log -n 1 --format=%H` yaml" for file in listFiles("yaml"): let packageName = file[5..^5] diff --git a/doc/style.css b/doc/style.css index 3be9e52..ec7d977 100644 --- a/doc/style.css +++ b/doc/style.css @@ -108,6 +108,11 @@ dt a:before { visibility: hidden; } +#testingground { + margin-left: -50px; + margin-right: -50px; +} + #testingground textarea { width: 100%; height: 100%; diff --git a/doc/testing.html b/doc/testing.txt similarity index 75% rename from doc/testing.html rename to doc/testing.txt index 99ac2b8..a6a3b01 100644 --- a/doc/testing.html +++ b/doc/testing.txt @@ -1,32 +1,11 @@ - - - - - NimYAML - Testing Ground +============== +Testing Ground +============== - - - - - - - -
- NimYAML - Home - Testing Ground - Docs: - Overview - Serialization - Module yaml -
-
-
-

Testing Ground

-

Input is being processed on the fly by a friendly web service and - Output is updated as you type.

-
-
+Input is being processed on the fly by a friendly web service and output is +updated as you type. + +.. raw:: html
@@ -39,16 +18,16 @@
+ - test some + - {YAML: here} + - foo: bar + ? [1, 2, 3] + : !!str "string" + - + ? &a anchor + : !!bool yes + ? reference to anchor + : *a
@@ -139,5 +118,3 @@ } parse(); - -