Commit 291102d
authored
Feature: SDK Reference generation & hosting (#78)
* wip: sdk reference generation workflow
* Refactor SDK reference generation workflow
- Updated the SDK generation workflow to load SDK configurations from `sdks.json`, improving maintainability.
- Removed individual SDK generator scripts for CLI, Code Interpreter (JS and Python), and Desktop SDKs, consolidating functionality into a single generator script.
- Enhanced the `generate-sdk-reference.sh` script to dynamically handle SDK types and versions.
- Cleaned up the workflow YAML file for better readability and consistency in string formatting.
* Enhance SDK navigation and styling
- Updated `.gitignore` to include `sdk_navigation.json` for generated SDK navigation.
- Added new styles for version switcher in `style.css`, improving UI for SDK and version selection.
- Modified `generate-sdk-nav.js` to group SDKs by family, enhancing navigation structure.
- Updated SDK configurations in `sdks.json` to include family and language attributes for better organization.
- Improved CLI and Python documentation generation scripts for consistency and added frontmatter to markdown files.
* cleanup
* fix: sdks.json
* Enhance SDK reference generation and configuration
- Updated `sdk-reference-sync.yml` to allow version generation for "all" versions by default.
- Modified `generate-sdk-reference.sh` to support a new `--limit` option for controlling the number of versions processed.
- Improved `generate-sdk.sh` to filter versions based on a minimum version requirement and to handle version discovery more effectively.
- Updated `sdks.json` to include `minVersion` attributes for SDKs, ensuring only compatible versions are processed.
- Enhanced common library functions for version management and caching during dependency installation.
* improve: better idempotency comparison
* cleanup
* refactor: bash to typescript generator
* cleanup:
- Added verification functions to ensure generated documentation meets quality standards, including checks for empty files and missing frontmatter.
- Implemented a logging utility for better output management during the generation process.
- Created a `.mintignore` file to exclude specific directories from version control.
- Enhanced CLI commands for improved user experience and added options for forced regeneration of existing versions.
* refactor: migrate SDK configuration from JSON to TypeScript
- Introduced a new `sdks.config.ts` file to define SDK configurations in TypeScript, enhancing type safety and maintainability.
- Removed the outdated `sdks.json` file to streamline the configuration process.
- Updated relevant code to utilize the new configuration structure, including adjustments in the CLI and navigation logic.
- Improved type definitions for SDK configurations to support additional properties and ensure consistency across the codebase.
* refactor: improve SDK reference generation and navigation
- Updated CSS styles for version switcher to enhance UI consistency and usability.
- Modified GitHub Actions workflow to streamline SDK generation input descriptions and improve summary output.
- Refactored context handling in SDK generation functions for better clarity and maintainability.
- Introduced new utility functions for version validation and normalization, enhancing version management.
- Added tests for cache handling and file processing to ensure robustness in SDK reference generation.
* chore: remove package.json and pnpm-lock.yaml
- Deleted `package.json` and `pnpm-lock.yaml` files to clean up the project structure as they are no longer needed for SDK reference generation.
* fix: config
* refactor: update SDK configuration and improve generation logic
- Replaced `basePackage` and `fallbackPackages` with `allowedPackages` in SDK configurations for better clarity and usage.
- Refactored the `generateVersion` function to utilize a new `CheckoutManager` for handling repository checkouts and version switching.
- Simplified the `generatePydoc` function to focus on allowed packages, removing the need for fallback and submodule handling.
- Introduced a new `checkout.ts` file to manage SDK checkouts, enhancing code organization and maintainability.
- Removed obsolete cache handling code and related tests to streamline the project structure.
* chore
* cleanup
* refactor: improve error handling and logging in CLI and generator
- Enhanced error handling in the CLI to ensure proper exit on validation failures.
- Improved logging for workflow abort scenarios in the generator, ensuring clearer output.
- Introduced a new function to find the CLI output directory, enhancing the generation process and error reporting for missing markdown files.
* add: last 3 versions of all sdks to docs
* reactive TOC
* refactor: enhance SDK reference generation workflow
* fix: pip install fallback
* fix: update SDK documentation for clarity and accuracy
* remove: generated sdk reference
* add: limit as input
* fix: infer limit input correctly in workflow
* fix: limit
* fix limit
* chore: force color
* cleanup: action
* refactor: replace process.exit with error throwing for better error handling
* add: tests
* feat: enhance SDK configuration with version-specific overrides and add versioning documentation
* fix: versioning config
* fix: silent fs move issues
* fix: pip installs
* cleanup files before force regeneration
* fix: normailze versioning
* improve: pr test workflow + chore: cleanup docs.json
* restore: docs.json
* Apply suggestion from @ben-fornefeld1 parent 96e46c9 commit 291102d
44 files changed
Lines changed: 6693 additions & 0 deletions
File tree
- .github/workflows
- scripts
- sdk-reference-generator
- configs
- src
- __tests__
- generators
- lib
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
File mode changed.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
0 commit comments