Skip to content

Commit 40b064a

Browse files
committed
feat: sync infra providers from main
Signed-off-by: Pete Cheslock <[email protected]>
1 parent c00797c commit 40b064a

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

remote-content/remote-sources/infra-providers/infra-providers-generator.js

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,22 @@
44
* Automatically discovers and generates infrastructure provider pages from the llm-d repository.
55
* This syncs provider-specific documentation for deploying llm-d on different infrastructure.
66
*
7-
* Infra provider docs are synced from the specific release version defined in components-data.yaml,
8-
* not from the main branch. This ensures documentation matches the released version.
7+
* Infra provider docs are synced from the main branch to always show the latest development content.
98
*/
109

1110
import { createContentWithSource } from '../utils.js';
12-
import { findRepoConfig, RELEASE_INFO } from '../component-configs.js';
11+
import { findRepoConfig, generateRepoUrls } from '../component-configs.js';
1312
import { getRepoTransform } from '../repo-transforms.js';
1413

1514
// Get repository configuration for the main llm-d repo
1615
const repoConfig = findRepoConfig('llm-d');
16+
const { repoUrl, sourceBaseUrl, ref } = generateRepoUrls(repoConfig);
1717

18-
// Use the release version from YAML instead of the branch
19-
const releaseVersion = RELEASE_INFO.version;
20-
const repoUrl = `https://github.com/${repoConfig.org}/${repoConfig.name}`;
21-
const sourceBaseUrl = `https://raw.githubusercontent.com/${repoConfig.org}/${repoConfig.name}/${releaseVersion}/`;
22-
23-
// Create a custom transform that uses the release version instead of 'main'
18+
// Create a content transform using main branch
2419
const transform = getRepoTransform(repoConfig.org, repoConfig.name);
2520
const contentTransform = (content, sourcePath) => transform(content, {
2621
repoUrl,
27-
branch: releaseVersion, // Use release version, not 'main'
22+
branch: ref, // Always 'main'
2823
org: repoConfig.org,
2924
name: repoConfig.name,
3025
sourcePath
@@ -86,7 +81,7 @@ function createInfraProviderPlugins() {
8681
filename: sourceFile,
8782
newFilename: `${provider.dirName}.md`,
8883
repoUrl,
89-
branch: releaseVersion,
84+
branch: ref, // Always 'main'
9085
content,
9186
contentTransform
9287
});

0 commit comments

Comments
 (0)