File tree Expand file tree Collapse file tree 3 files changed +26
-7
lines changed Expand file tree Collapse file tree 3 files changed +26
-7
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,26 @@ Component get _docsFlutterDevSite => ContentApp.custom(
6464 components: _embeddableComponents,
6565 layouts: const [DocLayout (), TocLayout (), CatalogPageLayout ()],
6666 theme: const ContentTheme .none (),
67- secondaryOutputs: [const RobotsTxtOutput (), MarkdownOutput ()],
67+ secondaryOutputs: [
68+ const RobotsTxtOutput (),
69+ MarkdownOutput (
70+ createHeader: (page) {
71+ final header = StringBuffer ();
72+ if (page.data.page['title' ] case final String title
73+ when title.isNotEmpty) {
74+ header.writeln ('# $title ' );
75+
76+ if (page.data.page['description' ] case final String description
77+ when description.isNotEmpty) {
78+ header.writeln ();
79+ header.writeln ('> $description ' );
80+ }
81+ }
82+
83+ return header.toString ();
84+ },
85+ ),
86+ ],
6887 ),
6988);
7089
Original file line number Diff line number Diff line change @@ -8,11 +8,11 @@ import 'package:jaspr_content/jaspr_content.dart';
88import '../../util.dart' ;
99
1010/// A tabs component where children tabs can be switched between by the user.
11- class DashTabs implements CustomComponent {
11+ class DashTabs extends CustomComponent {
1212 static int _currentTabWrapperId = 0 ;
1313 static int _currentTabId = 0 ;
1414
15- const DashTabs ();
15+ const DashTabs () : super . base () ;
1616
1717 @override
1818 Component ? create (Node node, NodesBuilder builder) {
Original file line number Diff line number Diff line change @@ -9,11 +9,11 @@ environment:
99dependencies :
1010 build : ^4.0.2
1111 collection : ^1.19.1
12- crypto : ^3.0.6
12+ crypto : ^3.0.7
1313 html : ^0.15.6
1414 http : ^1.5.0
1515 jaspr : ^0.21.6
16- jaspr_content : ^0.4.2
16+ jaspr_content : ^0.4.3
1717 # Used as our template engine.
1818 liquify : ^1.3.1
1919 markdown : ^7.3.0
@@ -32,9 +32,9 @@ dev_dependencies:
3232 path : pkgs/analysis_defaults
3333 ref : f91ed8ecef6a0b31685804fe4102b25fda021460
3434 build_runner : ^2.10.1
35- build_web_compilers : ^4.3 .0
35+ build_web_compilers : ^4.4 .0
3636 jaspr_builder : ^0.21.6
37- sass : ^1.93.2
37+ sass : ^1.93.3
3838 sass_builder : ^2.4.0
3939
4040jaspr :
You can’t perform that action at this time.
0 commit comments