13 parser = argparse.ArgumentParser(
14 description=
'A script to write a custom dartdoc_options.yaml to a file')
17 '--output',
'-o', type=str, required=
True, help=
'File to write')
18 parser.add_argument(
'--no-git-hash',
19 help=
'Omit the git hash in the output',
23 return parser.parse_args(args)
30 if not args.no_git_hash:
35 categoryOrder: ["Core",
"VM",
"Web",
"Web (Legacy)"]
40 url: https://pub.dev/documentation/web/latest/
42 This package exposes browser APIs. It
's intended to replace
43 dart:html and similar Dart SDK libraries. It will support access to
44 browser APIs
from Dart code compiled to either JavaScript
or
49 url: https://pub.dev/documentation/js/latest/
51 Use this package when you want to call JavaScript APIs
from Dart
55 uriTemplate:
'https://github.com/dart-lang/sdk/blob/%s/sdk/%%f%%#L%%l%%'
60 - no-defining-library-found
64 - ambiguous-doc-reference
67 - category-order-gives-missing-package-name
69 - ignored-canonical-
for
70 - missing-
from-search-index
72 - no-documentable-libraries
73 - no-library-level-docs
76 - reexported-private-api-across-packages
80 - unresolved-doc-reference
82 - ../../../tools/bots/dartdoc_header.html
84 - ../../../tools/bots/dartdoc_footer.html
86 - ../../../tools/bots/dartdoc_footer_text.html
88 with open(args.output,
'w')
as f:
93if __name__ ==
'__main__':
94 sys.exit(
Main(sys.argv))
def GetGitRevision(git_revision_file=None, repo_path=DART_DIR)