Skip to content

Commit

Permalink
feat: updated base README generation logic to alphabetize POCs
Browse files Browse the repository at this point in the history
  • Loading branch information
flamingquaks committed Dec 17, 2024
1 parent a7294fe commit 598db29
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 20 deletions.
7 changes: 4 additions & 3 deletions .projenrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1567,7 +1567,7 @@ pythonPocs.push(new StreamlitQuickStartPOC({
pocPackageName: 'amazon-bedrock-translation-poc',
pocDescription:
'This is sample code demonstrating the use of Amazon Bedrock and Generative AI to translate text from a source to target language.',
additionalDeps: ['pypdf', 'python-docx'],
additionalDeps: ['pypdf', 'python-docx'],
readme: {
pocGoal: {
overview: 'The goal of this repository is to provide users with the ability to use Amazon Bedrock to perform translations. This repo comes with a basic frontend to help users stand up a proof of concept in just a few minutes.',
Expand Down Expand Up @@ -1602,10 +1602,10 @@ pythonPocs.push(new StreamlitQuickStartPOC({
}, {
name: 'amazon_bedrock_translation.py',
description: 'Logic required to invoke Amazon Bedrock and parse the response',
},{
}, {
name: 'text_extractor.py',
description: 'Logic required to extract text from a file',
},{
}, {
name: 'requirements.txt',
description: 'Python dependencies',
}],
Expand Down Expand Up @@ -1847,6 +1847,7 @@ guardrail_version=<Guardrail_Version> (this is just a number i.e. 1,2,3 etc...)`
}));

const pythonPocReadmeDetails: Array<POCReadmeDetails> = [];
pythonPocs.sort((a, b) => a.pocProps.pocPackageName.localeCompare(b.pocProps.pocPackageName));
for (const poc of pythonPocs) {
pythonPocReadmeDetails.push(poc.readmeDetails);
poc.synth();
Expand Down
32 changes: 16 additions & 16 deletions README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion projenrc/projects/streamlit-quickstart-poc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ interface StreamlitQuickStartPOCProps {


export class StreamlitQuickStartPOC extends PythonProject {
private pocProps: StreamlitQuickStartPOCProps;
public pocProps: StreamlitQuickStartPOCProps;
constructor(props: StreamlitQuickStartPOCProps) {
super({
parent: props.parentProject,
Expand Down

0 comments on commit 598db29

Please sign in to comment.