Commit Graph

4443 Commits

Author SHA1 Message Date
0div 7e8a2dd515 remove "Objects" in h2 of python-sdk api ref markdown 2024-09-27 17:32:30 +02:00
0div a88a2cac2d create TOC page instead of nested navigation 2024-09-27 11:59:04 +02:00
0div e75d0903f6 ignore Search route type error 2024-09-26 17:32:29 +02:00
0div c68a489cc4 fix footer prop type error 2024-09-26 17:08:59 +02:00
0div 9246c1be6f Merge branch 'generate-api-refs-workflow' of https://github.com/e2b-dev/E2B into generate-api-refs-workflow 2024-09-26 16:39:29 +02:00
0div 0eef2ea559 fix undefined prop error 2024-09-26 16:39:02 +02:00
github-actions[bot] 661a08f8ff [skip ci] Release new SDK API reference doc versions 2024-09-26 13:24:21 +00:00
0div 1d9db6489e merge beta 2024-09-26 15:22:32 +02:00
0div 9b7a38ad2c git ignore apiRefRoutes.json 2024-09-26 14:23:10 +02:00
0div 57703f4e2a prebuild before build & dev 2024-09-26 14:22:23 +02:00
Jakub Novak fe78c0320d Simplify tests 2024-09-26 13:45:24 +02:00
Jakub Novak 30b043f49f Add api key for tests 2024-09-26 12:38:32 +02:00
Jakub Novak b334c0e261 Add pty tests in js 2024-09-26 12:36:55 +02:00
Jakub Novak cc8938c7a4 Add tests before release 2024-09-26 11:56:34 +02:00
0div 08daef2d49 prebuild API ref routes and adapt component for nested ul elements 2024-09-26 09:47:05 +02:00
github-actions[bot] 8efd4d2795 [skip ci] Release new versions 2024-09-26 06:48:22 +00:00
Jakub Novak 8d626186de Fix types 2024-09-26 08:44:45 +02:00
Jakub Novak 1d5ae30312 Merge 'main' 2024-09-26 08:39:05 +02:00
Tomas Valenta ff368d1ba7 Explicitly configure keepalive pinging in Python SDK 2024-09-25 18:08:22 -07:00
Tomas Valenta 24e06c5e1a Fix entry info return type 2024-09-25 17:46:28 -07:00
Tomas Valenta e5b81e274c Cleanup python pty types 2024-09-25 17:42:40 -07:00
Tomas Valenta 41853ccf98 Add keepalive ping and error handlers to pty 2024-09-25 17:32:04 -07:00
Tomas Valenta 81d349cb0b Create constant for keepalive header 2024-09-25 17:31:43 -07:00
Tomas Valenta 3bd7426780 Fix possible type inconsistency 2024-09-25 17:17:27 -07:00
Tomas Valenta 10fac56058 Remove unused imports 2024-09-25 17:17:08 -07:00
Tomas Valenta 1c6c44c782 Fix possible type inconsistency 2024-09-25 17:16:04 -07:00
Tomas Valenta 71406236c0 Explicitly configure keepalive pinging 2024-09-25 17:06:59 -07:00
Tomas Valenta daa0efb8e4 Increase python connections limit 2024-09-25 17:04:12 -07:00
Tomas Valenta 48d01df794 Use json transport for rpc in SDKs 2024-09-25 17:03:58 -07:00
Tomas Valenta 4047d71393 Fix watchdir start bug 2024-09-25 16:05:55 -07:00
0div 8172404876 allow commit failure in workflow 2024-09-24 18:18:32 +02:00
0div fa90994e49 [squashed many commits] GH actions workflow for API ref autogen 2024-09-24 18:15:31 +02:00
0div c15309c948 Auto-generate API reference markdown files for the CLI (#448) 2024-09-20 16:16:09 +02:00
0div b70975fee1 address PR comments 2024-09-20 16:14:53 +02:00
0div 8812b42d46 address PR comments 2024-09-20 16:03:50 +02:00
0div 4059a95e92 Auto-generate API reference markdown files for the js-sdk (#447)
# Description 
- Installed and configured
[typedoc](https://github.com/TypeStrong/typedoc) and its plugin
[typedoc-plugin-markdown](https://github.com/typedoc2md/typedoc-plugin-markdown)
- Created a script that generates and cleans markdown files

# Test
```bash
cd packages/js-sdk
./scripts/generate_api_ref.sh 
ls ./api_ref
```

# Considerations
This could eventually be used directly as .mdx in the docs nextjs app,
it would look like this with current styling and TOC:

<img width="340" alt="Screenshot 2024-09-18 at 17 29 22"
src="https://github.com/user-attachments/assets/69e1f01d-cab9-4d8c-8eac-23bc367ae03c">

<img width="685" alt="Screenshot 2024-09-18 at 17 29 32"
src="https://github.com/user-attachments/assets/a585a363-ceb2-48bf-a24d-a7c440607f61">

<img width="659" alt="Screenshot 2024-09-18 at 17 29 45"
src="https://github.com/user-attachments/assets/5591b353-70dc-440a-be2f-890dee057593">


per my previous slack messages:
> typedoc and its typedoc-plugin-markdown are more opinionated than i
assumed.
The extent of how detailed it documents things about classes and
interfaces is less configurable than i thought, for example it forces
you to display all inheritance info (there's a plugin to remove that but
it's clunky) . Also, linking is not configurable when you are converting
to markdown, it seems to keep routing as if it were a static website
directory with relative links so i removed all links.
Had to create a hacky post-processor to handle these obstacles.

i wish i could figure out a way to use anchor links, i looked into
[typedoc-plugin-pages](https://github.com/KnodesCommunity/typedoc-plugins/tree/develop/packages/plugin-pages)
but couldn't get it to behave the way I want.
2024-09-20 15:05:17 +02:00
0div e701f40882 Auto-generate API reference markdown files for the python-sdk (#441)
# Description

- Installed and configured
[pydoc-markdown](https://niklasrosenstein.github.io/pydoc-markdown/).
- Created a script that generates and cleans markdown files with a
configurable package list.
- Added docstrings to relevant public methods of the various sdk classes
in order for pydoc to detect them.

# Test

```bash
cd packages/python-sdk
./scripts/generate_api_ref.sh 
ls ./api_ref
```

# Considerations

This could eventually be used directly as `.mdx` in the docs nextjs app,
it would look like this with current styling:
<img width="836" alt="Screenshot 2024-09-17 at 17 22 43"
src="https://github.com/user-attachments/assets/a23e954f-2834-4fb6-88a6-d87747a0cf49">
2024-09-20 15:04:57 +02:00
0div f54657726c improve clearning of the md content output 2024-09-20 12:35:31 +02:00
0div 6e7b32c3c0 add root .prettierc 2024-09-20 12:20:31 +02:00
0div f44d1f830d created api ref generator script from parsing commands into md with the new -cmd2md option 2024-09-20 12:11:01 +02:00
Jakub Novák caf650b9bc Added google auth provider (#443) 2024-09-20 10:07:44 +02:00
Mish Ushakov 1f1a0e6cd5 Added google auth provider 2024-09-18 11:48:33 +02:00
Jakub Novak 9a8d504c72 Export types 2024-09-13 16:37:37 +02:00
Jakub Novak 53ee6bbbeb Add pty to Python 2024-09-13 15:45:26 +02:00
Jakub Novak ca4dc8e24e Decrease default test concurrency to 4 2024-09-13 15:37:19 +02:00
Jakub Novak 48985bdc89 Add envs and cwd for pty 2024-09-13 15:36:53 +02:00
Jakub Novak 791ca585a8 Fix imports 2024-09-13 10:11:43 +02:00
Jakub Novak 16f0512b7e Apply prettier 2024-09-13 10:04:26 +02:00
Jakub Novak 731a109fc6 Add Ctrl+C handling in terminal 2024-09-13 10:00:20 +02:00
Jakub Novak 80ae7f452a Rewrite terminal in CLI 2024-09-13 10:00:20 +02:00