From f902d685c398176231eaf2c075d90dd5b00a44a8 Mon Sep 17 00:00:00 2001 From: Seth Ladd Date: Wed, 22 Apr 2015 21:05:31 -0700 Subject: [PATCH 1/2] readable writeable is displayed the same on the property pages --- lib/resources.g.dart | 4 +++- lib/src/html_generator.dart | 3 ++- lib/templates/_property.html | 6 +----- lib/templates/_readable_writable.html | 5 +++++ lib/templates/property.html | 7 ++----- lib/templates/top_level_property.html | 7 ++----- 6 files changed, 15 insertions(+), 17 deletions(-) create mode 100644 lib/templates/_readable_writable.html diff --git a/lib/resources.g.dart b/lib/resources.g.dart index eaab2561b2..11414d86d9 100644 --- a/lib/resources.g.dart +++ b/lib/resources.g.dart @@ -1,4 +1,6 @@ -// WARNING: This file is auto-generated.library resources; +// WARNING: This file is auto-generated. + +library resources; const List RESOURCE_NAMES = const [ 'package:dartdoc/resources/prettify.css', diff --git a/lib/src/html_generator.dart b/lib/src/html_generator.dart index 4988bb90f4..4486e6a75c 100644 --- a/lib/src/html_generator.dart +++ b/lib/src/html_generator.dart @@ -65,7 +65,8 @@ class Templates { 'footer', 'head', 'property', - 'styles_and_scripts' + 'styles_and_scripts', + 'readable_writable' ]; for (var partial in partials) { _partialTemplates[partial] = await _loadPartial('_$partial.html'); diff --git a/lib/templates/_property.html b/lib/templates/_property.html index 5e3e48789e..0b862fa1a7 100644 --- a/lib/templates/_property.html +++ b/lib/templates/_property.html @@ -3,10 +3,6 @@ {{{ linkedReturnType }}}
-
- {{#readOnly}}read-only{{/readOnly}} - {{#writeOnly}}write-only{{/writeOnly}} - {{#readWrite}}read/write{{/readWrite}} -
+ {{>readable_writable}} {{#oneLiner}}{{ documentation }}{{/oneLiner}}
\ No newline at end of file diff --git a/lib/templates/_readable_writable.html b/lib/templates/_readable_writable.html new file mode 100644 index 0000000000..f6922c91c1 --- /dev/null +++ b/lib/templates/_readable_writable.html @@ -0,0 +1,5 @@ +
+ {{#readOnly}}read-only{{/readOnly}} + {{#writeOnly}}write-only{{/writeOnly}} + {{#readWrite}}read/write{{/readWrite}} +
\ No newline at end of file diff --git a/lib/templates/property.html b/lib/templates/property.html index 22546ba837..94f37d2f00 100644 --- a/lib/templates/property.html +++ b/lib/templates/property.html @@ -4,14 +4,11 @@ {{#property}} {{{ linkedReturnType }}} {{ name }} + + {{>readable_writable}} {{/property}} -
- read - write -
-
{{#markdown}} diff --git a/lib/templates/top_level_property.html b/lib/templates/top_level_property.html index 22546ba837..94f37d2f00 100644 --- a/lib/templates/top_level_property.html +++ b/lib/templates/top_level_property.html @@ -4,14 +4,11 @@ {{#property}} {{{ linkedReturnType }}} {{ name }} + + {{>readable_writable}} {{/property}}
-
- read - write -
-
{{#markdown}} From a42f1d8c5035708de923394d3ca961bdda4126ab Mon Sep 17 00:00:00 2001 From: Seth Ladd Date: Wed, 22 Apr 2015 21:06:14 -0700 Subject: [PATCH 2/2] fix version in lib file --- lib/dartdoc.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dartdoc.dart b/lib/dartdoc.dart index bd7836061f..872b28c041 100644 --- a/lib/dartdoc.dart +++ b/lib/dartdoc.dart @@ -25,7 +25,7 @@ import 'src/model_utils.dart'; const String NAME = 'dartdoc'; // Update when pubspec version changes -const String VERSION = '0.0.1+5'; +const String VERSION = '0.0.1+6'; /// Initialize and setup the generators List initGenerators(