Commit Graph

245 Commits

Author SHA1 Message Date
Darío Kondratiuk
e82b546085
docs(dotnet): generate arguments in a consistent order (#5800) 2021-04-08 14:21:10 +02:00
Anže Vodovnik
b37116d7b1
chore(dotnet): fix generating from parent directory (#6095) 2021-04-07 17:17:57 +02:00
Darío Kondratiuk
fd40c92a92
chore(dotnet): generate generic EventHandlers (#6076) 2021-04-06 12:23:26 +02:00
Darío Kondratiuk
33198c3d1a
chore(dotnet): format generateDotnetApi (#6075) 2021-04-06 12:21:31 +02:00
Darío Kondratiuk
e5b011ae74
chore(dotnet): remove Get prefix (#6074) 2021-04-06 11:55:24 +02:00
Dmitry Gozman
e3cf675624
test: remove a copy of folio, use upstream (#6080) 2021-04-05 13:23:49 -07:00
Darío Kondratiuk
fdb3c1f153
chore(dotnet): don't generate set only properties (#5982) 2021-03-29 20:06:44 -07:00
Darío Kondratiuk
5c1e8dcd80
chore(dotnet): fix properties with Is prefix (#5981) 2021-03-29 20:05:51 -07:00
Darío Kondratiuk
bc6dc1d108
chore(dotnet): treat file as a reserved word (#5960)
Avoid collision with System.IO.File and unify handling reserved file names and enum values.
2021-03-29 10:22:06 +02:00
Darío Kondratiuk
779037a77e
chore(dotnet): avoid adding two prefixes (#5974) 2021-03-27 09:58:36 -07:00
Darío Kondratiuk
f791495624
chore(dotnet): Improve enum values (#5939) 2021-03-25 16:45:41 +01:00
Anže Vodovnik
3a27bdd3e6
chore(dotnet): improve name generation for objects (#5860) 2021-03-23 10:44:50 +01:00
Anže Vodovnik
fbb4626442
chore(dotnet): support for optional properties in generated objects (#5889) 2021-03-19 17:19:42 +01:00
Pavel Feldman
c4410d3f4d Revert "chore(docs): add support for language specific notes (#5810)"
This bubbled up in Python comments.
2021-03-18 13:50:17 -07:00
Darío Kondratiuk
de16d17726
docs(dotnet): move options arguments last (#5856) 2021-03-17 21:17:45 -07:00
Anže Vodovnik
693e5699ac
chore(docs): add support for language specific notes (#5810) 2021-03-17 15:20:37 +01:00
Anže Vodovnik
36a61c36b3
docs(dotnet): ability to generate generics and null on path args (#5824) 2021-03-16 09:19:30 -07:00
Anže Vodovnik
43de259522
fix(xmldocs): over-greedy regex for md links and clean-up (#5798)
* fix(xmldocs): over-greedy regex for Markdown links
* fix(dotnet): missing using and extra spaces
2021-03-11 18:07:45 +01:00
Anže Vodovnik
42e9a4703c
chore(xmldocs): resolve MD links to XmlDocs tags (#5782) 2021-03-10 09:07:23 -08:00
Anže Vodovnik
0bc39f2786
chore(generator): change dotnet default value from null to default (#5764) 2021-03-09 09:16:15 -08:00
Yury Semikhatsky
ea9485ec9a
docs: document PlaywrightException in java (#5743) 2021-03-05 15:32:33 -08:00
Anže Vodovnik
ad27f3bf02
docs(xml): code escaping for XMLDocs generation (#5703) 2021-03-03 19:39:06 +01:00
Anže Vodovnik
23b035b052
chore(dotnet): add documentation on result classes and include property name (#5694) 2021-03-03 19:36:27 +01:00
Anže Vodovnik
1eb0f42981
chore(dotnet): unique name for generated files, change root namespace (#5678) 2021-03-02 18:29:29 +01:00
Yury Semikhatsky
c390f3950f
fix: include parsed .md spec into api.json (#5662) 2021-03-01 13:00:01 -08:00
Anže Vodovnik
86c7d77967
chore(dotnet): handle setters and ordering bug (#5654) 2021-03-01 18:49:14 +01:00
Yury Semikhatsky
6c9e806672
docs: add java snippets to the examples in guides (#5638) 2021-03-01 09:18:44 -08:00
Anže Vodovnik
28f3fe8e48
chore(dotnet): generate dotnet API from Markdown (#5089)
Introduces the generator for the .NET API surface to be used by the .NET language port to ensure greater consistency with other language ports.
2021-02-26 18:04:03 +01:00
Dmitry Gozman
96e099aca3
docs: use "argument: <type>" notation for events (#5626) 2021-02-25 22:22:47 -08:00
Yury Semikhatsky
cb0a890a09
docs: java snippets for api classes (#5629) 2021-02-25 22:03:39 -08:00
Anže Vodovnik
8f3a6c6b45
chore(docs): improve xmldoc inline code parsing (#5480) 2021-02-17 10:45:15 -08:00
Anže Vodovnik
9dd443e1aa
chore(docs): add ability to generate xmldocs (#5164)
Introduces a naive XmlDocs renderer for Markdown nodes. It needs to be called separately for now.
2021-02-15 19:41:40 +01:00
Yury Semikhatsky
0c8d8a3d0f
fix(docs): correctly detect type-only overrides (#5430) 2021-02-11 23:43:59 -08:00
Yury Semikhatsky
d39d2eaf4c
docs: support method overrides (#5405) 2021-02-10 14:27:20 -08:00
Dmitry Gozman
c12374ea07
feat(docs): improve link validation (#5394) 2021-02-10 07:13:14 -08:00
Yury Semikhatsky
adeb2348cf
docs: change WebSocket.frame* event type to WebSocketFrame in java (#5384) 2021-02-09 12:11:48 -08:00
Yury Semikhatsky
a1b3164864
docs: fix nested union handling (#5341) 2021-02-05 16:32:13 -08:00
Yury Semikhatsky
4b74f5693c
docs: add enum aliases (#5335) 2021-02-05 15:28:48 -08:00
Anže Vodovnik
cf96b15051
fix(docs): ignore case when validating order of events and methods (#5309) 2021-02-04 19:19:38 +01:00
Joel Einbinder
3126fee780
fix(lint): correctly find api.ts on windows (#5308) 2021-02-04 05:31:59 -08:00
Pavel Feldman
1db5ef24a8
docs: document electron api (#5229) 2021-02-01 11:43:26 -08:00
Yury Semikhatsky
e71ef7949b
docs: add java traits to some methods (#5222) (#5243) 2021-02-01 11:13:13 -08:00
Pavel Feldman
82bb92f103 Revert "docs: add java traits to some methods (#5222)"
Breaks playwright.dev
2021-01-30 22:15:56 -08:00
Yury Semikhatsky
9c4668685d
docs: add java traits to some methods (#5222) 2021-01-29 19:15:25 -08:00
Yury Semikhatsky
a1d875ed97
docs: make inline refs us parameter name instead of its alias (#5219) 2021-01-29 16:02:17 -08:00
Anže Vodovnik
dbcdf9dcd7
chore(docs): aliases for dotnet/chsarp docs. (#5162)
Co-authored-by: Yury Semikhatsky <yurys@chromium.org>
2021-01-29 11:08:22 -08:00
Yury Semikhatsky
21041bc331
docs: support argument overrides (#5200) 2021-01-28 17:51:41 -08:00
Anže Vodovnik
f2ef7f51b8
Link patching now picks up multiple in single line (#5163) 2021-01-27 16:21:27 -08:00
Pavel Feldman
41e394bc22
docs: allow overriding return types (#5031) 2021-01-15 16:01:41 -08:00
Pavel Feldman
8354a91d0e
docs: add python snippets for api classes (#5011) 2021-01-14 07:48:56 -08:00
Pavel Feldman
5408e26e02
docs: add python snippets for class Page (#5010) 2021-01-13 21:03:35 -08:00
Pavel Feldman
cac119f3bf
docs: python api review (#4986) 2021-01-12 12:14:27 -08:00
Pavel Feldman
4dbbb47583
docs: document Python's expect_event methods (#4963) 2021-01-10 21:00:52 -08:00
Pavel Feldman
e67d89747a
chore: update docs to cover python specifics (#4960) 2021-01-10 18:18:35 -08:00
Pavel Feldman
3b617b3709
docs: validate member links (#4955) 2021-01-08 16:36:52 -08:00
Pavel Feldman
114d586f07
chore: add python aliases (#4949) 2021-01-08 15:00:14 -08:00
Pavel Feldman
15c0a29526
docs: split nodejs and python links (#4942) 2021-01-07 23:37:53 -08:00
Pavel Feldman
54c06a1b45
chore: mark methods as js-only, add python-specific methods (#4938) 2021-01-07 16:12:25 -08:00
Pavel Feldman
e56832b646
chore: language-specific members api (#4936) 2021-01-07 15:00:04 -08:00
Pavel Feldman
bdf12e32e4
docs: split api-body into classes (#4931) 2021-01-07 11:46:05 -08:00
Pavel Feldman
4cd989c653
docs: introduce deprecation annotation and any type (#4930) 2021-01-07 11:11:40 -08:00
Pavel Feldman
913f85249f
docs: make all links relative (#4926) 2021-01-06 20:02:51 -08:00
Pavel Feldman
2311c282d6
docs: pref docs to be language-specific (#4916) 2021-01-06 11:59:29 -08:00
Pavel Feldman
b6cd385a67
docs: mark some paths as such (#4896) 2021-01-05 17:05:43 -08:00
Dmitry Gozman
a9c776f56e
chore: watch to regenerate api.json (#4901) 2021-01-05 15:25:25 -08:00
Pavel Feldman
4996eacd5b
docs: split numbers into integers and floats (#4887) 2021-01-05 09:42:49 -08:00
Pavel Feldman
80f8a0fdf5
doc: further align docs w/ playwright.dev (3) (#4884) 2021-01-04 17:59:23 -08:00
Pavel Feldman
31ffeb32e3
doc: further align docs w/ playwright.dev (2) (#4871) 2021-01-04 13:50:29 -08:00
Pavel Feldman
ae935a43d9
doc: further align docs w/ playwright.dev (#4866) 2021-01-03 08:47:29 -08:00
Pavel Feldman
e0e836cb6e
doc: split classes into files (#4864) 2021-01-01 15:17:27 -08:00
Pavel Feldman
ba291372e7
docs: generate all docs off docs-src (#4858) 2020-12-30 18:04:51 -08:00
Pavel Feldman
a5bd415edc
doc: generate class toc as a part of the api generation (#4852) 2020-12-29 17:35:01 -08:00
Pavel Feldman
9817d1095a
doc: generator code health (3) (#4850) 2020-12-29 12:12:46 -08:00
Pavel Feldman
722db85e1c
doc: generator code health (2) (#4843) 2020-12-28 23:42:51 -08:00
Pavel Feldman
70c14e6b99
doc: generator code health (#4840) 2020-12-28 17:38:00 -08:00
Dmitry Gozman
a1232b6980
chore: simplify and remove some scripts (#4838) 2020-12-28 16:19:28 -08:00
Dmitry Gozman
94077e0e74
chore: remove JS types checker, rely on typescript (#4831)
chore: remove JS types checker, rely on typescript

We keep checking that all methods are documented, and no extra methods
are documented, but rely on typescript for everything else.
2020-12-28 10:54:47 -08:00
Pavel Feldman
a446792c18
docs: generate api.md off documentation model (#4832) 2020-12-28 07:03:09 -08:00
Pavel Feldman
fee7dd7cc1
chore: nit type validator fix (#4830) 2020-12-27 08:42:22 -08:00
Dmitry Gozman
905f28c339
feat(types): simplify android and electron types (#4829)
These now follow the scheme for regular types.
2020-12-26 20:25:18 -08:00
Dmitry Gozman
34c1b338be
feat(types): make our client classes implement public types (#4817)
This patch:
- introduces non-exported but used in api/impl struct types (e.g. Point);
- makes all client classes implement respective public api interface.

Pros:
- Typescript is now responsible for type checking.
  We can remove our doclint checker (not removed yet).
- Electron and Android types can be defined in the same way
  (this is not implemented yet).
- We can move most of the type structs like Point to the public api
  and make some of them available.

Cons:
- Any cons?
2020-12-26 17:05:57 -08:00
Pavel Feldman
15cdfd1cc1
chore: generate types, api.json off md rather than html (#4825) 2020-12-26 14:31:41 -08:00
Dmitry Gozman
9dd982c508
chore: commit generated types to the repository (#4826)
Also check them during `npm run lint` and regenerate during `npm run watch`.
2020-12-26 13:52:05 -08:00
Pavel Feldman
277d255fc3
chore: brush up md processing (#4819) 2020-12-23 19:35:43 -08:00
Yury Semikhatsky
a7f4c69a60
docs: fix browser version generation script (#4797) 2020-12-21 18:09:55 -08:00
Pavel Feldman
2e220df7ac
docs: explicitly annotate methods and parameters (#4771) 2020-12-18 15:31:34 -08:00
Pavel Feldman
1717cbd3d5
doc: describe return value as a part of method (#4608) 2020-12-05 15:29:16 -08:00
Pavel Feldman
96a1f79e96
docs: reformat api-body to allow multiline params documentation (#4604) 2020-12-04 18:05:35 -08:00
Pavel Feldman
bf7dff80da chore: remove the --only-update-browsers option 2020-12-04 12:22:34 -08:00
Pavel Feldman
20c17d5470 chore: fix the doclint tests 2020-12-04 12:10:44 -08:00
Pavel Feldman
150d778ca7
docs: disambiguate events (#4597) 2020-12-04 11:09:20 -08:00
Pavel Feldman
761b78efc0
docs: generate links based on the method names (#4593) 2020-12-04 09:03:33 -08:00
Pavel Feldman
2452d07ff7
docs: generate method signatures in docs (#4590) 2020-12-03 22:28:11 -08:00
Pavel Feldman
0eb6f85617
docs: pretty-print api.md (#4588) 2020-12-03 18:05:36 -08:00
Pavel Feldman
5d47a9744c
docs: reformat template parameters (#4587) 2020-12-03 16:02:34 -08:00
Joel Einbinder
bc701629db
fix(doclint): exit 1 when doclint throws an error (#4572) 2020-12-03 09:21:56 -08:00
Pavel Feldman
95c502d274
docs: use templates to reuse documentation properties (#4578) 2020-12-03 09:11:48 -08:00
Pavel Feldman
1fa7e86ea9
docs: generate api.md (#4576) 2020-12-02 13:50:10 -08:00
Yury Semikhatsky
46e124a933
fix(api.json): use separate maps for methods and events (#4310) 2020-11-02 18:31:32 -08:00
Pavel Feldman
be8428475d
feat(websocket): implement Web Sockets for Chromium & WebKit (#4234) 2020-10-26 22:20:43 -07:00